include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.backuppc.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSystemAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["popup-status"])){popup_status();exit;} if(isset($_GET["popup-settings"])){popup_settings();exit;} if(isset($_GET["EnableBackupPc"])){Save();exit;} js(); function js() { $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{APP_BACKUPPC}"); $page=CurrentPageName(); $start="BACKUPPC_START()"; if(isset($_GET["in-front-ajax"])){$start="BACKUPPC_START2()";} $html="
die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["status"])) { status(); exit; } if (isset($_GET["status-service"])) { status_service(); exit; } if (isset($_GET["conf"])) { popup_settings(); exit; } if (isset($_GET["EnableSabnZbdPlus"])) { save(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{APP_SABNZBDPLUS}"); if (isset($_GET["in-front-ajax"])) { echo "\$('#BodyContent').load('{$page}?popup=yes&in-front-ajax=yes');"; return;
include_once('ressources/class.users.menus.inc'); include_once('ressources/class.system.network.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsAnAdministratorGeneric){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["status-service"])){status_service();exit;} if(isset($_GET["conf"])){popup_settings();exit;} if(isset($_GET["EnableSabnZbdPlus"])){save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{APP_SABNZBDPLUS}"); if(isset($_GET["in-front-ajax"])){ echo "$('#BodyContent').load('$page?popup=yes&in-front-ajax=yes');"; return; }