diff -r c72d6d51f3d3 -r c255196bc447 install.php --- a/install.php Wed Mar 12 20:45:56 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,225 +0,0 @@ - for more details. - * - * Copyright 2007, 2008 Rejo Zenger - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// addslashes to vars if magic_quotes_gpc is off -function slash_input_data(&$data) -{ - if ( is_array($data) ) - { - foreach ( $data as $k => $v ) - { - $data[$k] = ( is_array($v) ) ? slash_input_data($v) : addslashes($v); - } - } - return $data; -} - -set_magic_quotes_runtime(0); - -// If magic quotes is off, addslashes -if ( !get_magic_quotes_gpc() ) -{ - $_GET = slash_input_data($_GET); - $_POST = slash_input_data($_POST); - $_COOKIE = slash_input_data($_COOKIE); -} - - -error_reporting(E_ALL); -if(!@require_once("inc/config.inc.php")) -{ - error("You have to create a config.inc.php!"); -} -include_once("inc/header.inc.php"); - -$sup_types = array('mysql'); - -function error($msg=false) -{ - // General function for printing critical errors. - if ($msg) - { - ?> -

-
-

<< back

- query($sqlusers); - - if($db->isError($resusers)) - { - error("Can not create table users in $dbdatabase"); - } - - $reszones = $db->query($sqlzones); - - if($db->isError($reszones)) - { - error("Can not create zones table in $dbdatabase"); - } - $reszones = $db->query($sqlrecowns); - - if($db->isError($reszones)) - { - error("Can not create record_owners table in $dbdatabase"); - } - - $sqlinsert = "INSERT INTO - users - (username, password, fullname, email, description, level, active) - VALUES ( - '". $_POST['login'] ."', - '". md5(stripslashes($_POST['password'])) ."', - '". $_POST["fullname"] ."', - '". $_POST["email"] ."', - '". $_POST["description"] ."', - 10, - 1)"; - - $resadmin = $db->query($sqlinsert); - - if($db->isError($resadmin)) - { - - error("Can not add the admin to database $dbdatabase.users"); - } - else - { - - ?> -

-
-
-:
-
- here - -" . _('You didnt fill in one of the required fields!') . ""; - } -} - -else -{ -?> - -

-
-
- * -


- -
- - - - - - - -
: *
: *
: *
: *
:
 
-
-