Esempio n. 1
0
include_once 'ressources/class.ntpd.inc';
$user = new usersMenus();
if ($user->AsArticaAdministrator == false) {
    header('location:users.index.php');
    exit;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["status"])) {
    echo main_status();
    exit;
}
if (isset($_GET["ntpdAdd"])) {
    ntpdAdd();
    exit;
}
if (isset($_GET["ntpdservermove"])) {
    ntpdservermove();
    exit;
}
if (isset($_GET["ntpdserverdelete"])) {
    ntpdserverdelete();
    exit;
}
if (isset($_GET["NTPDEnabled"])) {
    NTPDEnabled();
    exit;
}
if (isset($_GET["op"])) {
Esempio n. 2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.mysql.inc');	
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.ntpd.inc');
	$user=new usersMenus();
	if($user->AsArticaAdministrator==false){header('location:users.index.php');exit();}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["status"])){echo main_status();exit;}
	if(isset($_GET["ntpdAdd"])){ntpdAdd();exit;}
	if(isset($_GET["ntpdservermove"])){ntpdservermove();exit;}
	if(isset($_GET["ntpdserverdelete"])){ntpdserverdelete();exit;}
	if(isset($_GET["NTPDEnabled"])){NTPDEnabled();exit;}
	if(isset($_GET["op"])){main_switch_op();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["enable-ntpd-switch"])){ntpd_switch();exit;}
	if(isset($_GET["list"])){echo main_server_list();exit;}
	if(isset($_GET["country"])){ntpdAddCountry();exit;}
	js();
	
	
function js(){

	$page=CurrentPageName();
	$prefix="ntpdpage";
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_NTPD}');
	$give_server_name=$tpl->_ENGINE_parse_body('{give_server_name}');