$tpl = new templates(); $text = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); $text = replace_accents(html_entity_decode($text)); echo "alert('{$text}');"; exit; } if (isset($_GET["mysql-check"])) { mysqlcheck(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["database"])) { database_infos(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{browse_mysql_server}', "mysql.index.php"); $tables_list = $tpl->_ENGINE_parse_body('{tables_list}', "mysql.index.php"); $uid = $_GET["uid"]; $prefix = str_replace(".", "_", $page); $html = "\n\tvar mem_id='';\n\t\n\tfunction {$prefix}LoadMainRI(){\n\t\tYahooWin3('650','{$page}?popup=yes','{$title}');\n\t\t}\t\n\t\t\n\t\t\n\tfunction LoadMysqlTables(database){\n\t\tYahooWin4('650','{$page}?database='+database,'{$tables_list}::'+database);\n\t}\n\t\t\n\t\n\t\n\t{$prefix}LoadMainRI();\n\t"; echo $html; } function popup()
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.computers.inc'); $user=new usersMenus(); if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator==false)) { $tpl=new templates(); $text=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); $text=replace_accents(html_entity_decode($text)); echo "alert('$text');"; exit; } if(isset($_GET["mysql-check"])){mysqlcheck();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["database"])){database_infos();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{browse_mysql_server}',"mysql.index.php"); $tables_list=$tpl->_ENGINE_parse_body('{tables_list}',"mysql.index.php"); $uid=$_GET["uid"]; $prefix=str_replace(".","_",$page); $html=" var mem_id='';