Просмотр файла dpforum/ansave.php

Размер файла: 3.31Kb
<?
include 'dan.php';

/*
		by Dionisij (c) 2006
		[email protected]
		Скрипт не предназначен для продажи!
		При распространении необходимо обговорить условия распространения с автором скрипта.
		Нарушение авторских прав преследуется по закону и по понятиям!
*/

include 'ver.php';

$zag="Анкета";
if($ver=="wml"){include 'wapzag.php';} else{include 'webzag.php';}

include'avt.php';

if($login!=""){
$aranket=@file("$uzer/$login");
$aranket=explode("<br/>", $aranket[0]);

include 'arz.php';
$zpas=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $zpas))));
$den=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $den))));
$mes=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $mes))));
$yer=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $yer))));
$otkuda=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $otkuda))));
$xobbi=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $xobbi))));
$mesto=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $mesto))));
$osebe=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $osebe))));
$emeil=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $emeil))));
$om=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $om))));
$epod=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $epod))));
$isq=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $isq))));
$site=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $site))));
$vera=trim(htmlspecialchars(stripslashes(str_replace($ztex1, $ztex2, $vera))));

if($zpas!="" & $den!=""){

$aranket[0]=$zpas;
$aranket[2]=$den;
$aranket[3]=$mes;
$aranket[4]=$yer;
$aranket[5]=$otkuda;
$aranket[6]=$xobbi;
$aranket[7]=$mesto;
$aranket[8]=$osebe;
$aranket[9]=$emeil;
$aranket[10]=$om;
$aranket[11]=$epod;
$aranket[12]=$isq;
$aranket[13]=$site;
$aranket[18]=$vera;


$zapis=implode("<br/>", $aranket);
$fp=@fopen("$uzer/$login","w");
@fputs($fp,$zapis);
@fclose($fp);
chmod ("$uzer/$login", 0777);

$pas=$zpas;
print"Cохранено";

} else {print"Необходимо заполнить все обязательные поля!";}
} else {print"Для просмотра этого раздела необходима авторизация!";}

print"</p><p align=\"center\">";
if($ver=="html"){print"<table style=\"text-align: center; width: 98%;\"
 border=\"1\" cellpadding=\"2\" cellspacing=\"2\">
  <tbody>
    <tr>
      <td
 style=\"background-color: rgb($color2);\" align=\"center\"
 valign=\"top\">";}
 
 
 
 print"<a href=\"index.php?ver=$ver&amp;pas=$pas&amp;login=$login\">Вернутся на форум</a><br/>";
 
  if($login=="") { print"<a href=\"vxod.php?ver=html\">Вход</a><br/>";}
else {print"<a href=\"opc.php?ver=$ver&amp;pas=$pas&amp;login=$login\">[$login]</a><br/>";}

 if($ver=="wml"){print"<a href=\"ansave.php?ver=html&amp;pas=$pas&amp;login=$login\">wap 2.0</a><br/>";}
 else{print"<a href=\"ansave.php?ver=wml&amp;pas=$pas&amp;login=$login\">wap 1.2</a><br/>";}
 
 print"<a href=\"$gen_link\">На главную</a>";
 if($ver=="html"){print"</td>
    </tr>
  </tbody>
</table>
</body>
</html>
";}
else{print"</p></card></wml>";}



?>