2006-04-26 12:28:53 +00:00
< ? php
/*
----------------------------------------------------------------------
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
----------------------------------------------------------------------
*/
2017-10-08 17:31:34 +00:00
2017-10-12 15:54:48 +00:00
/**
* Administrator misc . settings
*
* @ copyright AlternC - Team 2000 - 2017 https :// alternc . com /
*/
2006-04-26 12:28:53 +00:00
require_once ( " ../class/config.php " );
if ( ! $admin -> enabled ) {
2017-10-06 16:04:36 +00:00
$msg -> raise ( " ERROR " , " admin " , _ ( " This page is restricted to authorized staff " ));
2017-08-15 15:03:56 +00:00
echo $msg -> msg_html_all ();
2006-04-26 12:28:53 +00:00
exit ();
}
2009-09-08 05:29:38 +00:00
include_once ( " head.php " );
2006-04-26 12:28:53 +00:00
?>
< h3 >< ? php __ ( " Admin Control Panel " ); ?> </h3>
2010-06-02 22:20:39 +00:00
< hr id = " topbar " />
< br />
2006-04-26 12:28:53 +00:00
< ? php
2017-08-15 15:03:56 +00:00
echo $msg -> msg_html_all ();
2006-04-26 12:28:53 +00:00
?>
2008-04-10 18:05:51 +00:00
< ul id = " adm_panel " >
2013-05-23 16:18:56 +00:00
< li class = " lst " >< a href = " adm_tld.php " >< ? php __ ( " Manage allowed domains (TLD) " ); ?> </a></li>
< li class = " lst " >< a href = " adm_passpolicy.php " >< ? php __ ( " Password Policies " ); ?> </a></li>
< li class = " lst " >< a href = " adm_doms.php " >< ? php __ ( " Manage installed domains " ); ?> </a></li>
< li class = " lst " >< a href = " adm_defquotas.php " >< ? php __ ( " Change the default quotas " ); ?> </a></li>
< li class = " lst " >< a href = " adm_authip_whitelist.php " >< ? php __ ( " Manage IP whitelist " ); ?> </a></li>
< li class = " lst " >< a href = " adm_email.php " >< ? php __ ( " Send an email to all members " ); ?> </a></li>
2010-04-29 14:29:27 +00:00
</ ul >
< h3 >< ? php __ ( " Advanced features " ); ?> </h3>
< ul id = " adm_panel_root " >
2013-05-23 16:18:56 +00:00
< li class = " lst " >< a href = " adm_slavedns.php " >< ? php __ ( " Manage slave DNS " ); ?> </a></li>
< li class = " lst " >< a href = " adm_mxaccount.php " >< ? php __ ( " Manage allowed accounts for secondary mx " ); ?> </a></li>
< li class = " lst " >< a href = " adm_variables.php " >< ? php __ ( " Configure AlternC variables " ); ?> </a></li>
< li class = " lst " >< a href = " adm_doms_def_type.php " >< ? php __ ( " Manage defaults domains type " ); ?> </a></li>
< li class = " lst " >< a href = " adm_domstype.php " >< ? php __ ( " Manage domains type " ); ?> </a></li>
< li class = " lst " >< a href = " adm_dnsweberror.php " >< ? php __ ( " DNS and website having errors " ); ?> </a></li>
< li class = " lst " >< a href = " adm_db_servers.php " >< ? php __ ( " Manage databases servers " ); ?> </a></li>
2010-06-02 22:43:53 +00:00
<!-- < li class = " lst2 " >< a href = " stats_members.php " >< ? php __ ( " Account creation statistics " ); ?> </a></li> -->
2010-04-29 14:29:27 +00:00
2006-04-26 12:28:53 +00:00
< ? php
// here we include any "adminmenu_*" file content
$d = opendir ( " . " );
2009-09-08 05:29:38 +00:00
if ( $d ) {
$lst = 2 ;
2006-04-26 12:28:53 +00:00
while ( $c = readdir ( $d )) {
if ( substr ( $c , 0 , 10 ) == " adminmenu_ " ) {
2009-09-08 05:29:38 +00:00
echo " <li class= \" lst $lst\ " > " ;
2006-04-26 12:28:53 +00:00
include ( $c );
2009-09-08 05:29:38 +00:00
echo " </li> \n " ;
2006-04-26 12:28:53 +00:00
$lst = 3 - $lst ;
}
2009-09-08 05:29:38 +00:00
}
2006-04-26 12:28:53 +00:00
}
closedir ( $d );
?>
2008-04-10 18:05:51 +00:00
</ ul >
2006-04-26 12:28:53 +00:00
2013-09-12 13:17:04 +00:00
< ? php if ( $cuid == 2000 ) { ?>
2013-10-18 09:12:41 +00:00
< p class = " alert alert-info " >
2013-09-12 13:17:04 +00:00
< ? php if ( panel_islocked ()) { ?>
< a href = " adm_lockpanel.php?action=unlock " >< ? php __ ( " Click here to unlock the panel and allow user to login. " ); ?> </a>
< ? php } else { ?>
< 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>
< ? php } ?>
</ p >
< ? php } //cuid 2000 ?>
2009-09-08 05:29:38 +00:00
< ? php include_once ( " foot.php " ); ?>