############################################ # + xGB [x-devGuestBook] v 1.2 # # + by Robert Klikics & Alexander Weiss # # + visit: http://x-dev.de for more stuff # # + License: GPL # # + You may not remove the Copyrights # ############################################ # + Filename: index.php [mainfile] # ############################################ include("./config/gb_head.inc"); require("./config/gb_settings.php"); require("./data/gb_data.dat"); require("./data/gb_badwords.dat"); //zählt die posts: $gesamt = count($name); if($gesamt == 1) $etrg = "entry"; else $etrg = "entries"; echo "
\n"; echo "welcome to the $hpname guestbook\n"; echo "
\n"; echo "[ $gesamt $etrg so far ] ::"; echo " [ add one more ]\n"; if($start == "") $start = "0"; $count = "1"; $zaehler = "0"; while($count <= "$max_page") { //if($html == "on") //{ // HTML-Formatierung: $text[$start] = stripslashes($text[$start]); //} if($smileys == "on") { //smilies: $text[$start] = ereg_replace(":-)", "", $text[$start]); $text[$start] = ereg_replace(":-\(", "", $text[$start]); $text[$start] = ereg_replace(":)", "", $text[$start]); $text[$start] = ereg_replace(";)", "", $text[$start]); } if($code == "on") { // UBC $text[$start]=eregi_replace("\[b\]","",$text[$start]); $text[$start]=eregi_replace("\[/b\]","",$text[$start]); $text[$start]=eregi_replace("\[i\]","",$text[$start]); $text[$start]=eregi_replace("\[/i\]","",$text[$start]); $text[$start]=eregi_replace("\[img\]([^\[]+)\[/img\]","",$text[$start]); $text[$start]=eregi_replace(""\]","\"]",$text[$start]); // url & email addons (new): $text[$start]=eregi_replace("\[url\]([^\[]+)\[/url\]","\\1",$text[$start]); $text[$start]=eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]","\\1",$text[$start]); } //HP if ($pageurl[$start] != "http://" && $pagename[$start] != "") $urlset[$start] = "[ url: $pagename[$start] ] ::"; else $urlset[$start] = ""; //name $newname = ereg_replace("!", " ", $name[$start]); // formatierung für HP.eintrag der gäste: include("./config/gb_design.dat"); $count++; $start++; if($name[$start] == "") { break; } } // generiere den 'nächste Seite' link: if($gesamt > $max_page) { $testvar = $start / $max_page; $backvar = $start - ($max_page * 2); echo "
\n"; if($testvar != 1 && is_integer($testvar)) echo "[ <-- ] :: [ back ]"; if(is_integer($testvar)) $spage = "[ next ] "; else $spage = "[ <-- ] :: [ back ]"; echo $spage;//$testvar if($name[$start] != "") echo ":: [ --> ]
\n\n"; } //footer einfügen: include("./config/gb_foot.inc"); ?>