install.php
changeset 9 d55459cd1712
parent 8 47dd15d8bb8c
child 27 782f142d096d
equal deleted inserted replaced
8:47dd15d8bb8c 9:d55459cd1712
   140 		if($db->isError($reszones))
   140 		if($db->isError($reszones))
   141 		{
   141 		{
   142 			error("Can not create zones table in $dbdatabase");
   142 			error("Can not create zones table in $dbdatabase");
   143 		}
   143 		}
   144 
   144 
   145 		$id = $db->nextID('users');
       
   146 
       
   147 		/* TODO next version: fix the strip_slashes. might give trouble upgrading :/ -Lyon */
       
   148 		$sqlinsert =	"INSERT INTO 
   145 		$sqlinsert =	"INSERT INTO 
   149 					users 
   146 					users 
       
   147 					(username, password, fullname, email, description, level, active)
   150 				VALUES (
   148 				VALUES (
   151 					$id,
       
   152 					'". $_POST['login'] ."', 
   149 					'". $_POST['login'] ."', 
   153 					'". md5(stripslashes($_POST['password'])) ."',
   150 					'". md5(stripslashes($_POST['password'])) ."',
   154 					'". $_POST["fullname"] ."',
   151 					'". $_POST["fullname"] ."',
   155 					'". $_POST["email"] ."',
   152 					'". $_POST["email"] ."',
   156 					'". $_POST["description"] ."',
   153 					'". $_POST["description"] ."',