define("NO_ADS", true);
include ("funcs.inc.php");
$dateiname=gimmefilename();
$dateiname=str_replace("fun-sound/","",$dateiname);
$titel0=str_replace(".htm","",$dateiname);
$kommentar=$_POST["kommentar"];
$titel1=htmlentities(encodetitel($titel0));
connect();
$bew=$_POST["bew"];
// Kategorien laden...
$kats = '';
$result=mysql_query("SELECT * FROM soundkat");
while( $kat = mysql_fetch_array($result) ) {
$kats[$kat[0]] = array( "short" => $kat[1], "name" => $kat[2]);
}
$row=gimmeassoc("SELECT id,file,kat,titel,text,von,zeit,views,note,votes FROM sounds WHERE titel=\"".mysql_escape_string($titel1)."\" LIMIT 0,1");
foreach ($row as $key=>$value)
{
$$key=$value;
}
if ($votes<>0)
{
$note=($note/$votes);
}
$anz=gimmeone("SELECT count(id) FROM sounds WHERE (kat=\"$kat\") AND aktiv=\"1\" LIMIT 0,1");
$nummer=gimmeone("SELECT count(id) FROM sounds WHERE (kat=\"$kat\") AND id>\"$id\" AND aktiv=\"1\" LIMIT 0,1")+1;
$nextsound=gimmeone("SELECT titel FROM sounds WHERE (kat=\"$kat\") AND id<\"$id\" AND aktiv=\"1\" ORDER BY id DESC LIMIT 0,1");
$prsound=gimmeone("SELECT titel FROM sounds WHERE (kat=\"$kat\") AND id>\"$id\" AND aktiv=\"1\" ORDER BY id LIMIT 0,1");
$nextsound=decodetitel($nextsound);
$prsound=decodetitel($prsound);
mysql_query("UPDATE sounds SET views=views+1 WHERE titel=\"$titel1\"");
$views++;
//echo "$anz $nummer $nextsound $prsound";
if ($file=="")
{
die("Fehler! #$titel1#");
}
$titel=trim($titel1)." - Fun-Sound";
$htitel="Fun-Sound: $titel1";
include ("header.inc.php");
if ($kommentar<>"")
{
echo add_kommentar($kommentar,$titel0);
}
if ($bew<>"")
{
echo bewertungabgeben($bew,$titel1,getenv("REMOTE_ADDR"),"","",$titel1);
}
$slide=$_REQUEST["slide"];
$speed=$_REQUEST["speed"];
if ($slide<>"")
{
$speed++;
$speed--;
if ($speed=="")
{
$speed=10;
}
$sek=$speed*1000;
if ($anz>$nummer)
{
echo '';
}
}
?>
=> Jetzt Fun-Sounds einsenden + gratis SMS kassieren! <=
$vorher=$nummer-1;
$nachher=$nummer+1;
if ($anz<=$nummer)
{
$wd=" DISABLED=\"true\"";
}
if ($nummer==1)
{
$vd=" DISABLED=\"true\"";
}
echo "
|
Fun-Sound $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; ?>
|
Eingesandt von:
|
echo ($von==0?"missgeschick.de":user_all_shortdata($von)); ?>
|
Kategorie:
|
echo $kats[$kat]['name']; ?>
|
Online seit:
|
echo date("d.m.Y",($zeit==0?"1138711257":$zeit)); ?>
|
// KOMMENTARE AUSKOMMENTIERT ;P
/*
Kommentare |
exit();
echo get_lastcomment($titel0);
?>
|
*/ ?>
// SLIDESHOW AUSKOMMENTIERT
/*
*/ ?>
include ("footer.inc.php");
?>