Zainstalowałem na swojej stronie Księgę Gości IM Gbook v2.0 wszystko fajnie śmiga ale jest problem ;/
gdy chce dodać wpis w 2 miejscach wywala mi błąd ;/
Warning: ereg() [function.ereg]: Invalid preceding regular expression in /home.14/m/o/t/motodwus/www/guest/guest.php on line 211 (na kodzie nr.19)
Warning: ereg() [function.ereg]: Invalid preceding regular expression in /home.14/m/o/t/motodwus/www/guest/guest.php on line 214 (na kodzie nr.22)

oto kodzik
if ($confy[5]=="tak") { if (file_exists("$guestpath/emots/emotki.ict")) { $emotki_plik=file("$guestpath/emots/emotki.ict"); $emot_rozmiar=count($emotki_plik); foreach ($emotki_plik as $emotka) { $emotka=explode("||", $emotka); $dane[0]=str_replace($emotka[0],"<img src=\"$guestpath/emots/$emotka[1]\" border=0>",$dane[0]); } } } if ($confy[8]=="tak") { if (file_exists("$guestpath/cenzor.ict")) { $cenzor_plik=file("$guestpath/cenzor.ict"); reset($cenzor_plik); foreach ($cenzor_plik as $cenzor) { $cenzor=explode("||", $cenzor); $dane[1] = str_replace("$cenzor[0]","$cenzor[1]",$dane[1]); $dane[2] = str_replace("$cenzor[0]","$cenzor[1]",$dane[2]); $dane[3] = str_replace("$cenzor[0]","$cenzor[1]",$dane[3]); $dane[0] = str_replace("$cenzor[0]","$cenzor[1]",$dane[0]); } } } $template_p=str_replace("{WPIS}",$dane[0],$template_p); $template_p=str_replace("{AUTOR}",$dane[1],$template_p); $template_p=str_replace("{EMAIL}",$dane[2],$template_p); if ($dane[3]!="") { $template_p=str_replace("{WWW}","<a href=\"http://$dane[3]\" target=\"_blank\">www</a>",$template_p); } else { $template_p=str_replace("{WWW}","brak www",$template_p); } if ($dane[4]!="") { $template_p=str_replace("{GG}","<a href=\"gg:$dane[4]\"><img src=\"http://www.gadu-gadu.pl/users/status.asp?id=$dane[4]\" border=\"0\" alt=\"$dane[4]\"></a>",$template_p); } else { $template_p=str_replace("{GG}","<img src=\"$guestpath/template/img/gg.gif\" border=\"0\" alt=\"brak\">",$template_p); } $template_p=str_replace("{DATA}",$dane[5],$template_p); $template_p=str_replace("{CZAS}",$dane[6],$template_p); $template_p=str_replace("{IP}",$dane[7],$template_p); $template_p=str_replace("{HOST}",$dane[8],$template_p); $template_p=stripslashes($template_p); eval("?>".$template_p."<?"); } else{ echo "<center><b>Brak pliku z szablonem!</b><br>WejdĽ do <a href=\"$guestpath/admin.php\">administracji</a> aby ustawić plik.</center>"; } } } //Jeśli usuniesz poniższy fragment złamiesz prawa autorskie. Uszanuj pracę innych!
!! echo "<td valign=\"top\" align=\"center\" width=\"100%\">Powered by <a href=\"http://www.imps.pl\" target=\"_blank\"><b>IM GBook</b></a></td>"; break; case "add": } echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"$templ[0]\" align=\"$templ[7]\">"; $ban_ip=$_SERVER['REMOTE_ADDR']; $pban="nie"; foreach ($ban_plik as $linia) { if ($linia[0]==$ban_ip) { $pban="tak"; } } } if ($pban=="tak") { echo "<tr><td valign=\"top\" align=\"center\">Niestety nie możesz oddać wpisu do księgi gości, ponieważ twoje IP zostało za
blokowane przez Adminisratora!<br><br></td></tr>"; } else { echo "<table width=\"$templ[0]\" height=\"$templ[1]\" bgcolor=\"$templ[2]\" cellspacing=\"0\" cellpadding=\"$templ[3]\" style=\"border: $templ[4] $templ[5] $templ[6];\" align=\"$templ[7]\">"; if ($confy[5]=="tak") { ?> <script language="javascript"> function wstawEmot(znaczekEmot) { formularz.wpis.value+=znaczekEmot; formularz.wpis.focus() } </script> <? foreach($emotki_plik as $emotka){ $emotka_obrazek="$guestpath/emots/$emotka[1]"; echo "<img src=\"$emotka_obrazek\" onclick=\"wstawEmot(' $emotka[0] ')\" alt=\"$emotka[0]\" border=\"0\" style=\"cursor: hand;\"> "; } } } else { } } }
Po wywaleniu lini 212 i 213 (na kodzie 20 i 21) wyskakuje taki błąd
Warning: ereg() [function.ereg]: Invalid preceding regular expression in /home.14/m/o/t/motodwus/www/guest/guest.php on line 419 (na kodzie 229)
Warning: ereg() [function.ereg]: Invalid preceding regular expression in /home.14/m/o/t/motodwus/www/guest/guest.php on line 425 (na kodzie 235)
prosze o pomoc !
jeśli ktoś potrzebował by cały kod to prosze CAŁY KOD