<?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"; $tpl = new templates(); $page = CurrentPageName(); if (isset($_GET["install_status"])) { install_status(); exit; } if (isset($_GET["installvdi"])) { install_vdi(); exit; } if (posix_getuid() != 0) { $user = new usersMenus(); if ($user->AsSystemAdministrator == false) { echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');"); die; exit; } } $button = "<input type='button' style='padding:30px;padding-left:180px;padding-right:180px;font-size:16px' OnClick=\"javascript:VDIInstall();\" value='{install_upgrade}'>"; if (isset($_GET["debug"])) { debug(); exit; } $installation_lauched = $tpl->javascript_parse_text("{installation_lauched}"); $users = new usersMenus();
<?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"); $tpl=new templates(); $page=CurrentPageName(); if(isset($_GET["install_status"])){install_status();exit;} if(isset($_GET["installvdi"])){install_vdi();exit;} if(posix_getuid()<>0){ $user=new usersMenus(); if($user->AsSystemAdministrator==false){ echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');"); die();exit(); } } $button="<input type='button' style='padding:30px;padding-left:180px;padding-right:180px;font-size:16px' OnClick=\"javascript:VDIInstall();\" value='{install_upgrade}'>"; if(isset($_GET["debug"])){debug();exit;} $installation_lauched=$tpl->javascript_parse_text("{installation_lauched}"); $users=new usersMenus(); if($users->LinuxDistriCode<>"DEBIAN"){ if($users->LinuxDistriCode<>"UBUNTU"){ $button="<H2>{THIS_DISTRIBUTION_IS_NOT_SUPPORTED}</H2>"; } }