</font><br />'; ?> <fieldset> <legend> </legend> <form method="post" action="?step=3"> :<br /> <input type="text" name="login" /><br /> :<br /> <input type="text" name="password" /><br /> <input type="submit" /> </form></fieldset> <?php } } else { ?> <fieldset> <legend> </legend> <form method="post" action="?step=2"> :<br /> <input type="text" value="localhost" name="mysql_host" /><br /> :<br /> <input type="text" value="root" name="mysql_user" /><br /> :<br /> <input type="text" value="" name="mysql_password" /><br /> :<br /> <input type="text" value="" name="mysql_bd" /><br /> <input type="submit" /> </form></fieldset> <?php } ?> -------------------------------------------------------------- () <?php // by Shifty. RUSL' )) $pass='1234'; // if (!isset($_POST['psw'])){ echo' <br> <form method="post" action="."> <input type="password" name="psw" size=10> <input type="submit" value="Ok"></form>'; exit;} if(isset($_POST['psw'])&&$_POST['psw']==$pass){ print " -!"; }else{ echo ' ! <a href="."> !'; } ?> ================= By Morgan . <?php $admin_login = 'Admin'; // $admin_pass = '12345'; // if(empty($_SERVER['PHP_AUTH_USER']) || empty($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_USER'] != $admin_login || $_SERVER['PHP_AUTH_PW'] != $admin_password) { header('WWW-Authenticate: Basic realm="Authentification"'); header('HTTP/1.0 401 Unauthorized'); header('Content-type: text/html; charset=utf-8'); exit('<html><head><title>Error</title></head><body><p style="color:red;font-size:24pt;text-align:center">Unauthorized</p></body></html>'); } // ?> -------------------------------------------------------- , , $sql = '`id`= 0'; $query = mysql_guery("SELECT id FROM `user` ORDER by `id` DESC LIMIT 10"); // while($row = mysql_fetch_assoc($query)) { $sql .= 'and `id`='.$row['id']/ :) } mysql_guery("DELETE FROM `user` WHERE $sql ")/ , , , , , , ------------------------------------------------------------- <?php $data = array() $query = mysql_guery("SELECT id FROM `user` ORDER by `id` DESC LIMIT 10"); while($row = mysql_fetch_row($query)) { $data[]= $row[0]; } mysql_guery("DELETE FROM `user` WHERE `id` IN('.implode('
назад далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru