Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
adm_panel.php
Go to the documentation of this file.
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 (isset($error) && $error) {
45  echo "<p class=\"alert alert-danger\">$error</p>";
46  include_once("foot.php");
47  exit;
48 }
49 ?>
50 <ul id="adm_panel">
51  <li class="lst"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
52  <li class="lst"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
53  <li class="lst"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
54  <li class="lst"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
55  <li class="lst"><a href="adm_authip_whitelist.php"><?php __("Manage IP whitelist"); ?></a></li>
56  <li class="lst"><a href="adm_email.php"><?php __("Send an email to all members"); ?></a></li>
57 </ul>
58 
59 
60  <h3><?php __("Advanced features"); ?></h3>
61 
62 <ul id="adm_panel_root">
63  <li class="lst"><a href="adm_slavedns.php"><?php __("Manage slave DNS"); ?></a></li>
64  <li class="lst"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
65  <li class="lst"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
66  <li class="lst"><a href="adm_doms_def_type.php"><?php __("Manage defaults domains type"); ?></a></li>
67  <li class="lst"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
68  <li class="lst"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
69  <li class="lst"><a href="adm_db_servers.php"><?php __("Manage databases servers"); ?></a></li>
70 <!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
71 
72 <?php
73 
74 // here we include any "adminmenu_*" file content
75 $d=opendir(".");
76 if ($d) {
77  $lst=2;
78  while ($c=readdir($d)) {
79  if (substr($c,0,10)=="adminmenu_") {
80  echo "<li class=\"lst$lst\">";
81  include($c);
82  echo "</li>\n";
83  $lst=3-$lst;
84  }
85  }
86 }
87 
88 closedir($d);
89 ?>
90 </ul>
91 
92 <?php if ($cuid == 2000) { ?>
93  <p class="alert alert-info">
94  <?php if (panel_islocked()) { ?>
95  <a href="adm_lockpanel.php?action=unlock"><?php __("Click here to unlock the panel and allow user to login.");?></a>
96  <?php } else { ?>
97  <a href="adm_lockpanel.php?action=lock" onClick='return confirm("<?php echo addslashes(_("Are you sure you want to kick everyone?"));?>");' ><?php __("Click here to lock the panel and force logout of all the user.");?></a>
98  <?php } ?>
99  </p>
100 <?php } //cuid 2000 ?>
101 
102 <?php include_once("foot.php"); ?>