index.php
author rejo
Tue, 17 Apr 2007 21:18:14 +0000
changeset 5 ebf8868e99f5
parent 4 55ed92aa7cf5
child 6 9fcac40c1b0e
permissions -rw-r--r--
[feladat @ 6] - Fixed bug in record.inc.php, search did never give matching domains. - Some modifications to Dutch 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
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    21
require_once("inc/toolkit.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    22
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
/*
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
// Checks if the user migrated his database, can be deprecated in the future
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
function check_updated()
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    26
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    27
	global $db;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    28
	$checkzone = $db->query("select * from zones");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    29
	$zonetables = $checkzone->tableInfo();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
	//var_dump($zonetables[1]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    31
	if(strcmp($zonetables[1]["name"], "name") == 0)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    32
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
		include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
		error("You have to migrate your database first! 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    35
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    36
		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
    37
		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
    38
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    39
		Please be sure you have a working backup of your data! 
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
    40
		we assume it all works but can't guarantuee it for 100% because we dont have 
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    41
		too many betatesters.<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    42
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    43
		Do the following to migrate: 
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    44
		- rename the file migrator.php-pa in your webdir to migrator.php.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    45
	 	- Go <A HREF='migrator.php'>here</A> to migrate it.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    46
		
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    47
		It is recommended to synchronize your database aswell after the update");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
		die();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    50
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    51
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    52
// Call above function
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    53
check_updated();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    54
*/
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    55
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    56
if ($_POST["submit"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    57
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    58
	$domain = trim($_POST["domain"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    59
	$owner = $_POST["owner"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    60
	$webip = $_POST["webip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    61
	$mailip = $_POST["mailip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    62
	$empty = $_POST["empty"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    63
	$dom_type = isset($_POST["dom_type"]) ? $_POST["dom_type"] : "NATIVE";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    64
	if(!$empty)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    65
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    66
		$empty = 0;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    67
		if(!eregi('in-addr.arpa', $domain) && (!is_valid_ip($webip) || !is_valid_ip($mailip)) )
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    68
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    69
			$error = "Web or Mail ip is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    70
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    71
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    72
	if (!$error)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    73
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    74
		if (!is_valid_domain($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    75
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    76
			$error = "Domain name is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    77
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    78
		elseif (domain_exists($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    79
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    80
			$error = "Domain already exists!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    81
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    82
		//elseif (isset($mailip) && is_valid_ip(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    83
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    84
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    85
			add_domain($domain, $owner, $webip, $mailip, $empty, $dom_type);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    86
			clean_page();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    87
		}
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
if($_POST["passchange"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    92
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    93
    if(strlen($_POST["newpass"]) < 4)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    94
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    95
        error('Length of the pass should be at least 4');
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    96
    }
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    97
    else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    98
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    99
	   change_user_pass($_POST["currentpass"], $_POST["newpass"], $_POST["newpass2"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   100
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   101
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   102
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   103
include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   104
?>
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
   105
<H2><? echo _('DNS Admin'); ?></H2>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   106
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   107
<P FONT CLASS="nav">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   108
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   109
if (level(10))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   110
{
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   111
	?><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
   112
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   113
?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   114
 <A HREF="search.php"><? echo _('Search records'); ?></A>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   115
</P>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   116
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   117
<BR>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   118
<? echo _('Welcome'); ?>, <?= $_SESSION["name"] ?>.
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   119
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   120
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   121
<? echo _('Your userlevel is'); ?>: <?= $_SESSION["level"] ?> (<?= leveldescription($_SESSION["level"]) ?>)
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   122
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   123
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   124
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   125
if ($error != "")
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   126
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   127
	?><H3><FONT COLOR="red"><? echo _('Error'); ?>: <?= $error ?></FONT></H3><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   128
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   129
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   130
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   131
<B><? echo _('Current domains in DNS (click to view or edit)'); ?>:</B>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   132
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   133
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   134
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   135
$doms = get_domains(0);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   136
$num_domains = count($doms);
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
   137
echo "<br /><small><b>" . _('Number of domains') . ": </b>".$num_domains."<br />";
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   138
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   139
if ($num_domains > ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   140
   show_letters(LETTERSTART,$doms);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   141
   echo "<br />";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   142
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   143
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   144
$doms = get_domains(0,LETTERSTART);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   145
show_pages(count($doms),ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   146
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   147
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   148
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   149
<br />
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   150
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   151
<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
   152
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   153
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   154
if ($num_domains < ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   155
   $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   156
} else {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   157
   $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   158
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   159
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   160
// If the user doesnt have any domains print a message saying so
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   161
if ($doms < 0)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   162
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   163
	?><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
   164
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   165
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   166
// If he has domains, dump them (duh)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   167
else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   168
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   169
	foreach ($doms as $c)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   170
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   171
		?><TR><TD CLASS="tdbg">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   172
		<? if (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   173
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   174
			?>
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   175
			<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
   176
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   177
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   178
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   179
			print "&nbsp;";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   180
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   181
		?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   182
		</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
   183
		print "\n";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   184
	}
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
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   189
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   190
<small><? echo _('You only administer some records of domains marked with an (*).'); ?></small>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   191
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   192
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   193
if (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   194
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   195
	// Get some data.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   196
	$server_types = array("MASTER", "SLAVE", "NATIVE");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   197
	$users = show_users();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   198
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   199
	<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   200
	<FORM METHOD="post" ACTION="index.php">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   201
	<B><? echo _('Create new domain'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   202
	<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   203
	<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
   204
	<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
   205
	<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
   206
	<TR><TD CLASS="tdbg"><? echo _('Owner'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   207
	<SELECT NAME="owner">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   208
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   209
	foreach ($users as $u)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   210
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   211
        	?><OPTION VALUE="<?= $u['id'] ?>"><?= $u['fullname'] ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   212
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   213
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   214
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   215
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   216
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   217
	if($MASTER_SLAVE_FUNCTIONS == true)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   218
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   219
	?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   220
	<TR><TD CLASS="tdbg"><? echo _('Domain type'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   221
	<SELECT NAME="dom_type">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   222
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   223
	foreach($server_types as $s)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   224
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   225
		?><OPTION VALUE="<?=$s?>"><?=$s ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   226
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   227
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   228
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   229
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   230
	<? } ?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   231
	<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
   232
	<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
   233
	</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   234
	</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   235
<?
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
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   240
<FORM METHOD="post" ACTION="index.php">
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   241
<B><? echo _('Change password'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   242
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   243
<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
   244
<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
   245
<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
   246
<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
   247
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   248
</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   249
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   250
include_once("inc/footer.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   251
?>