public static function conf_load()
 {
     if (!self::$conf_loaded) {
         self::$conf_loaded = true;
         $keys = '\'' . implode('\',\'', self::$conf_load) . '\'';
         $mysql_result = self::sql('SELECT `key`, `value` FROM SQL_PREFIX_Config WHERE `key` IN (' . $keys . ')');
         while ($ligne = mysql_fetch_assoc($mysql_result)) {
             if (trim($ligne['key']) == '') {
                 continue;
             }
             self::$settings[$ligne['key']] = unserialize($ligne['value']);
         }
         // Initialisations particulières {
         //            if (self::$conf_load['wormhole_cleaning']) {
         //                $lng = language::getinstance()->GetLngBlock('dataengine');
         //                $wormhole_cleaning = self::$settings['wormhole_cleaning'];
         //                if (date('w') == $lng['wormholes_day'] && $wormhole_cleaning['enabled']) {
         //                    $runat = mktime($lng['wormholes_hour'], $lng['wormholes_minute'], 0, date('m'), date('d'), date('Y'));
         //                    $now = time();
         //                    if ($now > $runat && $runat > $wormhole_cleaning['lastrun']) {
         //                        $mysql_result = DataEngine::sql('SELECT ID FROM `SQL_PREFIX_Coordonnee` WHERE `TYPE`=1');
         //                        while ($row = mysql_fetch_assoc($mysql_result))
         //                            $tmp[] = $row['ID'];
         //
         //                        if (is_array($tmp) && count($tmp) > 0) {
         //                            $tmp = implode(',', $tmp);
         //                            DataEngine::sql('DELETE FROM `SQL_PREFIX_Coordonnee` WHERE `ID` in (' . $tmp . ')');
         //                            DataEngine::sql('DELETE FROM `SQL_PREFIX_Coordonnee_Joueurs` WHERE `jID` in (' . $tmp . ')');
         //                            DataEngine::sql('DELETE FROM `SQL_PREFIX_Coordonnee_Planetes` WHERE `pID` in (' . $tmp . ')');
         //                        }
         //                        self::sql('INSERT INTO `SQL_PREFIX_Log` (DATE,LOGIN,IP) VALUES(NOW(),\'vortex_reset_by:' . $_SESSION['_login'] . '\' ,\'' . Get_IP() . '\')');
         //                        $wormhole_cleaning['lastrun'] = $now;
         //                        self::conf_update('wormhole_cleaning', $wormhole_cleaning);
         //                        self::sql_do_spool(); // Mettre à jour maintenant, pas que deux membres le fasse a 1/2sec d'intervalle.
         //                        addons::getinstance()->VortexCleaned();
         //                    }
         //                }
         //            }
         if (CHECK_LOGIN && $GLOBALS['validsession']) {
             if (self::$settings['config']['closed'] && !Members::CheckPerms(AXX_ROOTADMIN)) {
                 if (NO_SESSIONS) {
                     $lng = language::getinstance()->GetLngBlock('login');
                     output::_DoOutput('<eude><alert>' . $lng['currently_closed_nohtml'] . '</alert><GM_active>0</GM_active></eude>');
                 } else {
                     session_destroy();
                     output::Boink(ROOT_URL);
                 }
             }
         }
         //            if (is_array(self::$settings['config'])) {
         //                if (isset(self::$settings['config']['version'])) {
         //                    if (preg_match('/(\d+\.\d+\.\d+)\.?(\d+)?/', self::Get_Version(), $version) > 0) {
         //                        if (version_compare(self::$settings['config']['version'], $version[1], '<')) {
         //                            output::Boink('%ROOT_URL%upgrade/run' . self::$settings['config']['version'] . '.php');
         //                        }
         //                    }
         //                }
         //            }
         self::$conf_load = array();
     }
     return self::$conf_loaded;
 }