install.php
author rejo
Tue, 25 Dec 2007 15:05:29 +0000
changeset 51 e9df1dd6dd1f
parent 47 ae140472d97c
child 61 d015f5c9b308
permissions -rw-r--r--
[feladat @ 98] Fixed a missing gettext reference in the title of the change password page.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
     1
<?php
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
     2
47
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     3
/*  PowerAdmin, a friendly web-based admin tool for PowerDNS.
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     4
 *  See <https://rejo.zenger.nl/poweradmin> for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     5
 *
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     6
 *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     7
 *
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     8
 *  This program is free software: you can redistribute it and/or modify
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
     9
 *  it under the terms of the GNU General Public License as published by
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    10
 *  the Free Software Foundation, either version 3 of the License, or
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    11
 *  (at your option) any later version.
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    12
 *
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    13
 *  This program is distributed in the hope that it will be useful,
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    16
 *  GNU General Public License for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    17
 *
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    18
 *  You should have received a copy of the GNU General Public License
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    20
 */
ae140472d97c [feladat @ 94]
rejo
parents: 27
diff changeset
    21
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    22
// addslashes to vars if magic_quotes_gpc is off
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    23
function slash_input_data(&$data)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    24
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    25
	if ( is_array($data) )
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    26
	{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    27
		foreach ( $data as $k => $v )
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    28
		{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    29
			$data[$k] = ( is_array($v) ) ? slash_input_data($v) : addslashes($v);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    30
		}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    31
	}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    32
	return $data;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    33
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    34
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    35
set_magic_quotes_runtime(0);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    36
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    37
// If magic quotes is off, addslashes
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    38
if ( !get_magic_quotes_gpc() )
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    39
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    40
	$_GET = slash_input_data($_GET);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    41
	$_POST = slash_input_data($_POST);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    42
	$_COOKIE = slash_input_data($_COOKIE);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    43
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    44
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    45
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    46
error_reporting(E_ALL);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    47
if(!@require_once("inc/config.inc.php"))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    48
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    49
	error("You have to create a config.inc.php!");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    50
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    51
include_once("inc/header.inc.php");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    52
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    53
$sup_types = array('mysql');
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    54
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    55
function error($msg=false)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    56
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    57
       	// General function for printing critical errors.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    58
        if ($msg)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    59
	    {
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    60
		?>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    61
                <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    62
       	        <BR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    63
               	<FONT STYLE="font-weight: Bold"><?= nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    64
                <?
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    65
      	        die();
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    66
        }
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    67
	    else
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    68
	    {
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    69
       	        die("No error specified!");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    70
        }
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    71
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    72
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    73
if(isset($_POST["submit"]))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    74
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    75
	//$dbtype = $_POST["dbtype"];
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    76
	require_once("inc/database.inc.php");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    77
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    78
	if($dbdsntype == "mysql")
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    79
	{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    80
		$sqlusers =	"CREATE TABLE users (
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    81
				  id int(11) NOT NULL auto_increment,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    82
				  username varchar(16) NOT NULL default '',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    83
				  password varchar(34) NOT NULL default '',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    84
				  fullname varchar(255) NOT NULL default '',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    85
				  email varchar(255) NOT NULL default '',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    86
				  description text NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    87
				  level tinyint(3) NOT NULL default '0',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    88
				  active tinyint(1) NOT NULL default '0',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    89
				  PRIMARY KEY  (id)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    90
				) TYPE=InnoDB";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    91
		$sqlzones =	"CREATE TABLE zones (
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    92
  				  id int(11) NOT NULL auto_increment,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    93
				  domain_id int(11) NOT NULL default '0',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    94
				  owner int(11) NOT NULL default '0',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    95
				  comment text,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    96
				  PRIMARY KEY  (id)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    97
				) TYPE=InnoDB";
27
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
    98
                $sqlrecowns =   "CREATE TABLE record_owners (
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
    99
                                  id int(11) NOT NULL auto_increment,
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   100
                                  user_id int(11) NOT NULL default '0',
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   101
                                  record_id int(11) NOT NULL default '0',
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   102
                                  PRIMARY KEY  (id)
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   103
                                ) TYPE=InnoDB";
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   104
	}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   105
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   106
	// PGSQL Is trivial still, the relations are different.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   107
	if($dbdsntype == "pgsql")
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   108
	{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   109
		$sqlusers =	"CREATE TABLE users (
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   110
				id SERIAL PRIMARY KEY,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   111
				username varchar(16) NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   112
				password varchar(255) NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   113
				fullname varchar(255) NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   114
				email varchar(255) NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   115
				description text NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   116
				level smallint DEFAULT 0,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   117
				active smallint DEFAULT 0
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   118
				)";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   119
		$sqlzones =	"CREATE TABLE zones (
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   120
				id SERIAL PRIMARY KEY,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   121
				name varchar(255) NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   122
				owner smallint NOT NULL,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   123
				comment text NULL
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   124
				)";
