Jaha... wie schon im Titel beschrieben ist meine common.php zerschossen.
Warum..? Joah, wenn ich das wüsste, würde ich nicht fragen.
Kriege immer wieder ein weißes Bild.
Und wissen das es an etwas liegt, was bestimmt total einfach ist, tue ich auch... NUR WAS? *heult gleich*
[php]
if ($session[user][loggedin]) {
//if ($counttoday<($limit/2) || $session['user']['superuser']>=2){
if ($message!="X"){
if ($talkline!="says") $tll = strlen($talkline)+11; else $tll=0;
// chat preview mod by Chaosmaker
output("<form action=\"$REQUEST_URI\" method='POST'>`@$message`n<input name='insertcommentary[$section]' size='40' maxlength='".(510-$tll) ?>
addnav("",$REQUEST_URI);
}
[/php]
bla... dann weiter im text
[php]
// if ($row[comment]!=$commentary || $row[author]!=$session[user][acctid]){
if(strlen($commentary)<=255) {
$sql = "INSERT INTO commentary (postdate,section,author,comment) VALUES (now(),'$section',".$session['user']['acctid'].",\"$commentary\")";
} else {
$sql = "INSERT INTO commentary (postdate,section,author,comment,comment_2) VALUES (now(),'$section',".$session['user']['acctid'].",'".substr($commentary,0,255)."','".substr($commentary,255)."')";
}
db_query($sql) or die(db_error(LINK));
return true;
} else {
$doublepost = 1;
}
}
[/php]
und der dritte Punkt...
[php]
$row['comment'] .= $row['comment_2'];
$x=0;
$ft="";
for ($x=0;strlen($ft)<3 && $x<strlen($row[comment]);$x++){
if (substr($row[comment],$x,1)=="`" && strlen($ft)==0) {
$x++;
}else{
$ft.=substr($row[comment],$x,1);
}
}
$link = "bio.php?char=".rawurlencode($row[login]) . "&ret=".URLEncode($_SERVER['REQUEST_URI']);
if (substr($ft,0,2)=="::") $ft = substr($ft,0,2);
[/php]
Und zu guter letzt...
[php]
// chat preview mod by Chaosmaker
output("<form action=\"$REQUEST_URI\" method='POST'>`@$message`n<input name='insertcommentary[$section]' size='40' maxlength='".(510-$tll) ?>
addnav("",$REQUEST_URI);
}
[/php]
Die Sql ist drin... um die common ganz zu posten reicht hier die begrenzung net aus :S
Ist da irgendwo der Fehler?
Hiiiilfee... -.-
_________________
MiLk?->Alten Account wiedergefunden.
~Marja~