+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************
- $Id: xorg.globals.inc.php.in,v 1.8 2004/11/24 14:21:48 x2000habouzit Exp $
- ***************************************************************************/
-
-require_once("diogenes.core.globals.inc.php");
-require_once("diogenes.database.inc.php");
-
-// {{{ class XorgGlobals
-
-class XorgGlobals extends DiogenesCoreGlobals
-{
- var $page = 'XorgPage';
- var $session = 'XorgSession';
- var $menu;
-
- /** The x.org version */
- var $version = "@VERSION@";
- var $debug = false;
-
- /** db params */
- var $dbdb = 'x4dat';
- var $dbhost = 'localhost';
- var $dbuser = 'x4dat';
- var $dbpwd = 'x4dat';
-
- var $table_auth = 'auth_user_md5';
- var $table_log_actions = 'logger.actions';
- var $table_log_sessions = 'logger.sessions';
- var $table_log_events = 'logger.events';
-
- /** logger */
- var $tauth = array('native'=>"auth_user_md5");
- var $tlabel = array('native'=>"X.Org");
-
- /** paths */
- var $baseurl = "http://localhost/xorg";
- var $spoolroot = "/var/spool/xorg";
- var $root = null;
-
- /** recherche */
- var $public_max_search_results = 25;
- var $search_results_per_page = 20;
-
- function XorgGlobals() {
- $this->root = dirname(dirname(__FILE__));
-
- foreach(glob($this->root.'/include/conf.d/*.globals.inc.php') as $inc) {
- require_once($inc);
- }
-
- $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;
- }
- }
- }
-
- $this->menu = new XOrgMenu($this->root.'/include/conf.d/');
-
- session_start();
-
- $this->dbconnect();
- if ($this->debug) {
- $this->db->trace_on();
- }
- }
-}
-
-// }}}
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>