remove admin_ templates

This commit is contained in:
mischa 2022-09-05 18:30:07 +00:00
parent ff6266ff1d
commit 7df7b1d824
6 changed files with 0 additions and 274 deletions

View File

@ -1,53 +0,0 @@
<div id="edit_form">
<form name="create_admin" method="post">
<table>
<tr>
<?php if ($action == 'edit') { ?>
<td colspan="2"><h3><?php echo $LANG['AdminEdit_admin_welcome']; ?></h3></td>
<?php } else { ?>
<td colspan="2"><h3><?php echo $LANG['AdminAdd_admin_welcome']; ?></h3></td>
<?php } ?>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_admin_username'] . ":"; ?></td>
<?php if ($action == 'edit') { ?>
<td><input class="flat" type="hidden" name="username" value="<?php echo $username; ?>" /><?php echo $username; ?></td>
<?php } else { ?>
<td><input class="flat" type="text" name="username" value="<?php echo $username ?? ''; ?>" /></td>
<?php } ?>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_admin_password1'] . ":"; ?></td>
<td><input class="flat" type="password" name="password1" /></td>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_admin_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="password2" /></td>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_admin_address'] . ":"; ?></td>
<td>
<select name="domains[]" size="10" multiple="multiple">
<?php
foreach ($list_domains as $row) {
echo '<option value="' . $row['domain'] . '"';
if (isset($domains['domains']) && in_array($row['domain'], $domains['domains'])) echo ' selected';
echo ">" . $row['domain'] . "</option>";
}
?>
</select>
</td>
</tr>
<tr>
<?php if ($action == 'edit') { ?>
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminEdit_admin_button']; ?>" /></td>
<?php } else { ?>
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminAdd_admin_button']; ?>" /></td>
<?php } ?>
</tr>
<tr>
<td colspan="2" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>
</tr>
</table>
</form>
</div>

View File

@ -1,47 +0,0 @@
<div id="edit_form">
<form name="create_domain" method="post">
<table>
<tr>
<?php if ($action == 'edit') { ?>
<td colspan="3"><h3><?php echo $LANG['AdminEdit_domain_welcome']; ?></h3></td>
<?php } else { ?>
<td colspan="3"><h3><?php echo $LANG['AdminAdd_domain_welcome']; ?></h3></td>
<?php } ?>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_domain_domain'] . ":"; ?></td>
<?php if ($action == 'edit') { ?>
<td><input class="flat" type="hidden" name="domain" value="<?php echo $domain; ?>" /><?php echo $domain; ?></td>
<?php } else { ?>
<td><input class="flat" type="text" name="domain" value="<?php echo $domain ?? ''; ?>" /></td>
<td>&nbsp;</td>
<?php } ?>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_domain_description'] . ":"; ?></td>
<td><input class="flat" type="text" name="description" value="<?php echo $description ?? ''; ?>" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_domain_aliases'] . ":"; ?></td>
<td><input class="flat" type="text" name="aliases" value="<?php echo $aliases ?? ALIASES; ?>" /></td>
<td><?php echo $LANG['AdminAdd_domain_aliases_text']; ?></td>
</tr>
<tr>
<td><?php echo $LANG['AdminAdd_domain_mailboxes'] . ":"; ?></td>
<td><input class="flat" type="text" name="mailboxes" value="<?php echo $mailboxes ?? MAILBOXES; ?>" /></td>
<td><?php echo $LANG['AdminAdd_domain_mailboxes_text']; ?></td>
</tr>
<tr>
<?php if ($action == 'edit') { ?>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminEdit_domain_button']; ?>" /></td>
<?php } else { ?>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminAdd_domain_button']; ?>" /></td>
<?php } ?>
</tr>
<tr>
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>
</tr>
</table>
</form>
</div>

View File

