index.php
author rejo
Wed, 18 Apr 2007 21:08:07 +0000
changeset 6 9fcac40c1b0e
parent 4 55ed92aa7cf5
child 8 47dd15d8bb8c
permissions -rw-r--r--
[feladat @ 7] - Fixed last major part of translation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     1
<?php
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     2
session_start();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     3
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     4
// | PowerAdmin								|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     5
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     6
// | Copyright (c) 1997-2002 The PowerAdmin Team			|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     7
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     8
// | This source file is subject to the license carried by the overal	|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     9
// | program PowerAdmin as found on http://poweradmin.sf.net		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    10
// | The PowerAdmin program falls under the QPL License:		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    11
// | http://www.trolltech.com/developer/licensing/qpl.html		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    12
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    13
// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl>	|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    14
// |          Sjeemz <sjeemz <AT> sjeemz <DOT> nl>			|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    15
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    16
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    17
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    18
// $Id: index.php,v 1.13 2003/05/10 20:20:05 azurazu Exp $
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    19
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    20
6
9fcac40c1b0e [feladat @ 7]
rejo
parents: 4
diff changeset
    21
require_once("inc/i18n.inc.php");
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    22
require_once("inc/toolkit.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
/*
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
// Checks if the user migrated his database, can be deprecated in the future
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    26
function check_updated()
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    27
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    28
	global $db;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    29
	$checkzone = $db->query("select * from zones");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
	$zonetables = $checkzone->tableInfo();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    31
	//var_dump($zonetables[1]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    32
	if(strcmp($zonetables[1]["name"], "name") == 0)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
		include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    35
		error("You have to migrate your database first! 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    36
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    37
		The reason for this migration is that PowerAdmin wasnt supporting the gmysql backend yet. Now it fully does we have to support it aswell. 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    38
		The gmysql users another table and other fields though, therefore we had to change the layout of the zones table. In this version thats fully done, but before this we have to migrate it. 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    39
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    40
		Please be sure you have a working backup of your data! 
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
    41
		we assume it all works but can't guarantuee it for 100% because we dont have 
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    42
		too many betatesters.<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    43
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    44
		Do the following to migrate: 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    45
		- rename the file migrator.php-pa in your webdir to migrator.php.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    46
	 	- Go <A HREF='migrator.php'>here</A> to migrate it.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    47
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
		It is recommended to synchronize your database aswell after the update");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
		die();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    50
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    51
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    52
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    53
// Call above function
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    54
check_updated();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    55
*/
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    56
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    57
if ($_POST["submit"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    58
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    59
	$domain = trim($_POST["domain"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    60
	$owner = $_POST["owner"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    61
	$webip = $_POST["webip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    62
	$mailip = $_POST["mailip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    63
	$empty = $_POST["empty"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    64
	$dom_type = isset($_POST["dom_type"]) ? $_POST["dom_type"] : "NATIVE";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    65
	if(!$empty)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    66
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    67
		$empty = 0;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    68
		if(!eregi('in-addr.arpa', $domain) && (!is_valid_ip($webip) || !is_valid_ip($mailip)) )
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    69
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    70
			$error = "Web or Mail ip is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    71
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    72
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    73
	if (!$error)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    74
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    75
		if (!is_valid_domain($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    76
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    77
			$error = "Domain name is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    78
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    79
		elseif (domain_exists($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    80
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    81
			$error = "Domain already exists!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    82
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    83
		//elseif (isset($mailip) && is_valid_ip(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    84
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    85
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    86
			add_domain($domain, $owner, $webip, $mailip, $empty, $dom_type);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    87
			clean_page();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    88
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    89
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    90
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    91
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    92
if($_POST["passchange"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    93
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    94
    if(strlen($_POST["newpass"]) < 4)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    95
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    96
        error('Length of the pass should be at least 4');
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    97
    }
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    98
    else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    99
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   100
	   change_user_pass($_POST["currentpass"], $_POST["newpass"], $_POST["newpass2"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   101
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   102
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   103
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   104
include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   105
?>
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
   106
<H2><? echo _('DNS Admin'); ?></H2>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   107
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   108
<P FONT CLASS="nav">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   109
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   110
if (level(10))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   111
{
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   112
	?><A HREF="users.php"><? echo _('User admin'); ?></A> <A HREF="seq_update.php"><? echo _('Synchronize database'); ?></A><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   113
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   114
?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   115
 <A HREF="search.php"><? echo _('Search records'); ?></A>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   116
</P>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   117
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   118
<BR>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   119
<? echo _('Welcome'); ?>, <?= $_SESSION["name"] ?>.
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   120
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   121
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   122
<? echo _('Your userlevel is'); ?>: <?= $_SESSION["level"] ?> (<?= leveldescription($_SESSION["level"]) ?>)
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   123
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   124
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   125
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   126
if ($error != "")
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   127
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   128
	?><H3><FONT COLOR="red"><? echo _('Error'); ?>: <?= $error ?></FONT></H3><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   129
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   130
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   131
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   132
<B><? echo _('Current domains in DNS (click to view or edit)'); ?>:</B>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   133
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   134
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   135
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   136
$doms = get_domains(0);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   137
$num_domains = count($doms);
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
   138
echo "<br /><small><b>" . _('Number of domains') . ": </b>".$num_domains."<br />";
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   139
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   140
if ($num_domains > ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   141
   show_letters(LETTERSTART,$doms);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   142
   echo "<br />";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   143
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   144
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   145
$doms = get_domains(0,LETTERSTART);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   146
show_pages(count($doms),ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   147
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   148
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   149
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   150
<br />
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   151
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   152
<TR STYLE="font-weight: Bold;"><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg"><? echo _('Records'); ?></TD><TD CLASS="tdbg"><? echo _('Owner'); ?></TD></TR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   153
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   154
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   155
if ($num_domains < ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   156
   $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   157
} else {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   158
   $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   159
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   160
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   161
// If the user doesnt have any domains print a message saying so
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   162
if ($doms < 0)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   163
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   164
	?><TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg" COLSPAN="4"><b><? echo _('No domains in this listing, sorry.'); ?></b></FONT></TD></TR><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   165
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   166
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   167
// If he has domains, dump them (duh)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   168
else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   169
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   170
	foreach ($doms as $c)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   171
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   172
		?><TR><TD CLASS="tdbg">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   173
		<? if (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   174
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   175
			?>
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   176
			<A HREF="delete_domain.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('Delete zone'); ?> ]" BORDER="0"></A><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   177
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   178
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   179
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   180
			print "&nbsp;";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   181
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   182
		?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   183
		</TD><TD CLASS="tdbg"><A HREF="edit.php?id=<?= $c["id"] ?>"><?= $c["name"] ?></A></TD><TD CLASS="tdbg"><?= $c["numrec"] ?></TD><TD CLASS="tdbg"><?= get_owner_from_id($c["owner"]) ?></TD></TR><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   184
		print "\n";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   185
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   186
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   187
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   188
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   189
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   190
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   191
<small><? echo _('You only administer some records of domains marked with an (*).'); ?></small>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   192
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   193
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   194
if (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   195
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   196
	// Get some data.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   197
	$server_types = array("MASTER", "SLAVE", "NATIVE");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   198
	$users = show_users();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   199
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   200
	<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   201
	<FORM METHOD="post" ACTION="index.php">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   202
	<B><? echo _('Create new domain'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   203
	<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   204
	<TR><TD CLASS="tdbg"><? echo _('Domain name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="domain" VALUE="<? if ($error) print $_POST["domain"]; ?>"></TD></TR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   205
	<TR><TD CLASS="tdbg"><? echo _('Web IP'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="webip" VALUE="<? if ($error) print $_POST["webip"]; ?>"></TD></TR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   206
	<TR><TD CLASS="tdbg"><? echo _('Mail IP'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="mailip" VALUE="<? if ($error) print $_POST["mailip"]; ?>"></TD></TR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   207
	<TR><TD CLASS="tdbg"><? echo _('Owner'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   208
	<SELECT NAME="owner">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   209
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   210
	foreach ($users as $u)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   211
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   212
        	?><OPTION VALUE="<?= $u['id'] ?>"><?= $u['fullname'] ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   213
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   214
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   215
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   216
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   217
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   218
	if($MASTER_SLAVE_FUNCTIONS == true)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   219
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   220
	?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   221
	<TR><TD CLASS="tdbg"><? echo _('Domain type'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   222
	<SELECT NAME="dom_type">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   223
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   224
	foreach($server_types as $s)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   225
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   226
		?><OPTION VALUE="<?=$s?>"><?=$s ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   227
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   228
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   229
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   230
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   231
	<? } ?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   232
	<TR><TD CLASS="tdbg"><? echo _('Create zone without'); ?><BR><? echo _('applying records-template'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="empty" VALUE="1"></TD></TR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   233
	<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Add domain'); ?>"></TD></TR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   234
	</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   235
	</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   236
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   237
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   238
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   239
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   240
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   241
<FORM METHOD="post" ACTION="index.php">
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   242
<B><? echo _('Change password'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   243
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   244
<TR><TD CLASS="tdbg"><? echo _('Current password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="currentpass" VALUE=""></TD></TR>
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   245
<TR><TD CLASS="tdbg"><? echo _('New password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass" VALUE=""></TD></TR>
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   246
<TR><TD CLASS="tdbg"><? echo _('New password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass2" VALUE=""></TD></TR>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   247
<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="passchange" VALUE="<? echo _('Change password'); ?>"></TD></TR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   248
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   249
</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   250
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   251
include_once("inc/footer.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   252
?>