Exemple #1
0
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.pure-ftpd.inc');
	
	
	if(isset($_GET["js"])){js();exit;}
	
	$user=new usersMenus();
	if($user->PUREFTP_INSTALLED==false){header('location:users.index.php');exit();}
	if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator)==false){header('location:users.index.php');exit();}
	if(isset($_GET["SaveGeneralSettings"])){SaveGeneralSettings();exit;}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["pure-ftpd-page"])){main_js();exit;}
	if(isset($_GET["pure-js"])){main_config_pureftpd_js();exit;}
	
	
		main_page();
		
function js(){
	$user=new usersMenus();
	if($user->PUREFTP_INSTALLED==false){die("alert('product not installed')");}
	if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator)==false){die("alert('No privileges')");}
	if(is_file("js/pureftpd.js")){$jsadd=file_get_contents("js/pureftpd.js");};
	$page=CurrentPageName();
	$html="
		function PureFtpdLoad(){
			YahooWin('700','$page?pure-ftpd-page=yes');		
			}
		$jsadd
Exemple #2
0
    exit;
}
if (isset($_GET["SaveGeneralSettings"])) {
    SaveGeneralSettings();
    exit;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["pure-ftpd-page"])) {
    main_js();
    exit;
}
if (isset($_GET["pure-js"])) {
    main_config_pureftpd_js();
    exit;
}
main_page();
function js()
{
    $user = new usersMenus();
    if ($user->PUREFTP_INSTALLED == false) {
        die("alert('product not installed')");
    }
    if ($user->AsSystemAdministrator == false or $user->AsSambaAdministrator == false) {
        die("alert('No privileges')");
    }
    if (is_file("js/pureftpd.js")) {
        $jsadd = file_get_contents("js/pureftpd.js");
    }