index.php
author rejo
Sun, 22 Apr 2007 16:27:45 +0000
changeset 12 7be4525290cc
parent 8 47dd15d8bb8c
child 13 2ff220cfde13
permissions -rw-r--r--
[feladat @ 28] Fixed a bug in dns.inc.php ($recordid missing from input on validate_input function).
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
if ($_POST["submit"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    26
	$domain = trim($_POST["domain"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    27
	$owner = $_POST["owner"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    28
	$webip = $_POST["webip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    29
	$mailip = $_POST["mailip"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
	$empty = $_POST["empty"];
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    31
	$dom_type = isset($_POST["dom_type"]) ? $_POST["dom_type"] : "NATIVE";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    32
	if(!$empty)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
		$empty = 0;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    35
		if(!eregi('in-addr.arpa', $domain) && (!is_valid_ip($webip) || !is_valid_ip($mailip)) )
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    36
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    37
			$error = "Web or Mail ip is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    38
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    39
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    40
	if (!$error)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    41
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    42
		if (!is_valid_domain($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    43
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    44
			$error = "Domain name is invalid!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    45
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    46
		elseif (domain_exists($domain))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    47
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
			$error = "Domain already exists!";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    50
		//elseif (isset($mailip) && is_valid_ip(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    51
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    52
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    53
			add_domain($domain, $owner, $webip, $mailip, $empty, $dom_type);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    54
			clean_page();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    55
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    56
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    57
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    58
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    59
if($_POST["passchange"])
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    60
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    61
    if(strlen($_POST["newpass"]) < 4)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    62
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    63
        error('Length of the pass should be at least 4');
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    64
    }
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    65
    else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    66
    {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    67
	   change_user_pass($_POST["currentpass"], $_POST["newpass"], $_POST["newpass2"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    68
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    69
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    70
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    71
include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    72
?>
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
    73
<H2><? echo _('DNS Admin'); ?></H2>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    74
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    75
<P FONT CLASS="nav">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    76
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    77
if (level(10))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    78
{
8
47dd15d8bb8c [feladat @ 20]
rejo
parents: 6
diff changeset
    79
	?><A HREF="users.php"><? echo _('User admin'); ?></A> <?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    80
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    81
?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    82
 <A HREF="search.php"><? echo _('Search records'); ?></A>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    83
</P>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    84
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    85
<BR>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    86
<? echo _('Welcome'); ?>, <?= $_SESSION["name"] ?>.
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    87
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    88
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    89
<? echo _('Your userlevel is'); ?>: <?= $_SESSION["level"] ?> (<?= leveldescription($_SESSION["level"]) ?>)
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    90
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    91
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    92
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    93
if ($error != "")
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    94
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    95
	?><H3><FONT COLOR="red"><? echo _('Error'); ?>: <?= $error ?></FONT></H3><?
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    96
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    97
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    98
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    99
<B><? echo _('Current domains in DNS (click to view or edit)'); ?>:</B>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   100
<BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   101
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   102
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   103
$doms = get_domains(0);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   104
$num_domains = count($doms);
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 3
diff changeset
   105
echo "<br /><small><b>" . _('Number of domains') . ": </b>".$num_domains."<br />";
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   106
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   107
if ($num_domains > ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   108
   show_letters(LETTERSTART,$doms);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   109
   echo "<br />";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   110
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   111
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   112
$doms = get_domains(0,LETTERSTART);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   113
show_pages(count($doms),ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   114
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   115
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   116
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   117
<br />
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   118
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   119
<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
   120
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   121
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   122
if ($num_domains < ROWAMOUNT) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   123
   $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   124
} else {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   125
   $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   126
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   127
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   128
// If the user doesnt have any domains print a message saying so
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   129
if ($doms < 0)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   130
{
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   131
	?><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
   132
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   133
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   134
// If he has domains, dump them (duh)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   135
else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   136
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   137
	foreach ($doms as $c)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   138
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   139
		?><TR><TD CLASS="tdbg">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   140
		<? if (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   141
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   142
			?>
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   143
			<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
   144
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   145
		else
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   146
		{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   147
			print "&nbsp;";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   148
		}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   149
		?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   150
		</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
   151
		print "\n";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   152
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   153
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   154
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   155
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   156
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   157
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   158
<small><? echo _('You only administer some records of domains marked with an (*).'); ?></small>
1
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 (level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   162
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   163
	// Get some data.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   164
	$server_types = array("MASTER", "SLAVE", "NATIVE");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   165
	$users = show_users();
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   166
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   167
	<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   168
	<FORM METHOD="post" ACTION="index.php">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   169
	<B><? echo _('Create new domain'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   170
	<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   171
	<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
   172
	<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
   173
	<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
   174
	<TR><TD CLASS="tdbg"><? echo _('Owner'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   175
	<SELECT NAME="owner">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   176
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   177
	foreach ($users as $u)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   178
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   179
        	?><OPTION VALUE="<?= $u['id'] ?>"><?= $u['fullname'] ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   180
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   181
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   182
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   183
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   184
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   185
	if($MASTER_SLAVE_FUNCTIONS == true)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   186
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   187
	?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   188
	<TR><TD CLASS="tdbg"><? echo _('Domain type'); ?>:</TD><TD CLASS="tdbg">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   189
	<SELECT NAME="dom_type">
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   190
	<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   191
	foreach($server_types as $s)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   192
	{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   193
		?><OPTION VALUE="<?=$s?>"><?=$s ?></OPTION><?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   194
	}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   195
	?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   196
	</SELECT>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   197
	</TD></TR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   198
	<? } ?>
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   199
	<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
   200
	<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
   201
	</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   202
	</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   203
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   204
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   205
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   206
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   207
<BR><BR>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   208
<FORM METHOD="post" ACTION="index.php">
3
64525a2eb098 [feladat @ 4]
rejo
parents: 2
diff changeset
   209
<B><? echo _('Change password'); ?>:</B><BR>
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   210
<TABLE BORDER="0" CELLSPACING="4">
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
   211
<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
   212
<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
   213
<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
   214
<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
   215
</TABLE>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   216
</FORM>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   217
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   218
include_once("inc/footer.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   219
?>