Location: PHPKode > scripts > MobileBB > mobilebb_2.9.7/mobilebb/include/install.php
include 'config.php';
include 'language.php';
include 'spam.php';

echo "<form method=post> 
	Input administrator email:<input type=email name=email value=>
	Input desired password for admin:<input type=password name=password value=>
	<input type=submit name=submit value=submit>
if ($shaprefix == 'input any blowish word.') { echo '<div class=error><font color=red>You are using default shaprefix. Please change in ./include/config.php to improve password encryption !</font></div><br>';}
if (mysql_query ("select user_id from board_users limit 1")) { echo "Forum is already installed !"; exit;}

if (!isset($_POST['email']) && !isset($_POST['password'])) exit;
$email= trim($_POST['email']);
$password= trim($_POST['password']);

$handle = fopen('install.sql', 'rb');
if ($handle) {
    while (!feof($handle)) {
        $buffer = stream_get_line($handle, 1000000, ";\n");
	echo $buffer;
        mysql_query($buffer); // or die(mysql_error());
	echo "<h1>".mysql_error()."</h1>";

mysql_query("INSERT INTO board_users (user_id,user_email,user_pass,user_reg_dt,user_level) 
		VALUES ('1','".$email."', '".sha1($shaprefix.$password)."','".time()."','9')") or die (mysql_error());
echo "<hr><br>Finish. Now you can delete install.php and install.sql. <a href='../index.php'> home</a>";

Return current item: MobileBB