adm_panel.php 3.29 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
 $Id: adm_panel.php,v 1.9 2005/08/01 18:25:52 anarcat Exp $
 ----------------------------------------------------------------------
 AlternC - Web Hosting System
 Copyright (C) 2002 by the AlternC Development Team.
 http://alternc.org/
 ----------------------------------------------------------------------
 Based on:
 Valentin Lacambre's web hosting softwares: http://altern.org/
 ----------------------------------------------------------------------
 LICENSE

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html
 ----------------------------------------------------------------------
 Original Author of file: Benjamin Sonntag
 Purpose of file: Panneau de control de l'administrateur
 ----------------------------------------------------------------------
*/
require_once("../class/config.php");

if (!$admin->enabled) {
	__("This page is restricted to authorized staff");
	exit();
}

37
38
include_once("head.php");

39
40
?>
<h3><?php __("Admin Control Panel"); ?></h3>
41
42
<hr id="topbar"/>
<br />
43
<?php
44
45
46
47
48
if (isset($error) && $error) {
	echo "<p class=\"error\">$error</p>";
	include_once("foot.php");
	exit;
}
49
?>
50
<ul id="adm_panel">
51
52
53
54
 <li class="lst1"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
 <li class="lst2"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
 <li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
 <li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
Alan Garcia's avatar
Alan Garcia committed
55
 <li class="lst1"><a href="adm_authip_whitelist.php"><?php __("Manage IP whitelist"); ?></a></li>
Alan Garcia's avatar
Alan Garcia committed
56
 <li class="lst2"><a href="adm_email.php"><?php __("Send an email to all members"); ?></a></li>
57
58
59
60
61
62
63
64
65
66
</ul>


 <h3><?php __("Advanced features"); ?></h3>

<ul id="adm_panel_root">
 <li class="lst2"><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></li>
 <li class="lst1"><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></li>
 <li class="lst2"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
 <li class="lst1"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
Alan Garcia's avatar
Alan Garcia committed
67
 <li class="lst2"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
68
 <li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
69
<!--  <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
70
71
</ul>

72
73
74
75
<?php

// here we include any "adminmenu_*" file content
$d=opendir(".");
76
77
if ($d) {
  $lst=2;
78
79
  while ($c=readdir($d)) {
    if (substr($c,0,10)=="adminmenu_") {
80
      echo "<li class=\"lst$lst\">";
81
      include($c);
82
      echo "</li>\n";
83
84
      $lst=3-$lst;
    }
85
  }
86
87
88
89
}

closedir($d);
?>
90
</ul>
91

92
<?php include_once("foot.php"); ?>