\n";
echo " \n";
echo " ";
include('constants.inc');
include('lexicon.inc');
if($data!="save"){
print "$msm[register]";
print "
";
place_foot();
} else {
if(!mysql_connect(HostName,UserName,Password))
{ echo "Can't connect to : ".DBName; exit; }
if($passwordd!=$passwordda || strlen($passwordd)<6){ systemError($msm[r_passer]); };
if(strlen($url)<4){ systemError($msm[r_urler]); };
if(strlen($mail)<4){ systemError($msm[r_mailer]); };
if(strlen($decription)>256){ systemError($msm[r_descer]); };
if(strlen($keywords)>256){ systemError($msm[r_keyer]); };
$tm = time()+$timeoffset;
$selCl = @mysql(DBName,"SELECT * FROM table_tbe3_system_misc");
if(@mysql_numrows($selCl)!=1){ systemError("System Error"); };
$misc = @mysql_fetch_array($selCl);
if($adminpass==$misc[adminpass] && $adminlogin == $misc[adminlogin]){ $class=1; } else { $class=0; };
$rt = $misc[lastuser]+1;
$newuser = $mask.$rt;
$selCl = @mysql(DBName,"SELECT * FROM table_tbe3_clients WHERE login='$newuser'");
if(@mysql_numrows($selCl)==1){ systemError($msm[already]); };
@mysql(DBName,"UPDATE table_tbe3_system_misc SET lastuser='$rt'");
function strips($item){
$item = ereg_replace("\""," ",$item);
return ereg_replace("'"," ",$item);
};
$url = strips($url);
$sitename = strips($sitename);
$mail = strips($mail);
$description = strips($description);
$keywords = strips($keywords);
$str = "INSERT INTO table_tbe3_clients VALUES('$newuser','$passwordd','$sitename','$url','$mail','$class',$tm,2,$language,$cat,'$description','$keywords',$setacc,$setbonus,0,'','',0,0,0,0)";
@mysql(DBName,"$str");
for($i=0;$i
$sysname
";
mailMe($mail,"Welcome to $sysname",$mailtext);
if($getmail == 1){
mailMe($contmail,"New user has joined the system.","\n login: $newuser\n password: $passwordd\n\n");
};
place_head_els();
print "$msm[accountreg] ";
print "
$msm[login] $newuser
$msm[password] $passwordd
";
place_foot();
};
echo " \n";
echo " \n";
echo " \n";
echo "