예제 #1
0
require $florensia->forum . "/global.php";
require_once MYBB_ROOT . "inc/functions_user.php";
require_once MYBB_ROOT . "inc/class_parser.php";
$parser = new postParser();
$lang->load("member");
#date_default_timezone_set("System/Localtime"); # use system time for all date() calculations
require_once $cfg['root_abs'] . "/class_lang.php";
$flolang = new class_lang();
if (is_dir($cfg['language_abs'] . '/' . $subdomain[1]) && $subdomain[1] != "") {
    $flolang->language = $subdomain[1];
}
$flolang->load("global");
$flolang->load("market");
$flolang->load("tabbar");
$florensia->root = str_replace('http://www.', 'http://' . $flolang->language . '.', $florensia->root);
$flolang->get_languages();
require_once "{$florensia->root_abs}/class_stringtable.php";
$stringtable = new class_stringtable();
$stringtable->get_valid_languages();
$stringtable->language = $flolang->lang[$flolang->language]->prefered_stringtablelang;
if (isset($_POST['quicksearch'])) {
    $_GET['names'] = $_POST['names'];
}
if (isset($_GET['names']) && $_GET['names'] != $stringtable->language && array_key_exists($_GET['names'], $stringtable->languagearray)) {
    $stringtable->language = $_GET['names'];
}
require_once "{$florensia->root_abs}/class_quest.php";
$classquest = new class_quest();
require_once "{$florensia->root_abs}/class_questtext.php";
$classquesttext = new class_questtext();
$classquesttext->get_valid_languages();