index e41c713261d2015a7805d92cb4ec494031e59d62..3c60db50bfd9bf4b2efaa3f8c39ae8ae6444cac6 100644 (file)
/* try to start session, so we can remove userlocks,
if the old session is still available */
-@session_start();
+@session::start();
if(session::is_set('ui')){
/* Get config & ui informations */
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
/* Create smarty & Set template compile directory */
if (isset($_GET['request'])){
/* destroy old session */
- @session_unset ();
- @session_destroy ();
+ session::destroy ();
/* If we're not using htaccess authentication, just redirect... */
if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(true|yes)$/i', $config->data['MAIN']['HTACCESS_AUTH'])){