Пример #1
0
function menu()
{
    system("clear");
    echo "Restart MySQL service.....................: [R]\n";
    echo "Change the Local MySQL root password......: [P]\n";
    echo "Use a remote MySQL service................: [R]\n";
    echo "MySQL status..............................: [S]\n";
    echo "MySQL Events..............................: [E]\n";
    echo "Return to main menu.......................: [Q]\n";
    $answer = trim(strtolower(fgets(STDIN)));
    if ($answer == "q") {
        die(0);
    }
    if ($answer == "r") {
        RestartMySQL();
        menu();
        return;
    }
    if ($answer == "p") {
        ChangeRootPassword();
        menu();
        return;
    }
    if ($answer == "s") {
        mysql_status();
        menu();
        return;
    }
    if ($answer == "r") {
        mysql_remote();
        menu();
        return;
    }
    if ($answer == "e") {
        mysql_events();
        menu();
        return;
    }
}
Пример #2
0
    exit;
}
if (isset($_GET["restart-winbindd"])) {
    restart_winbindd();
    exit;
}
if (isset($_GET["changeRootPasswd"])) {
    changeRootPasswd();
    exit;
}
if (isset($_GET["process1"])) {
    process1();
    exit;
}
if (isset($_GET["mysql-status"])) {
    mysql_status();
    exit;
}
if (isset($_GET["openldap-status"])) {
    openldap_status();
    exit;
}
if (isset($_GET["vmtools-status"])) {
    vmtools_status();
    exit;
}
if (isset($_GET["vmwaretoolspath"])) {
    vmwaretoolspath();
    exit;
}
if (isset($_GET["fetchmail-monit"])) {
Пример #3
0
    exit;
}
if (isset($_GET["software-list-by-family"])) {
    software_available_family();
    exit;
}
if (isset($_GET["software-list"])) {
    software_list_by_family();
    exit;
}
if (isset($_GET["main-start"])) {
    echo popup_main();
    exit;
}
if (isset($_GET["mysqlstatus"])) {
    echo mysql_status();
    exit;
}
if (isset($_GET["main"])) {
    echo mysql_main_switch();
    exit;
}
if (isset($_GET["mysqlenable"])) {
    echo mysql_enable();
    exit;
}
if ($_GET["script"] == "mysql_enabled") {
    echo js_mysql_enabled();
    exit;
}
if ($_GET["script"] == "mysql_save_account") {
Пример #4
0
if(isset($_GET["events-list"])){events_list();exit;}
if(isset($_GET["events-list-list"])){events_list_list();exit;}
if(isset($_GET["download-logs"])){events_download();exit;}


if(isset($_GET["popup"])){popup();exit;}
if($_GET["main"]=="softwares-available"){software_available();exit;}
if($_GET["main"]=="samba-stables"){samba_stables_available();exit;}

if(isset($_GET["software-list-by-family"])){software_available_family();exit;}

if(isset($_GET["software-list"])){software_list_by_family();exit;}

if(isset($_GET["main-start"])){echo popup_main();exit;}

if(isset($_GET["mysqlstatus"])){echo mysql_status();exit;}
if(isset($_GET["main"])){echo mysql_main_switch();exit;}
if(isset($_GET["mysqlenable"])){echo mysql_enable();exit;}
if($_GET["script"]=="mysql_enabled"){echo js_mysql_enabled();exit;}
if($_GET["script"]=="mysql_save_account"){echo js_mysql_save_account();exit;}
if(isset($_GET["install_app"])){install_app();exit;}
if(isset($_GET["InstallLogs"])){GetLogsStatus();exit;}
if(isset($_GET["TestConnection-js"])){TestConnection_js();exit;}
if(isset($_GET["testConnection"])){testConnection();exit;}
if(isset($_GET["remove"])){remove();exit;}
if(isset($_GET["uninstall_app"])){remove_perform();exit;}
if(isset($_GET["remove-refresh"])){remove_refresh();exit;}
if(isset($_GET["ui-samba"])){install_remove_services();exit;}
if(isset($_GET["clear"])){clear();exit;}
if(isset($_GET["SynSysPackages"])){SynSysPackages();exit;}
if(isset($_GET["softwares-available"])){software_available();exit;}
Пример #5
0
		$tpl=new templates();
		echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
		die();
	}	
	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["members"])){members();exit;}
	if(isset($_GET["members-list"])){members_list();exit;}
	if(isset($_GET["members-delete"])){members_delete();exit;}
	if(isset($_GET["members-add"])){members_add_popup();exit;}
	if(isset($_POST["members-save"])){members_add_save();exit;}
	if(isset($_GET["mysql-dir"])){mysql_dir_popup();exit;}
	if(isset($_POST["ChangeMysqlDir"])){mysql_dir_save();exit;}
	if(isset($_GET["mysql-status"])){mysql_status();exit;}
	
	if(isset($_GET["selectDB-js"])){selectDB_js();exit;}
	if(isset($_GET["selectDB-popup"])){selectDB_popup();exit;}
	if(isset($_GET["selectDB-list"])){selectDB_list();exit;}
	if(isset($_POST["selectDB-save"])){selectDB_save();exit;}
	
	if(isset($_GET["Add-DB-js"])){Add_DB_js();exit;}
	if(isset($_POST["Add-DB-save"])){Add_DB_save();exit;}
	if(isset($_GET["text-status"])){text_status();exit;}
	
js();

function js(){
	$page=CurrentPageName();
echo "