From 634cdde44af00ae8be1fb170ce6957f911dc4298 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 25 Jul 2005 20:20:31 +0000 Subject: [PATCH 1/1] dunno how it went there git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@5 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/platal/globals.inc.php | 105 ----------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 include/platal/globals.inc.php diff --git a/include/platal/globals.inc.php b/include/platal/globals.inc.php deleted file mode 100644 index 719bccc..0000000 --- a/include/platal/globals.inc.php +++ /dev/null @@ -1,105 +0,0 @@ -'auth_user_md5'); - var $tlabel = array('native'=>'X.Org'); - - /** paths */ - var $baseurl = 'http://localhost/xorg'; - var $spoolroot = '/var/spool/xorg'; - var $root = null; - - function PlatalGlobals($sess) - { - $this->session = $sess; - } - - function read_config() - { - $array = parse_ini_file($this->root.'/configs/platal.conf', true); - if (!is_array($array)) { - return; - } - - foreach ($array as $cat=>$conf) { - $c = strtolower($cat); - foreach ($conf as $key=>$val) { - if ($c == 'core' && isset($this->$key)) { - $this->$key=$val; - } else { - $this->$c->$key = $val; - } - } - } - } - - function setlocale() - { - global $globals; - setlocale(LC_MESSAGES, $globals->core->locale); - setlocale(LC_TIME, $globals->core->locale); - setlocale(LC_CTYPE, $globals->core->locale); - } -} - -// }}} - -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: -?> -- 2.1.4