Alternc  latest
Alternc logiel libre pour l'hébergement
adm_panel.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  LICENSE
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License (GPL)
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  To read the license please visit http://www.gnu.org/copyleft/gpl.html
17  ----------------------------------------------------------------------
18 */
19 
20 /**
21  * Administrator misc. settings
22  *
23  * @copyright AlternC-Team 2000-2017 https://alternc.com/
24  */
25 
26 require_once("../class/config.php");
27 
28 if (!$admin->enabled) {
29  $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
30  echo $msg->msg_html_all();
31  exit();
32 }
33 
34 include_once("head.php");
35 
36 ?>
37 <h3><?php __("Admin Control Panel"); ?></h3>
38 <hr id="topbar"/>
39 <br />
40 <?php
41 echo $msg->msg_html_all();
42 ?>
43 <ul id="adm_panel">
44  <li class="lst"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
45  <li class="lst"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
46  <li class="lst"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
47  <li class="lst"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
48  <li class="lst"><a href="adm_authip_whitelist.php"><?php __("Manage IP whitelist"); ?></a></li>
49  <li class="lst"><a href="adm_email.php"><?php __("Send an email to all members"); ?></a></li>
50 </ul>
51 
52 
53  <h3><?php __("Advanced features"); ?></h3>
54 
55 <ul id="adm_panel_root">
56  <li class="lst"><a href="adm_slavedns.php"><?php __("Manage slave DNS"); ?></a></li>
57  <li class="lst"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
58  <li class="lst"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
59  <li class="lst"><a href="adm_doms_def_type.php"><?php __("Manage defaults domains type"); ?></a></li>
60  <li class="lst"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
61  <li class="lst"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
62  <li class="lst"><a href="adm_db_servers.php"><?php __("Manage databases servers"); ?></a></li>
63 <!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
64 
65 <?php
66 
67 // here we include any "adminmenu_*" file content
68 $d=opendir(".");
69 if ($d) {
70  $lst=2;
71  while ($c=readdir($d)) {
72  if (substr($c,0,10)=="adminmenu_") {
73  echo "<li class=\"lst$lst\">";
74  include($c);
75  echo "</li>\n";
76  $lst=3-$lst;
77  }
78  }
79 }
80 
81 closedir($d);
82 ?>
83 </ul>
84 
85 <?php if ($cuid == 2000) { ?>
86  <p class="alert alert-info">
87  <?php if (panel_islocked()) { ?>
88  <a href="adm_lockpanel.php?action=unlock"><?php __("Click here to unlock the panel and allow user to login.");?></a>
89  <?php } else { ?>
90  <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>
91  <?php } ?>
92  </p>
93 <?php } //cuid 2000 ?>
94 
95 <?php include_once("foot.php"); ?>
exit
Definition: adm_doadd.php:70
$d
Definition: adm_panel.php:68
$msg
Definition: bootstrap.php:75
$c
Definition: bootstrap.php:47
$cuid
Definition: bootstrap.php:43
panel_islocked()
Definition: functions.php:1149
__($str)
Definition: functions.php:404