예제 #1
0
    exit;
}
if (isset($_GET["main"])) {
    echo mysql_main_switch();
    exit;
}
if (isset($_GET["mysqlenable"])) {
    echo mysql_enable();
    exit;
}
if (isset($_GET["changemysqlenable"])) {
    mysql_action_enable_change();
    exit;
}
if (isset($_POST["mysqlroot"])) {
    testsMysql();
    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["databases_status"])) {
    Database_Status();
    exit;
}
if (isset($_GET["repair-databases"])) {
예제 #2
0
<?php
include_once(dirname(__FILE__) . '/ressources/class.main_cf.inc');
include_once(dirname(__FILE__) . '/ressources/class.ldap.inc');
include_once(dirname(__FILE__) . "/ressources/class.sockets.inc");
include_once(dirname(__FILE__) . "/ressources/class.mysql.inc");

	$user=new usersMenus();
	if($user->AsSystemAdministrator==false){header('location:users.index.php');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(isset($_GET["changemysqlenable"])){mysql_action_enable_change();exit;}
if(isset($_GET["mysql_account"])){testsMysql();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["databases_status"])){Database_Status();exit;}
if(isset($_GET["repair-databases"])){repair_database();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["mysql-settings-popup"])){mysql_settings_js();exit;}
if(isset($_GET["mysql-settings-popup-show"])){echo mysql_settings(true);exit;}

	js();
	
	
function js(){

	$page=CurrentPageName();
	$tpl=new templates();