include_once('ressources/class.artica.inc'); include_once('ressources/class.mysql.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;} 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')";
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; } if (isset($_GET["tabs"])) { tabs(); exit; } //main_page(); main_js(); function main_js() { $page = CurrentPageName();