"bigsmile.gif" ,":))" => "bigsmile.gif" ,":o))" => "bigsmile.gif" ,"*gg*" => "bigsmile.gif" ,":-)" => "smile.gif" ,":)" => "smile.gif" ,":o)" => "smile.gif" ,"*g*" => "smile.gif" ,":-D" => "gigagrossessmile.gif" ,":D" => "gigagrossessmile.gif" ,"*ggg*" => "gigagrossessmile.gif" ,";-)" => "wink.gif" ,";)" => "wink.gif" ,";o)" => "wink.gif" ,":-(" => "frown.gif" ,":(" => "frown.gif" ,":o(" => "frown.gif" ,":'-(" => "cry.gif" ,":'(" => "cry.gif" ,":'o(" => "cry.gif" ,":-S" => "confused.gif" ,":S" => "confused.gif" ,":oS" => "confused.gif" ,"*eek*" => "eek.gif" ,"8-)" => "cool.gif" ,"8)" => "cool.gif" ,"8o)" => "cool.gif" ,"8-D" => "smile_cool.gif" ,"8oD" => "smile_cool.gif" ,":-P" => "zunge.gif" ,":-p" => "zunge.gif" ,":oP" => "zunge.gif" ,":op" => "zunge.gif" ,":-B" => "face82.gif" ,":oB" => "face82.gif" ,"*yeah*" => "nsmilie.gif" ,"*juhu*" => "nsmilie.gif" ,"*ha*" => "pleased.gif" ,"*lach*" => "pleased.gif" ,"*peinlich*" => "redface.gif" ,"*redface*" => "redface.gif" ,"*gucken*" => "rolleyes.gif" ,"*lol*" => "lol.gif" ,"*mad*" => "mad.gif" ); ?>", $text); } return $text; } } function entry_count () { global $gbdaten; return count(file($gbdaten ,"r")); } function good_und($text) { return str_replace("&", "&", $text); } function get_entry($file, $number) { $datei=fopen("./".$file,"r"); while(feof($datei)==0) { $data[]=fgets($datei,1000000); } fclose($datei); return $data[$number]; } function urlize ($text) { return preg_replace("/((http(s?):\/\/)|(www\.))([^\s|^<]*)/i", "$2$4$5", $text); } function baseurl() { $baseurl = (isset($_SERVER['HTTPS'])) ? "https://" : "http://"; $baseurl .= $_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']); return $baseurl; } function edit_entry($file, $number, $text) { $datei=fopen("./".$file,"r"); while(feof($datei)==0) { $data[]=fgets($datei,1000000); } $data[$number]=$text."\n"; $datei=fopen("./".$file,"w"); fputs($datei,implode('', $data)); fclose($datei); } function no_spam($mail) { $str = ""; $a = unpack("C*", $mail); foreach ($a as $b) $str .= sprintf("%%%X", $b); return $str; } function spam_ok($name, $spams) { if (in_array($name, $spams)) { return true; } else { return false; } } function short_words($text, $length = 50) { $words = explode(" ",$text); $count_w = count($words)-1; if($count_w >= 0) { for($i=0;$i<=$count_w;$i++) { if(strlen($words[$i])>=$length) { $words[$i] = chunk_split($words[$i], $length,"- "); $length = strlen($words[$i])-5; $words[$i] = substr($words[$i],0,$length); } $text = implode(" ",$words); } } else { $text = chunk_split($text,$length,"- "); } return $text; } ?> Guestbox <?=$version;?>
URL:
Text:
Name:
Email:
Name
Email-Adresse
Homepage

"0" ) { $v=$file; if (!isset($_GET['Anfangsposition'])) { $Anfangsposition = 0; } if($_GET['Anfangsposition'] > 0) { $back=$_GET['Anfangsposition']-$Eintraege_pro_Seite; if($back < 0) { $back = 0; } } if($anzahl>$Eintraege_pro_Seite) { $Seiten=intval($anzahl/$Eintraege_pro_Seite); $navi = "
Seite: "; if($anzahl%$Eintraege_pro_Seite) { $Seiten++; } for ($i=1;$i<=$Seiten;$i++) { $fwd=($i-1)*$Eintraege_pro_Seite; if($_GET['Anfangsposition']==$fwd) { $navi = $navi.$i." "; } else { $navi = $navi."".$i." "; } } $navi = $navi." 
"; } echo $navi; } ?>Nach Updates suchen
"; } $datei=fopen($gbdaten,"r"); $file = file($gbdaten); if ($anzahl > "0" ) { for($k=$_GET['Anfangsposition']; $k<$_GET['Anfangsposition']+$Eintraege_pro_Seite; $k++) { if (isset($v[$k])) { $data=explode("\t",$v[$k]); if (strlen($data[2]) > 1) { if ($flag) $land = " \"aus"; else $land = " aus ".$data[2]; } else { $land = ""; } if (strlen($data[3]) > 1) { $email="".htmlentities(stripslashes($data[1])).""; } else { $email = htmlentities(stripslashes($data[1])); } if (preg_match("/http:\/\/.+/i", $data[4])) { $homepage="\"".htmlentities($data[4])."\""; } else { $homepage = ""; } if (strlen($data[7]) > 1) { $comment = "
".stripslashes($data[7])."
"; } else { $comment = " "; } if (strlen($data[0]) > 1) { echo "
\n
 (".(sizeof($file)-$k).") ".$email.$land." schrieb am ".htmlentities(date("d. M y, H:i",$data[0]))."  ".$homepage; if (isset($_SESSION['admin'])) { echo " \"lupe\" \"löschen\" \"kommentieren\" \n"; } echo "
\n".urlize(smileize(short_words(stripslashes($data[5]), 80).$comment))."

\n"; } } } } else { echo "
Sorry, leider noch keine Einträge ;-(

\n"; } ?>
Login - Guestbox