Seite: << "; } else { $wert .= "
Seite: "; } if($seite!=1) { $previous = $seite-1; $wert .= "< "; } else { $wert .= ""; } $a = 1; while($a < $seiten+1) { if($seite==$a) { $wert .= "$a "; } else { $wert .= "$a "; } $a++; } if($seite!=$seiten) { $next = $seite+1; $wert .= " >"; } else { $wert .= ""; } if($seite!=$seiten) { return $wert .= " >>
"; } else { return $wert .= ""; } } $seitenlink = seiten($seitenlink); // ------------------------------------ // ~~~~~~++ Standart ++~~~~~~~~ if($html=='checked') { $html_text='An'; } else { $html_text ='Aus'; } include("$pb_lang/language.php"); $gt = count($linie); $head = "$pbtemp/headernews.html"; $open_head = fopen($head, "r"); $head = fread($open_head, filesize($head)); $head = ereg_replace("{posten}","$dateiname$prefix=add",$head); $head = ereg_replace("{pbook}","$dateiname$prefix=view",$head); $head = ereg_replace("{admin}","$url/newsins.php",$head); $head = ereg_replace("{gesamt}","$gesamt",$head); echo $head; // ~~~~~~++ Einträge Anzeigen ++~~~~~~~~ if ($pb=='view' or $pb=='') { $datei = file("$pbdb/news.dat"); $datei = array_reverse($datei); $cc = 0; if($head_links=='checked') { echo $seitenlink; } if($seite==0) { $zeile = $nps; } else { $zeile = $seite*$nps-$nps; } if($zeile+$nps > $anz) { $ausgabe = $nps-(($zeile+$nps)-($anz)); } else { $ausgabe = $nps; } while($cc < $ausgabe) { $eintraege = $datei[$zeile]; $eintraege = stripslashes($eintraege); $eintrag = explode("|--|", $eintraege); $temp = "$pbtemp/templatenews.html"; $open_temp = fopen ($temp, "r"); $template = fread($open_temp, filesize($temp)); fclose($open_temp); $nummer = $gesamt--; $email = $eintrag[0]; $name = $eintrag[2]; $kommentar = $eintrag[3]; $icq = $eintrag[4]; $zeit = $eintrag[5]; $datum = $eintrag[6]; $ip = $eintrag[7]; $comment = $eintrag[8]; $x = $gt - ($zeile); $website = "http://"; if($www_pflicht == 'checked') { if(ereg($website,$eintrag[1])) { $www = $eintrag[1]; } else { $www = $eintrag[1]; } if(!ereg($website,$eintrag[1]) && $eintrag[1] != "") { $www = "http://".$eintrag[1].""; } } else { $www = $eintrag[1]; } if($icq != "") { $icq = "\"$ab"; } if($email != "") { $email = ""; } if($www != "") { $www = ""; } if($comment != "") { $comment = "$admincom$comment"; } $fp = opendir("$pbimage/smilies"); while($smilie = readdir($fp)) { if($smilie == '.'){ echo ''; } elseif($smilie == '..'){ echo ''; } else{ $smilie = ereg_replace(".gif","", $smilie); $kommentar = ereg_replace(":$smilie:","", $kommentar); $comment = ereg_replace(":$smilie:","", $comment); } } $kommentar = ereg_replace(':)',"",$kommentar); $kommentar = ereg_replace(':p',"",$kommentar); $kommentar = ereg_replace(';)',"",$kommentar); $kommentar = ereg_replace(':\(',"",$kommentar); $kommentar = ereg_replace(':D',"",$kommentar); $kommentar = ereg_replace(':würg:',"",$kommentar); $comment = ereg_replace(':)',"",$comment); $comment = ereg_replace(':p',"",$comment); $comment = ereg_replace(';)',"",$comment); $comment = ereg_replace(':\(',"",$comment); $comment = ereg_replace(':D',"",$comment); $comment = ereg_replace(':würg:',"",$comment); $template = ereg_replace("{email}","$email",$template); //Ersetzten $template = ereg_replace("{nummer}","$x",$template); $template = ereg_replace("{name}","$name",$template); $template = ereg_replace("{www}","$www",$template); $template = ereg_replace("{eintrag}","$kommentar",$template); $template = ereg_replace("{admincomment}","$comment",$template); $template = ereg_replace("{zeit}","$zeit",$template); //Ersetzten $template = ereg_replace("{datum}","$datum",$template); $template = ereg_replace("{edit}","\"Editiere",$template); $template = ereg_replace("{löschen}","\"Lösche",$template); $template = ereg_replace("{ip}","\"$ao\"",$template); $template = ereg_replace("{icq}","$icq",$template); $template = ereg_replace("{gesamt}","$gesamt",$template); $template = stripslashes($template); echo $template; $cc++; $zeile++; } echo "$seitenlink
"; } // ~~~~~~++ Einträge Hinzufügen ++~~~~~~~~ if ($pb==addnewnews978) { echo"

$ae

$af

$ag

$ah

$ai

$am

$bh $html_text

 



"; } if ($pb==smilies) { echo "
Smilies

"; $fp = opendir("$pbimage/smilies"); echo "
"; while($datei = readdir($fp)) { if($datei == '.') { echo ""; } elseif($datei == '..') { echo ''; } else { $bild = $datei; $datei = str_replace(".gif","", $datei); echo ""; } } echo "
Code Smilie
:$datei:

"; } $foot = "$pbtemp/footer.html"; $open_foot = fopen($foot, "r"); $foot = fread($open_foot, filesize($foot)); $foot = ereg_replace("{posten}","$dateiname$prefix=add",$foot); $foot = ereg_replace("{pbook}","$dateiname$prefix=view",$foot); $foot = ereg_replace("{admin}","$url/newsins.php",$foot); $foot = ereg_replace("{gesamt}","$gesamt",$foot); echo $foot; ?>