, : 'UPDATE `table` SET `time`='.time().' WHERE `id`='.$id : "INSERT INTO `table` VALUES('','$name','$time','$message')" ALTER TABLE `sessions` ADD `vcolumn_name` INT( 11 ) NOT NULL; ------------------------------------------------------------- <?php error_reporting(0); /** * @date 19 * @author iceman12 * @copyright 2010 * @ - */ if ($_REQUEST['step'] == 2 and isset($_REQUEST['mysql_host'], $_REQUEST['mysql_user'], $_REQUEST['mysql_password'], $_REQUEST['mysql_bd'])) { $file = "<?php\r\n"; $status = true; echo ' : '; $db = @mysql_connect($_REQUEST['mysql_host'], $_REQUEST['mysql_user'], $_REQUEST['mysql_password']); if ($db) { $file .= " \$mysql['host']='$_REQUEST[mysql_host]'; \r\n \$mysql['user']='$_REQUEST[mysql_user]'; \r\n \$mysql['password']='$_REQUEST[mysql_password]'; \r\n "; echo '<font color="#011BFF"></font><br />'; } else { $status = false; echo '<font color="red"> </font><br />'; } echo ' : '; if (@mysql_select_db($_REQUEST['mysql_bd'], $db)) { $file .= "\$mysql['bd']='$_REQUEST[mysql_bd]'; \r\n"; echo '<font color="#011BFF"></font><br />'; } else { $status = false; echo '<font color="red"> </font><br />'; } $db = mysql_connect($_REQUEST['mysql_host'], $_REQUEST['mysql_user'], $_REQUEST['mysql_password']) or die('SYSTEM ERROR: NOT CONNECT DATABASE'); mysql_select_db($_REQUEST['mysql_bd'], $db) or die(mysql_error()); unset($mysql); if ($status == true) { file_put_contents('!system/data_mysql_connect.php', $file . "\r\n ?>") or die('. ! !system chmod=777. .'); ?> <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 { echo '- , .'; } } elseif ($_REQUEST['step'] == 3) { function mdQ($var) { return md5(base64_encode($var) . 'iceman12'); } include '!system/data_mysql_connect.php'; $db = mysql_connect($mysql['host'], $mysql['user'], $mysql['password']) or die('SYSTEM ERROR: NOT CONNECT DATABASE'); mysql_select_db($mysql['bd'], $db) or die(mysql_error()); unset($mysql); echo ' : '; if (mysql_query("INSERT INTO `admin` (`login`,`password`) VALUES ('$_REQUEST[login]','" . mdQ($_REQUEST['password']) . "')")){ echo '<font color="blue"></font><br /> . <br /> <a href="/admin/?l=' . $_REQUEST['login'] . '&p=' . $_REQUEST['password'] . '"></a> '; unlink('install.php'); } else { echo "INSERT INTO `admin` (`login`,`password`) VALUES ('$_REQUEST[login]','" . mdQ($_REQUEST['password']) . "')"; echo '<font color="red">
далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru