include ("funcs.inc.php");
$dateiname=gimmefilename();
$dateiname=str_replace("fun-bilder/","",$dateiname);
$titel0=str_replace(".htm","",$dateiname);
$kommentar=$_POST["kommentar"];
$titel_sql = encodetitel($titel0);
$titel1=htmlentities($titel_sql);
connect();
$bew=$_POST["bew"];
$sql = "SELECT id,file,kat,kat2,titel,von,zeit,views,note,votes FROM pics WHERE titel='".mysql_escape_string($titel_sql)."' LIMIT 0,1";
$row=gimmeassoc($sql);
foreach ($row as $key=>$value)
{
$$key=$value;
}
if ($votes<>0)
{
$note=($note/$votes);
}
$anz=gimmeone("SELECT count(id) FROM pics WHERE (kat=\"$kat\") AND aktiv=\"1\" LIMIT 0,1");
$nummer=gimmeone("SELECT count(id) FROM pics WHERE (kat=\"$kat\") AND id>\"$id\" AND aktiv=\"1\" LIMIT 0,1")+1;
$nextpic=gimmeone("SELECT titel FROM pics WHERE (kat=\"$kat\") AND id<\"$id\" AND aktiv=\"1\" ORDER BY id DESC LIMIT 0,1");
$prpic=gimmeone("SELECT titel FROM pics WHERE (kat=\"$kat\") AND id>\"$id\" AND aktiv=\"1\" ORDER BY id LIMIT 0,1");
$nextpic=decodetitel($nextpic);
$prpic=decodetitel($prpic);
mysql_query("UPDATE pics SET views=views+1 WHERE titel=\"$titel_sql\"");
$views++;
if ($file=="")
{
die("Fehler!");// #$titel1#:.
".$sql."
"); // :. ".$sql."
"
}
$titel=trim($titel1)." - Fun-Pic";
$htitel="Fun-Pic: $titel1";
include ("header.inc.php");
if ($kommentar<>"")
{
echo add_kommentar($kommentar,$titel0);
}
if ($bew<>"")
{
echo bewertungabgeben($bew,$titel1,getenv("REMOTE_ADDR"),"","",$titel_sql);
}
$slide=$_REQUEST["slide"];
$speed=$_REQUEST["speed"];
if ($slide<>"")
{
$speed++;
$speed--;
if ($speed=="")
{
$speed=10;
}
$sek=$speed*1000;
if ($anz>$nummer)
{
echo '';
}
}
if (SHOW_ADS!='yes') { ?>
=> Jetzt Fun-Pics einsenden + gratis SMS kassieren! <=
} ?>
Fun-Pic |
|
$vorher=$nummer-1;
$nachher=$nummer+1;
if ($anz<=$nummer)
{
$wd=" DISABLED=\"true\"";
}
if ($nummer==1)
{
$vd=" DISABLED=\"true\"";
}
echo "
|
Fun-Bild $nummer von $anz
|
|
";
?>
Einige Daten | |
Bewertung der User:
|
echo ($votes<>0?colorize($note,$noten_text[$note-1])." (".komma($note).")":"noch keine"); ?>
|
Votes bisher:
|
echo ($votes<>0?$votes:"noch keine"); ?>
|
Aufrufe:
|
echo $views; ?>
|
Kategorie:
|
echo cat_name_to_real(cat_id_to_file($kat)); ?>
|
include ("footer.inc.php");
?>