예제 #1
0
	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.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');		
			}
예제 #2
0
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["status"])){main_status();exit;}
	if(isset($_GET["CheckEveryMinutes"])){SaveConf();exit;}
	if(isset($_GET["ArticaUpdateInstallPackage"])){ArticaUpdateInstallPackage();exit;}
	if(isset($_GET["auto_update_perform"])){auto_update_perform();exit;}
	if(isset($_GET["PackageUninstall"])){uninstall_package();exit;}
	if(isset($_GET["PackageUninstallRoolback"])){uninstall_rollback_package();exit;}
	if(isset($_GET["apply_uninstall"])){uninstall_to_system();exit;}
	if(isset($_GET["PackageInstall"])){install_package();exit;}
	if(isset($_GET["PackageInstallRoolback"])){install_rollback_package();exit;}
	if(isset($_GET["DeleteEvent"])){main_event_delete();exit;}
	if(isset($_GET["apply_upgrade"])){upgrade_to_system();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	//main_page();
	
	main_js();
	
	
function main_js(){
	$page=CurrentPageName();
	$prefix=str_replace('.',"_",$page);
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{repositories_manager}');
	
	$default="LoadAjax('main_configapt','$page?main={$_GET["main"]}&hostname=$hostname')";
	if(isset($_GET["show"])){
		$default="LoadAjax('main_configapt','$page?main={$_GET["show"]}&hostname=$hostname')";
	}
	
$html="
var {$prefix}timerID  = null;
예제 #3
0
	if(isset($_GET["item-js"])){items_js();exit;}
	if(isset($_GET["items-search"])){items_search();exit;}
	if(isset($_GET["item-popup"])){items_popup();exit;}
	if(isset($_POST["item-delete"])){items_delete();exit;}
	
	if(isset($_POST["main-subrule-delete"])){main_subrule_delete();exit;}
	if(isset($_POST["main-subrule-move"])){main_subrule_move();exit;}	
	
	if(isset($_POST["main-rule-delete"])){main_rule_delete();exit;}
	if(isset($_POST["main-rule-move"])){main_rule_move();exit;}
	if(isset($_POST["main-rule-enable"])){main_rule_enable();exit;}
	
	if(isset($_GET["main-section"])){main_rule();exit;}
	if(isset($_GET["main-search"])){main_search();exit;}
	if(isset($_GET["main"])){main_rule();exit();}
	if(isset($_GET["main-js"])){main_js();exit;}
	if(isset($_GET["main-tabs"])){main_tabs();exit;}
	if(isset($_GET["main-rules-tabs"])){main_section_tabs();exit;}
	
	
	if(isset($_GET["options"])){options_section();exit;}
	if(isset($_GET["options-search"])){options_search();exit;}
	if(isset($_POST["options-enable"])){options_enable();exit;}
	
	
	if(isset($_GET["main-popup"])){main_popup();exit;}
	if(isset($_POST["main-ID"])){main_save();exit;}
	if(isset($_GET["parameters"])){global_parameters();exit;}
	if(isset($_POST["DisableAnyCache"])){global_parameters_save();exit;}