-
Nickpage ohnen Inhalt
Hallo
die Nickpage ist bei der 1.2 ohnen inhalt
dort wird bei der SQL Abfrage der Nickname genommen obwohl die id übertragen wird
haben noch ein paar sachen geändert
PHP-Code:
<?
if (is_numeric($_GET['id'])){
$nick = addslashes($_GET['id']);
$sql = db_query("SELECT u.angemeldet_seit,u.nickname,k.klicks,k.kv,k.angebettelt,k.bv FROM
".$db_prefix."_kontodaten k
LEFT JOIN ".$db_prefix."_userdaten u ON u.uid = k.uid
WHERE u.uid='".$nick."' LIMIT 1");
}elseif(!empty($_GET['nick'])){
$nick = addslashes($_GET['nick']);
$sql = db_query("SELECT u.angemeldet_seit,u.nickname,k.klicks,k.kv,k.angebettelt,k.bv FROM
".$db_prefix."_kontodaten k
LEFT JOIN ".$db_prefix."_userdaten u ON u.uid = k.uid
WHERE u.nickname='".$nick."' LIMIT 1");
}
$np = mysql_fetch_assoc($sql);
head("Nickpage von ".$np['nickname']);
echo "<b>Angemeldet seit:</b> ".date("d.m.Y - H:i",$np['angemeldet_seit'])."<br>";
if ($np['klicks']!=0){
echo "<b>Paidbannerstatistik:</b> ".$np['klicks']." Klicks | Verdienst: ".$np['kv']."<br>";
}
if($np['angebettelt']!=0){
echo "<b>Bettellinkstatistik:</b> ".$np['angebettelt']." Aufrufe | Verdienst: ".$np['bv']."<br>";
}
foot();
?>
edit:noch ein fehler gefunden