|
@@ -3,14 +3,7 @@
|
|
ini_set("display_errors", 1);
|
|
ini_set("display_errors", 1);
|
|
session_start();
|
|
session_start();
|
|
define('DIR',dirname(__FILE__));
|
|
define('DIR',dirname(__FILE__));
|
|
- $locale = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
|
|
|
|
- if(strpos(',',$locale) !== false){
|
|
|
|
- $locale = substr($locale,0,strpos(',',$locale));
|
|
|
|
- }
|
|
|
|
- define("LOCALE",$locale);
|
|
|
|
- setlocale(LC_ALL,LOCALE);
|
|
|
|
- bindtextdomain('omninet',DIR.'/lang');
|
|
|
|
- textdomain('omninet');
|
|
|
|
|
|
+ require_once(DIR.'/lib/locale.php');
|
|
require_once(DIR.'/config.php');
|
|
require_once(DIR.'/config.php');
|
|
require_once(DIR."/lib/irc.php");
|
|
require_once(DIR."/lib/irc.php");
|
|
require_once(DIR."/lib/security.php");
|
|
require_once(DIR."/lib/security.php");
|