Пример #1
0
    $florensia->{$varname} = $varvalue;
}
define("KILL_GLOBALS", 1);
define("IN_MYBB", 1);
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";
Пример #2
0
$flolang = new class_lang();
/*	workaround so no need to include whole forum-class	*/
class parser
{
    function parse_message($text, $settings = array())
    {
        return $text;
    }
}
$parser = new parser();
/*	END	*/
preg_match('/^([a-z]+)\\./', $_SERVER['SERVER_NAME'], $subdomain);
if (is_dir($cfg['language_abs'] . '/' . $subdomain[1]) && $subdomain[1] != "") {
    $flolang->language = $subdomain[1];
}
$flolang->load("global");
$db = MYSQL_CONNECT($cfg['dbhost'], $cfg['dbuser'], $cfg['dbpasswd']) or die("No Database connection");
MYSQL_SELECT_DB($cfg['dbname'], $db) or die("No Database connection");
MYSQL_QUERY("SET NAMES 'utf8'");
require_once $cfg['root_abs'] . "/functions.php";
define('is_florensia', 1);
require_once $cfg['root_abs'] . "/class_florensia.php";
$florensia = new class_florensia();
$color1 = 255;
$color2 = 255;
$color3 = 255;
$columnname_x = 0;
$columnall_start = 10;
$columnvalue_x = 300;
$picturewidth = 310;
$fontsize = 9;
Пример #3
0
{
    function parse_message($text, $settings = array())
    {
        return $text;
    }
}
$parser = new parser();
/*	END	*/
require_once "{$cfg['root_abs']}/class_lang.php";
$flolang = new class_lang();
require_once $cfg['root_abs'] . "/class_character.php";
preg_match('/^([a-z]{2})/', $_GET['sig'], $language);
if (is_dir($cfg['language_abs'] . '/' . $language[1]) && $language[1] != "") {
    $flolang->language = $language[1];
}
$flolang->load("signature");
/*
 * Loading character...
 */
preg_match("/^([a-z]{2}|0){$sep}([0-9t]+){$sep}(.+)\\.(png|gif)\$/", $_GET['sig'], $character);
$character = explode($sep, $character[3]);
foreach ($character as $charname) {
    if (trim($charname) == "0" or $charname == "") {
        $charinfo['placeholder_' . bcadd(count($charinfo), 1)] = 0;
        continue;
    }
    $api = new class_character($charname);
    if (!$api->is_valid()) {
        //timeout or deleted
        continue;
    }