"; mysql_query("UPDATE wallz SET views=views+1 WHERE id=$id;") or die("ERROR ".__LINE__.": ".mysql_error()); if ($action == "AddRate") { if(!empty($Review) and !empty($login)) { $Review = ereg_replace( "\n", "
",$Review); $Review = ereg_replace( "\"", """,$Review); $Review = ereg_replace( "'", "´",$Review); mysql_query("INSERT INTO slo_comments VALUES(0,'$id','','$login',CURRENT_DATE,CURRENT_TIME,'$Review')") or die("ERROR ".__LINE__.": ".mysql_error()); $res22 = mysql_query("SELECT * FROM users where uname='$login'") or die("ERROR ".__LINE__.": ".mysql_error()); $ar22 = mysql_fetch_array($res22); if(!empty($ar22[id])) mysql_query("UPDATE userStats SET rate=rate+1 where uid=$ar22[id];") or die("ERROR ".__LINE__.": ".mysql_error()); } } include($sb_table_inc); $sb = &New SkinBrowser; $sb->SetRatePage(TRUE); $sb->PrintSkin($id,0,1); // Additional Stuff if(isset($index_recent_top)) echo $index_recent_top; else echo $top; $output = ""; $output .= ''; $output .= ''; $res = mysql_query("SELECT * FROM wallz WHERE uname='".$ar01[uname]."' AND id<>'".$ar01[id]."' ORDER BY RAND(), rating DESC LIMIT 12") or die("ERROR ".__LINE__.": ".mysql_error()); $m = 0; while($ar = mysql_fetch_array($res)) { $m++; if($m == 1) $output .= ""; @list($width, $height, $type, $attr) = getimagesize('/opt/www/virtual/www.skinbase.si/files/shots/'.$ar[picture]); if($height>400) $heights = 'height="200"'; else $heights = ''; $output .= ''; if($m == 4) { $output .= ""; $m = 0; } } $output .= '
Random '.$ar2[uname].'\'s Uploads
'.$ar[name].' by '.$ar[uname].'
'; echo $output; if(isset($index_recent_bottom)) echo $index_recent_bottom; else echo $bottom; include("footer.php"); ?>