@ -1,24 +0,0 @@
<?php
if (count($list_admins) > 0) {
echo "<table id=\"admin_table\">";
echo " <tr class=\"header\">";
echo " <td>" . $LANG['AdminList_admin_username'] . "</td>";
echo " <td>" . $LANG['AdminList_admin_count'] . "</td>";
echo " <td>" . $LANG['AdminList_admin_modified'] . "</td>";
echo " <td colspan=\"2\">&nbsp;</td>";
echo " </tr>";
foreach ($list_admins as $row) {
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
echo " <td><a href=\"list-domain.php?username=" . $row['username'] . "\">" . $row['username'] . "</a></td>";
echo " <td>" . $row['domain_count'] . "</td>";
echo " <td>" . $row['modified'] . "</td>";
echo " <td><a href=\"admin.php?action=edit&username=" . $row['username'] . "\">" . $LANG['edit'] . "</a></td>";
echo " <td><a href=\"delete.php?table=admin&where=username&delete=" . $row['username'] . "\" onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['AdminList_admin_username'] . ": " . $row['username'] . "')\">" . $LANG['del'] . "</a></td>";
echo " </tr>";
}
echo "</table>";
}
?>

View File

@ -1,44 +0,0 @@
<div id="overview">
<form name="list_domain" method="get">
<select name="username" onChange="this.form.submit()";>
<?php
if (count($list_admins) > 0) {
foreach ($list_admins as $row) {
echo '<option value="' . $row['username'] . '"';
if (isset($username) && $username == $row['username']) echo ' selected';
echo ">" . $row['username'] . "</option>";
}
}
?>
</select>
<input class="button" type="submit" name="go" value="<?php echo $LANG['Overview_button']; ?>" />
</form>
<form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25">
</form>
</div>
<?php
if (count($list_domains) > 0) {
echo "<table id=\"admin_table\">";
echo " <tr class=\"header\">";
echo " <td>" . $LANG['AdminList_domain_domain'] . "</td>";
echo " <td>" . $LANG['AdminList_domain_description'] . "</td>";
echo " <td>" . $LANG['AdminList_domain_aliases'] . "</td>";
echo " <td>" . $LANG['AdminList_domain_mailboxes'] . "</td>";
echo " <td>" . $LANG['AdminList_domain_modified'] . "</td>";
echo " <td colspan=\"2\">&nbsp;</td>";
echo " </tr>";
foreach ($list_domains as $row) {
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
echo "<td><a href=\"list-virtual.php?domain=" . $row['domain'] . "\">" . $row['domain'] . "</a></td>";
echo "<td>" . $row['description'] . "</td>";
echo "<td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>";
echo "<td>" . $row['mailbox_count'] . " / " . $row['mailboxes'] . "</td>";
echo "<td>" . $row['modified'] . "</td>";
echo "<td><a href=\"domain.php?action=edit&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>";
echo "<td><a href=\"delete.php?table=domain&domain=" . $row['domain'] . "\" onclick=\"return confirm ('" . $LANG['confirm_domain'] . $LANG['AdminList_admin_domain'] . ": " . $row['domain'] . "')\">" . $LANG['del'] . "</a></td>";
echo "</tr>";
}
echo "</table>";
}
?>

View File

