Hi!
Got neat ad posting thingy but
Deprecated: Function ereg() is deprecated in /home/content/13/11394913/html/ads/index.php on line 34
is repeated all the way down page, and then some.
Index.php is SO LONG I can't get it on here!
So I'll post enuf to cover ln 34.
<?PHP
include "inc/global.php";
include "temp.fun.php";
$rq = $_REQUEST;
$pst = $_POST;
$do = $_REQUEST['do'];
$system = $DB->sys_optn("sys");
set_visitor();
if($rq['tag'])
{
$sql_chk = $DB->fetch_q("select * from tags where tags_name='".urlencode($rq['tag'])."' ");
if($sql_chk['con'] != 0)
{
$tag = str_replace(" ", "+", $rq['tag']);
$pst['search_fr'] = $tag;
$clk = $sql_chk['rs']['clicks'];
$clk++;
$tags_up['clicks'] = $clk;
$ups = $DB->updt("tags", $tags_up, "where idtags='".$sql_chk['rs']['idtags']."' ");
$_SESSION['tags'] = $tag;
}
}
$style_file = "styles/".$style.".html";
$file_lang = @fopen("lang/".$lang_file.".php", r);
$_Phrase = array();
while(!feof($file_lang))
{
$line = fgets($file_lang);
if(!ereg("die()", $line) && !ereg("//", $line))
{
$phrase_ar = explode("=", $line);
if($phrase_ar[0] && $phrase_ar[1])
{
$_Phrase[strip_space($phrase_ar[0])] = str_replace("\n", "", strip_space($phrase_ar[1]));
}
}
}
//Database
if($_POST['titl'] && $_POST['nam'] && $_POST['website'] && $_POST['data'] && $_POST['cap'] && $_POST['email'] && !$pst['name_contact'])
{
if(check_mail($_POST['email']))
and so on...... to ln 781!
Thanks,
L-D