include"header.php"; ?>
$picturelink = $picture['picture'];
$picturetitle = $picture['title'];
$picturedate = $picture['date'];
$pictureviews = $picture['views'];
$picturethumb = $picture['thumb'];
$pitext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $picturetitle))));
/*
$url = $picturelink;
$vtype = substr(strrchr($url, "."), 1);
$url = str_replace("http://","",$url);
$urlComponents = explode("/",$url);
$vfile = $urlComponents[3];
*/
if ($id && $picturelink){
$ctext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $gcat))));
$clicks = $picture['views'] + 1;
mysql_query("UPDATE pictures SET views = '".$clicks."' WHERE id = '".$id."'");
?>
Pictures / =$pcat?> / =$picturetitle;?>
if($picture['banner']){
echo "
".$picture['banner']."
";
}
?>
$previd = $id - 1;
$sqll = mysql_query("SELECT * FROM pictures WHERE id='".$previd."'");
while($roww = mysql_fetch_array($sqll)){
$gtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
if ($previd){
echo " << Previous ";
}
}
?> | Home | Similar |
$nextid = $id + 1;
$sql2 = mysql_query("SELECT * FROM pictures WHERE id='".$nextid."'");
while($roww = mysql_fetch_array($sql2)){
$gtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
if ($nextid){
echo " Next >> ";
}
}
?>
|
if($picture['banner']){
echo "
".$picture['banner']."
";
}
?>
More from =$pcat?> [more]
$sqll = mysql_query("SELECT * FROM pictures WHERE status='1' AND id NOT LIKE '".$id."' AND cat LIKE '".$picture['cat']."' ORDER by rand() LIMIT 4");
while($roww = mysql_fetch_array($sqll)){
$vtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
echo "
";
}
?>
Random Pictures [more]
$sqll = mysql_query("SELECT * FROM pictures WHERE status=1 AND id NOT LIKE '".$id."' ORDER by rand() LIMIT 4");
while($roww = mysql_fetch_array($sqll)){
$vtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
echo "
";
}
?>
} else {
echo "".$itemerror."";
}
?>
include "footer.php"; ?>