if (!empty($wampConf['mysqlUseOtherPort'])) { update_wampmanager_file("Type: item; Caption: \"\${w_testPortMysqlUsed}", $wampConf['mysqlUseOtherPort'], "on", "off", $templateFile); } // Item Tools submenu Change the names of the services if (!empty($wampConf['ItemServicesNames'])) { update_wampmanager_file("Type: separator; Caption: \"Apache: \${c_apacheService} - MySQL: \${c_mysqlService}\"", $wampConf['ItemServicesNames'], "on", "off", $templateFile); update_wampmanager_file("Type: item; Caption: \"\${w_changeServices}\"; Action: multi; Actions: changeservicesnames; Glyph: 9", $wampConf['ItemServicesNames'], "on", "off", $templateFile); } // Item Tools submenu Check MariaDB port used (if not 3307) if (!empty($wampConf['mariadbUseOtherPort'])) { update_wampmanager_file("Type: item; Caption: \"\${w_testPortMariadbUsed}", $wampConf['mariadbUseOtherPort'], "on", "off", $templateFile); } // Item Tools submenu Change the names of the services if (!empty($wampConf['ItemServicesNames'])) { update_wampmanager_file("Type: separator; Caption: \"Apache: \${c_apacheService} - MariaDB: \${c_mariadbService}\"", $wampConf['ItemServicesNames'], "on", "off", $templateFile); update_wampmanager_file("Type: item; Caption: \"\${w_changeServices}\"; Action: multi; Actions: changeservicesnames; Glyph: 9", $wampConf['ItemServicesNames'], "on", "off", $templateFile); } // on inclus le fichier de template require $templateFile; // ************************ // on gere le mode online /offline $c_OnOffLine = 'off'; if ($wampConf['status'] == 'online') { $tpl = str_replace('images_off.bmp', 'images_on.bmp', $tpl); $tpl = str_replace($w_serverOffline, $w_serverOnline, $tpl); $tpl = str_replace('onlineOffline.php on', 'onlineOffline.php off', $tpl); $tpl = str_replace($w_putOnline, $w_putOffline, $tpl); $c_OnOffLine = 'on'; } // ************************ // chargement du menu des langues disponibles
$w_newPort = "80"; } // ************************ //[modif oto] - Before to require wampmanager.tpl ($templateFile) // we need to change some options, otherwise the variables are replaced by their content. // Option to launch Homepage at startup if (!empty($wampConf['HomepageAtStartup'])) { update_wampmanager_file("Action: run; FileName: \"\${c_navigator}\"; Parameters: \"http://localhost\${UrlPort}/\"; ShowCmd: normal; Flags: ignoreerrors", $wampConf['HomepageAtStartup'], "on", "off", $templateFile); } // Item menu Online / Offline if (!empty($wampConf['MenuItemOnline'])) { update_wampmanager_file("Type: item; Caption: \"\${w_putOnline}\"; Action: multi; Actions: onlineoffline", $wampConf['MenuItemOnline'], "on", "off", $templateFile); } // Item submenu Apache Check port used (if not 80) if (!empty($wampConf['apacheUseOtherPort'])) { update_wampmanager_file("Type: item; Caption: \"\${w_testPortUsed}", $wampConf['apacheUseOtherPort'], "on", "off", $templateFile); } // on inclus le fichier de template require $templateFile; // ************************ // on gere le mode online /offline if ($wampConf['status'] == 'online') { $tpl = str_replace('images_off.bmp', 'images_on.bmp', $tpl); $tpl = str_replace($w_serverOffline, $w_serverOnline, $tpl); $tpl = str_replace('onlineOffline.php on', 'onlineOffline.php off', $tpl); $tpl = str_replace($w_putOnline, $w_putOffline, $tpl); } // ************************ // chargement du menu des langues disponibles if ($handle = opendir($langDir)) { while (false !== ($file = readdir($handle))) {