= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); include_once("status.inc"); // sets language settings for automatic translation function setlanguage() { if (!isset($_SESSION['language'])) { $_SESSION['language'] = "en_GB.:ISO-8859-1:English (Great Britain)"; } $language = explode(":", $_SESSION['language']); putenv("LANG=" . $language[0]); // e.g. LANG=de_DE setlocale(LC_ALL, $language[0]); // set LC_ALL to de_DE $locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale"; // set path to translations bindtextdomain("messages", $locdir); textdomain("messages"); header("Content-type: text/html; charset=" . $language[1], true); } // returns an array of string with all available configuration profiles (without .conf) function getConfigProfiles() { $dir = dir(substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config"); $ret = array(); $pos = 0; while ($entry = $dir->read()){ $ext = substr($entry, strlen($entry)-5, 5); $name = substr($entry, 0, strlen($entry)-5); // check if extension is right, add to profile list if ($ext == ".conf") { $ret[$pos] = $name; $pos ++; } } sort($ret); return $ret; } // print meta refresh // $page is the URL of the target page function metaRefresh($page) { echo $_SESSION['header']; echo "\n"; echo "
\n"; echo "" . _("Click here if you are not directed to the next page.") . "\n"; echo "
\n"; echo "\n"; echo "