@ -1,90 +0,0 @@
<div id="admin_virtual">
<form name="list_virtual" method="get">
<select name="domain" onChange="this.form.submit()";>
<?php
if (count($list_domains) > 0) {
foreach ($list_domains as $row) {
echo '<option value="' . $row['domain'] . '"';
if ($list_domains[$domain_key]['domain'] == $row['domain']) echo ' selected';
echo ">" . $row['domain'] . "</option>";
}
}
?>
</select>
<input type="hidden" name="limit" value="0">
<input type="submit" name="go" value="<?php echo $LANG['AdminList_virtual_button']; ?>" />
</form>
<h4><?php echo $LANG['AdminList_virtual_welcome'] . $domain; ?></h4>
<p><?php echo $LANG['AdminList_virtual_alias_alias_count'] . ": " . $list_domains[$domain_key]['alias_count'] . " / " . $list_domains[$domain_key]['aliases']; ?></p>
<p><?php echo $LANG['AdminList_virtual_alias_mailbox_count'] . ": " . $list_domains[$domain_key]['mailbox_count'] . " / " . $list_domains[$domain_key]['mailboxes']; ?></p>
<form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25">
</form>
</div>
<?php
if ($list_domains[$domain_key]['alias_count'] > $limit || $list_domains[$domain_key]['mailbox_count'] > $limit) {
echo "<div id=\"nav_bar\">";
if ($offset >= $limit) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$domain_key]['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"../images/arrow-l.png\" title=\"" . $LANG['Overview_left_arrow'] . "\"></a>";
}
if (($list_domains[$domain_key]['alias_count'] > $limit) || ($list_domains[$domain_key]['mailbox_count'] > $limit)) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$domain_key]['domain'] . "&offset=0\"><img border=\"0\" src=\"../images/arrow-u.png\" title=\"" . $LANG['Overview_up_arrow'] . "\"></a>";
}
if ((($offset + $limit) < $list_domains[$domain_key]['alias_count']) || (($offset + $limit) < $list_domains[$domain_key]['mailbox_count'])) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$domain_key]['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"../images/arrow-r.png\" title=\"" . $LANG['Overview_right_arrow'] . "\"></a>";
}
echo "</div>";
}
if (count($list_alias) > 0) {
echo "<table id=\"alias_table\">";
echo " <tr>";
echo " <td colspan=\"5\"><h3>" . $LANG['Overview_alias_title'] . "</h3></td>";
echo " </tr>";
echo " <tr class=\"header\">";
echo " <td>" . $LANG['AdminList_virtual_alias_address'] . "</td>";
echo " <td>" . $LANG['AdminList_virtual_alias_goto'] . "</td>";
echo " <td>" . $LANG['AdminList_virtual_alias_modified'] . "</td>";
echo " <td colspan=\"2\">&nbsp;</td>";
echo " </tr>";
foreach ($list_alias as $row) {
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
echo " <td>" . $row['address'] . "</td>";
echo " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>";
echo " <td>" . $row['modified'] . "</td>";
echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\">" . $LANG['edit'] . "</a></td>";
echo " <td><a href=\"delete.php?table=alias" . "&delete=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>";
echo " </tr>";
}
echo "</table>";
}
if (count($list_mailbox) > 0) {
echo "<table id=\"mailbox_table\">";
echo " <tr>";
echo " <td colspan=\"7\"><h3>" . $LANG['Overview_mailbox_title'] . "</h3></td>";
echo " </tr>";
echo " <tr class=\"header\">";
echo " <td>" . $LANG['AdminList_virtual_mailbox_username'] . "</td>";
echo " <td>" . $LANG['AdminList_virtual_mailbox_name'] . "</td>";
echo " <td>" . $LANG['AdminList_virtual_mailbox_modified'] . "</td>";
echo " <td colspan=\"2\">&nbsp;</td>";
echo " </tr>";
foreach ($list_mailbox as $row) {
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
echo " <td>" . $row['username'] . "</td>";
echo " <td>" . $row['name'] . "</td>";
echo " <td>" . $row['modified'] . "</td>";
echo " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\">" . $LANG['edit'] . "</a></td>";
echo " <td><a href=\"delete.php?table=mailbox" . "&delete=" . $row['username'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>";
echo " </tr>";
}
echo "</table>";
}
?>

View File

@ -1,16 +0,0 @@
<div id="menu">
<ul>
<li><a target="_top" href="list-domain.php"><?php echo $LANG['AdminMenu_list_domain']; ?></a></li>
<li><a target="_top" href="list-admin.php"><?php echo $LANG['AdminMenu_list_admin']; ?></a></li>
<li><a target="_top" href="list-virtual.php"><?php echo $LANG['AdminMenu_list_virtual']; ?></a></li>
<li><a target="_top" href="viewlog.php"><?php echo $LANG['AdminMenu_viewlog']; ?></a></li>
<li><a target="_top" href="backup.php"><?php echo $LANG['AdminMenu_backup']; ?></a></li>
<li><a target="_top" href="domain.php"><?php echo $LANG['AdminMenu_create_domain']; ?></a></li>
<li><a target="_top" href="admin.php"><?php echo $LANG['AdminMenu_create_admin']; ?></a></li>
<li><a target="_top" href="add-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['AdminMenu_create_alias']; ?></a></li>
<li><a target="_top" href="add-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['AdminMenu_create_mailbox']; ?></a></li>
</ul>
</div>