View Single Post
Old 01-31-2009, 12:20 AM   #4 (permalink)
Edwin
The Wanderer
 
Edwin's Avatar
 
Join Date: Jan 2008
Posts: 10
Thanks: 1
Edwin is on a distinguished road
Unhappy

im sorry for the double post but that code you supplied didnt work i get alot of areas so i thought about pasting the whole PHP file on here so here u go =]

PHP Code:
<?

include("config.php");

$cat $_GET['id'];
$img $_GET['img'];
$alt trim(preg_replace('/[^a-z]|((gif|jpg|jpeg|png|bmp)$)/i'' '$_GET['img']));

define("title"$alt." Myspace Graphic Comment");
define("keywords"$alt." myspace comment");
define("description""Viewing Comments ".$alt);

if(
$PBloc == '1')
$imgURL $PBURL.'cat/'.$cat.'/'.$img;
else
$imgURL $site_url.'cat/'.$cat.'/'.$img;

$uniqueID md5('graphic/cat/'.$cat.'/'.$img);

echo 
"\n".'<div align="center">'."\n".

'<div class="header">'.$alt.'</div>'."\n".

'<img src="'.$imgURL.'" alt ="'.$alt.'">'."\n";

if(
$rate == 1){
echo 
'<div align="center">'."\n".
'<script type="text/javascript">'."\n".
'<!-- //'."\n".
'document.write(\'<div\'+\' class="js-kit-rating" starColor="Blue" view="combo" path="/'.$uniqueID.'"><\/di\'+\'v>\')'."\n".
'//-->'."\n".
'</script>'."\n".
'</div>'."\n";
}

echo 
'<br />'."\n".

'<textarea cols="'.$t_cols.'" rows="'.$t_rows.'" onclick="this.focus(); this.select();">'."\n"

'<img src="'.$imgURL.'" alt ="'.$alt.'">'."\n"

'<p><a href="'.$site_url.'">Spaceskillz Myspace Comments</a></p>'."\n"

'</textarea>'."\n".

'<br />'."\n".

'<br />'."\n";

include(
"./ad.php");

echo 
"\n".'</div>'."\n";

if(
$rate == 1)
echo
'<script src="http://js-kit.com/ratings.js"></script>';

?>
Edwin is offline  
Reply With Quote