| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | $Id: adm_panel.php,v 1.9 2005/08/01 18:25:52 anarcat Exp $ |
|---|
| 4 | ---------------------------------------------------------------------- |
|---|
| 5 | AlternC - Web Hosting System |
|---|
| 6 | Copyright (C) 2002 by the AlternC Development Team. |
|---|
| 7 | http://alternc.org/ |
|---|
| 8 | ---------------------------------------------------------------------- |
|---|
| 9 | Based on: |
|---|
| 10 | Valentin Lacambre's web hosting softwares: http://altern.org/ |
|---|
| 11 | ---------------------------------------------------------------------- |
|---|
| 12 | LICENSE |
|---|
| 13 | |
|---|
| 14 | This program is free software; you can redistribute it and/or |
|---|
| 15 | modify it under the terms of the GNU General Public License (GPL) |
|---|
| 16 | as published by the Free Software Foundation; either version 2 |
|---|
| 17 | of the License, or (at your option) any later version. |
|---|
| 18 | |
|---|
| 19 | This program is distributed in the hope that it will be useful, |
|---|
| 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 22 | GNU General Public License for more details. |
|---|
| 23 | |
|---|
| 24 | To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|---|
| 25 | ---------------------------------------------------------------------- |
|---|
| 26 | Original Author of file: Benjamin Sonntag |
|---|
| 27 | Purpose of file: Panneau de control de l'administrateur |
|---|
| 28 | ---------------------------------------------------------------------- |
|---|
| 29 | */ |
|---|
| 30 | require_once("../class/config.php"); |
|---|
| 31 | |
|---|
| 32 | if (!$admin->enabled) { |
|---|
| 33 | __("This page is restricted to authorized staff"); |
|---|
| 34 | exit(); |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | include_once("head.php"); |
|---|
| 38 | |
|---|
| 39 | ?> |
|---|
| 40 | <h3><?php __("Admin Control Panel"); ?></h3> |
|---|
| 41 | <hr id="topbar"/> |
|---|
| 42 | <br /> |
|---|
| 43 | <?php |
|---|
| 44 | if ($error) { |
|---|
| 45 | echo "<p class=\"error\">$error</p>"; |
|---|
| 46 | include_once("foot.php"); |
|---|
| 47 | exit; |
|---|
| 48 | } |
|---|
| 49 | ?> |
|---|
| 50 | <ul id="adm_panel"> |
|---|
| 51 | <li class="lst1"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li> |
|---|
| 52 | <li class="lst2"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li> |
|---|
| 53 | <li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li> |
|---|
| 54 | <li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li> |
|---|
| 55 | </ul> |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | <h3><?php __("Advanced features"); ?></h3> |
|---|
| 59 | |
|---|
| 60 | <ul id="adm_panel_root"> |
|---|
| 61 | <li class="lst2"><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></li> |
|---|
| 62 | <li class="lst1"><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></li> |
|---|
| 63 | <li class="lst2"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li> |
|---|
| 64 | <li class="lst1"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li> |
|---|
| 65 | <li class="lst2"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li> |
|---|
| 66 | <li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li> |
|---|
| 67 | <!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> --> |
|---|
| 68 | </ul> |
|---|
| 69 | |
|---|
| 70 | <?php |
|---|
| 71 | |
|---|
| 72 | // here we include any "adminmenu_*" file content |
|---|
| 73 | $d=opendir("."); |
|---|
| 74 | if ($d) { |
|---|
| 75 | $lst=2; |
|---|
| 76 | while ($c=readdir($d)) { |
|---|
| 77 | if (substr($c,0,10)=="adminmenu_") { |
|---|
| 78 | echo "<li class=\"lst$lst\">"; |
|---|
| 79 | include($c); |
|---|
| 80 | echo "</li>\n"; |
|---|
| 81 | $lst=3-$lst; |
|---|
| 82 | } |
|---|
| 83 | } |
|---|
| 84 | } |
|---|
| 85 | |
|---|
| 86 | closedir($d); |
|---|
| 87 | ?> |
|---|
| 88 | </ul> |
|---|
| 89 | |
|---|
| 90 | <?php include_once("foot.php"); ?> |
|---|