|
|
@ -10,7 +10,7 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td><?php print $PALANG['pAdminEdit_admin_password'] . ":"; ?></td>
|
|
|
|
<td><?php print $PALANG['pAdminEdit_admin_password'] . ":"; ?></td>
|
|
|
|
<td><input class="flat" type="password" name="fPassword" /></td>
|
|
|
|
<td><input class="flat" type="password" name="fPassword" value="<?= $fPassword; ?>"/></td>
|
|
|
|
<td><?php print $pAdminEdit_admin_password_text; ?></td>
|
|
|
|
<td><?php print $pAdminEdit_admin_password_text; ?></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -32,16 +32,13 @@
|
|
|
|
<td colspan=3 align=center>
|
|
|
|
<td colspan=3 align=center>
|
|
|
|
<select name="fDomains[]" size="10" multiple="multiple">
|
|
|
|
<select name="fDomains[]" size="10" multiple="multiple">
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
for ($i = 0; $i < sizeof ($list_domains); $i++)
|
|
|
|
foreach($tAllDomains as $domain) {
|
|
|
|
{
|
|
|
|
// should escape $domain here to stop xss etc.
|
|
|
|
if (in_array ($list_domains[$i], $tDomains))
|
|
|
|
$selected = '';
|
|
|
|
{
|
|
|
|
if (in_array ($domain, $tDomains)) {
|
|
|
|
print "<option value=\"" . $list_domains[$i] . "\" selected=\"selected\">" . $list_domains[$i] . "</option>\n";
|
|
|
|
$selected = "selected='selected'";
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
print "<option value=\"" . $list_domains[$i] . "\">" . $list_domains[$i] . "</option>\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
print "<option value='$domain' $selected>$domain</option>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|