Exemplo n.º 1
0
function get_langfolder_cookie()
{
    global $deflang;
    if (!isset($_COOKIE["c_lang_folder"])) {
        return $deflang;
    } else {
        $langfolder_array = get_langfolder_list();
        foreach ($langfolder_array as $lf) {
            if ($lf == $_COOKIE["c_lang_folder"]) {
                return $_COOKIE["c_lang_folder"];
            }
        }
        return $deflang;
    }
}
Exemplo n.º 2
0
<?php

if (!defined('IN_TRACKER')) {
    die('Hacking attempt!');
}
error_reporting(E_ERROR | E_PARSE);
ini_set('display_errors', 1);
include_once $rootpath . 'classes/class_cache.php';
//Require the caching class
$Cache = new CACHE();
//Load the caching class
$Cache->setLanguageFolderArray(get_langfolder_list());
define('TIMENOW', time());
$USERUPDATESET = array();
$query_name = array();
define("UC_PEASANT", 0);
define("UC_USER", 1);
define("UC_POWER_USER", 2);
define("UC_ELITE_USER", 3);
define("UC_CRAZY_USER", 4);
define("UC_INSANE_USER", 5);
define("UC_VETERAN_USER", 6);
define("UC_EXTREME_USER", 7);
define("UC_ULTIMATE_USER", 8);
define("UC_NEXUS_MASTER", 9);
define("UC_VIP", 10);
define("UC_RETIREE", 11);
define("UC_DOWNLOADER", 12);
define("UC_UPLOADER", 13);
//define ("UC_FORUM_MODERATOR", 12);
define("UC_MODERATOR", 14);