If every guest register is unsuccessfull, Help?
<?
/////////////////////////// разработка StarWap-Group ///////////////////////////////
Error_Reporting(E_ALL & ~E_NOTICE);
header("Content-type:text/vnd.wap.wml;charset=utf-8"); //////// тип и кодировка документа
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml><card id=\"main\" title=\"Greens\"><p>";
$kod="<a href=\"http://***/on/online.php?on="; /////////код счетчика
$kod2="\"><img src=\"http://***/on/counter.php?nc=";
$kod3="\" alt=\"online\" /></a>";
$kod=htmlspecialchars(stripslashes($kod));
$kod2=htmlspecialchars(stripslashes($kod2));
$kod3=htmlspecialchars(stripslashes($kod3));
$name=htmlspecialchars(stripslashes($name));
$adres=htmlspecialchars(stripslashes($adres));
$infa=htmlspecialchars(stripslashes($infa));
$pas=htmlspecialchars(stripslashes($pas));
if($name!="$_GET[name]"){
if($adres!=""){
if($infa!=""){
if($pas!=""){
$tr1=array(":","/");
$tr2=array("d","s");
$pglav=str_replace($tr1,$tr2,$adres);
$taf = @implode("",@file("af/$pglav.af"));
$taf=trim($taf);
if($taf==""){
$counterarray = file("vsego.vr");
$id = $counterarray[0]+1;
$fp = @fopen("vsego.vr","wb");
@fputs($fp,$id);
@fclose($fp);//////// увеличиваем счетчик регистрации
$zap="$name:||:$adres:||:$infa:||:$pas";
$fp=fopen("konf/$id.konf","w");
fputs($fp,"$zap \r\n");
fclose($fp);
chmod ("konf/$id.konf", 0777);//////// создаем файл с параметрами
$fp=fopen("af/$pglav.af","w");
fputs($fp,"$id \r\n");
fclose($fp);
chmod ("af/$pglav.af", 0777);//////// создаем файл с параметрами
print"Registration successfully! Your registration number id: $id<br/>Your online counter links:<br/>
$kod$id$kod2$id$kod3";}
else{print"The site url already registered: $adres,your registration number id: $taf <br/><anchor>Return<prev/></anchor>";}}
else{print"Please,fill all the fields! <br/><anchor>Return<prev/></anchor>";}}
else{print"Sorry,your registration unsuccessfully! <br/><anchor>Return<prev/></anchor>";}}
else{print"Registration failed!";}}
else{print"You did not introduce the name of your site! <br/><anchor>Return<prev/></anchor>";}
print "
<br/>* * * * *<br/><a href=\"/on\">Online Host</a><br/><br/>[<a href=\"/\">Home</a>]</p></card></wml>";
?>
<?
/////////////////////////// разработка StarWap-Group ///////////////////////////////
Error_Reporting(E_ALL & ~E_NOTICE);
header("Content-type:text/vnd.wap.wml;charset=utf-8"); //////// тип и кодировка документа
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml><card id=\"main\" title=\"Greens\"><p>";
$kod="<a href=\"http://***/on/online.php?on="; /////////код счетчика
$kod2="\"><img src=\"http://***/on/counter.php?nc=";
$kod3="\" alt=\"online\" /></a>";
$kod=htmlspecialchars(stripslashes($kod));
$kod2=htmlspecialchars(stripslashes($kod2));
$kod3=htmlspecialchars(stripslashes($kod3));
$name=htmlspecialchars(stripslashes($name));
$adres=htmlspecialchars(stripslashes($adres));
$infa=htmlspecialchars(stripslashes($infa));
$pas=htmlspecialchars(stripslashes($pas));
if($name!="$_GET[name]"){
if($adres!=""){
if($infa!=""){
if($pas!=""){
$tr1=array(":","/");
$tr2=array("d","s");
$pglav=str_replace($tr1,$tr2,$adres);
$taf = @implode("",@file("af/$pglav.af"));
$taf=trim($taf);
if($taf==""){
$counterarray = file("vsego.vr");
$id = $counterarray[0]+1;
$fp = @fopen("vsego.vr","wb");
@fputs($fp,$id);
@fclose($fp);//////// увеличиваем счетчик регистрации
$zap="$name:||:$adres:||:$infa:||:$pas";
$fp=fopen("konf/$id.konf","w");
fputs($fp,"$zap \r\n");
fclose($fp);
chmod ("konf/$id.konf", 0777);//////// создаем файл с параметрами
$fp=fopen("af/$pglav.af","w");
fputs($fp,"$id \r\n");
fclose($fp);
chmod ("af/$pglav.af", 0777);//////// создаем файл с параметрами
print"Registration successfully! Your registration number id: $id<br/>Your online counter links:<br/>
$kod$id$kod2$id$kod3";}
else{print"The site url already registered: $adres,your registration number id: $taf <br/><anchor>Return<prev/></anchor>";}}
else{print"Please,fill all the fields! <br/><anchor>Return<prev/></anchor>";}}
else{print"Sorry,your registration unsuccessfully! <br/><anchor>Return<prev/></anchor>";}}
else{print"Registration failed!";}}
else{print"You did not introduce the name of your site! <br/><anchor>Return<prev/></anchor>";}
print "
<br/>* * * * *<br/><a href=\"/on\">Online Host</a><br/><br/>[<a href=\"/\">Home</a>]</p></card></wml>";
?>
Comment