Old code (throws drecated ereg warning)
new code complains of syntax error unexpected '{'
...whats wrong with syntax anyone please?
<?php
php
/*
Header include (header.inc.php)
*/
ob_start();
include "global.inc.php";
include "ghetto_cron.inc.php";
if (ereg("217.44.214",$REMOTE_ADDR))
{
die();
}
if ($referer)
{
setcookie("referer",$referer,time()+2678400);
}
?>
<?php
php
/*
Header include (header.inc.php)
*/
ob_start();
include "global.inc.php";
include "ghetto_cron.inc.php";
if (preg_match("/217.44.214/","/$REMOTE_ADDR/")
{
die();
}
if ($referer)
{
setcookie("referer",$referer,time()+2678400);
}
?>