404 and content.
-
https://aws.lohray.com/wptr/wp-content/plugins/pretty-simple-progress-meter/css/psp_styles.php is a php script that generates some css. The plugin does not work as the php returns a 404 header.
However, it also returns the content. I have been checking it using firebug.
Any ideas on how to resolve this?
Thank you ??
Added Later:
<?php define('WP_USE_THEMES', false); //header("Content-type: text/css"); require('../../../../wp-blog-header.php'); ?> <?php header('Content-type: text/css; charset: UTF-8'); $backgroundOption = get_option('background_color'); $backgroundOption = ($backgroundOption == "") ? 'ddd' : $backgroundOption; $meterOption = get_option('meter_color'); $meterOption = ($meterOption == "") ? 'f00' : $meterOption; $titleOption = get_option('title_color'); $titleOption = ($titleOption == "") ? '333' : $titleOption; $detailOption = get_option('detail_color'); $detailOption = ($detailOption == "") ? '777' : $detailOption; $progressOption = get_option('progress_color'); $progressOption = ($progressOption == "") ? 'aaa' : $progressOption; $minorOption = get_option('minor_color'); $minorOption = ($minorOption == "") ? 'ccc' : $minorOption; $thickOption = get_option('bar_thick'); $thickOption = ($thickOption == "") ? '10' : $thickOption; $heightOption = get_option('height_option'); $heightOption = ($heightOption == "") ? '30' : $heightOption; $widthOption = get_option('width_option'); $widthOption = ($widthOption == "") ? '30' : $widthOption; ?> div.prettysimpleprogresswidget { padding:0; margin:10px 0 0 0; } div.prettysimpleprogresswidget div.show { height:<?php echo $heightOption; ?>px; width:<?php echo $widthOption; ?>px; padding:0; margin:2px 6px 0 0; float:left; background-color:#<?php echo $meterOption; ?>; background-position:center; background-repeat:no-repeat; }
is a part of the php that is generating it.
- The topic ‘404 and content.’ is closed to new replies.