27
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   125
                $sqlrecowns =   "CREATE TABLE record_owners (
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   126
                                id SERIAL PRIMARY KEY,
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   127
                                user_id smallint NOT NULL,
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   128
                                record_id smallint NOT NULL
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   129
                                )";
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   130
	}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   131
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   132
	if(!empty($_POST['login']) && !empty($_POST['password']) && !empty($_POST['fullname']) && !empty($_POST['email']))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   133
	{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   134
		// Declare default tables.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   135
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   136
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   137
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   138
		// It just tries to rough create. If it flunks.. bad a user exists or the dbase exists.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   139
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   140
		$resusers = $db->query($sqlusers);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   141
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   142
		if($db->isError($resusers))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   143
		{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   144
			error("Can not create table users in $dbdatabase");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   145
		}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   146
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   147
		$reszones = $db->query($sqlzones);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   148
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   149
		if($db->isError($reszones))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   150
		{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   151
			error("Can not create zones table in $dbdatabase");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   152
		}
27
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   153
                $reszones = $db->query($sqlrecowns);
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   154
27
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   155
                if($db->isError($reszones))
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   156
                {
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   157
                        error("Can not create record_owners table in $dbdatabase");
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   158
                }
782f142d096d [feladat @ 74]
rejo
parents: 9
diff changeset
   159
		
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   160
		$sqlinsert =	"INSERT INTO 
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   161
					users 
9
d55459cd1712 [feladat @ 22]
rejo
parents: 8
diff changeset
   162
					(username, password, fullname, email, description, level, active)
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   163
				VALUES (
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   164
					'". $_POST['login'] ."', 
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   165
					'". md5(stripslashes($_POST['password'])) ."',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   166
					'". $_POST["fullname"] ."',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   167
					'". $_POST["email"] ."',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   168
					'". $_POST["description"] ."',
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   169
					10,
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   170
					1)";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   171
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   172
		$resadmin = $db->query($sqlinsert);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   173
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   174
		if($db->isError($resadmin))
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   175
		{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   176
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   177
			error("Can not add the admin to database $dbdatabase.users");
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   178
		}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   179
		else
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   180
		{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   181
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   182
			?>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   183
<h2><? echo _('PowerAdmin has succesfully been installed.'); ?></h2>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   184
<br />
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   185
<? echo _('Remove this file (install.php) from your webdir.'); ?><br />
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   186
<b><? echo _('WARNING'); ?>:</b> <? echo _('PowerAdmin will not work until you delete install.php'); ?><br />
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   187
<br />
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   188
<? echo _('You can click'); ?> <a href="index.php">here</a> <? echo _('to start using PowerAdmin'); ?>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   189
</BODY></HTML>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   190
<?php
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   191
			die();
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   192
		}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   193
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   194
	}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   195
	else
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   196
	{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   197
		echo "<DIV CLASS=\"warning\">" . _('You didnt fill in one of the required fields!') . "</DIV>";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   198
	}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   199
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   200
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   201
else
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   202
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   203
?>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   204
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   205
<H2><? echo _('PowerAdmin for PowerDNS'); ?></H2>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   206
<BR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   207
<B><? echo _('This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   208
administrator login.'); ?><BR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   209
<? echo _('Fields marked with a'); ?> <FONT COLOR="#FF0000">*</FONT> <? echo _('are required.'); ?>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   210
</B><BR><BR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   211
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   212
<FORM METHOD="post">
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   213
<TABLE BORDER="0" CELLSPACING="4">
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   214
<TR><TD CLASS="tdbg"><? echo _('Login Name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   215
<TR><TD CLASS="tdbg"><? echo _('Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   216
<TR><TD CLASS="tdbg"><? echo _('Full name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   217
<TR><TD CLASS="tdbg"><? echo _('Email'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   218
<TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   219
<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Make Account'); ?>"></TD></TR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   220
</TABLE>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   221
</FORM>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   222
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   223
<BR><BR>
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   224
<FONT CLASS="footer"><B>PowerAdmin v1.0</B>&nbsp;Copyright &copy;2002 The
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   225
PowerAdmin Team</FONT></BODY></HTML><? } ?>