Can read the forum of the group directly from Xnet
[platal.git] / include / globals.inc.php.in
index a99a6b4..31a5760 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -32,6 +32,7 @@ class PlatalGlobals
     var $dbhost             = 'localhost';
     var $dbuser             = 'x4dat';
     var $dbpwd              = 'x4dat';
+    var $dbcharset          = 'utf8';
 
     /** paths */
     var $baseurl;
@@ -49,8 +50,6 @@ class PlatalGlobals
         $this->spoolroot = dirname(dirname(__FILE__));
 
         $this->read_config();
-
-        $this->dbconnect();
         $this->setlocale();
     }
 
@@ -82,12 +81,6 @@ class PlatalGlobals
         $this->read_ini_file($this->spoolroot.'/configs/platal.conf');
     }
 
-    function dbconnect()
-    {
-        @mysql_connect($this->dbhost, $this->dbuser, $this->dbpwd);
-        @mysql_select_db($this->dbdb);
-    }
-
     function setlocale()
     {
         setlocale(LC_MESSAGES, $this->locale);
@@ -128,5 +121,5 @@ class PlatalGlobals
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>