function TrkWithMirrorTablesLib($db) { parent::TrackerLib($db); $this->TABLE_PREFIX = "tiki_trk_"; $this->COL_PREFIX = "field_"; $this->EXPLICIT_PREFIX = $this->TABLE_PREFIX; }
/** * TrackerLib Analytics * @param none * @return none * @constructor */ function __construct($config_params = null) { //Tracker is not ready yet $this->tracker_ready = false; //Current configuration is Default $this->current_config = TrackerLib::$default_config; //Set the default IP $this->current_config["ip_address"] = $this->getIp(); //Set the domain name and the cookie_domain $this->current_config["domain"] = $_SERVER["HTTP_HOST"]; $this->current_config["cookie_domain"] = $_SERVER["HTTP_HOST"]; //configure app ID $this->current_config["app"] = TrackerLib::$SDK_ID; $this->custom_config = array("app" => TrackerLib::$SDK_ID); //If configuration array was passed, configure TrackerLib if (isset($config_params)) { $this->config($config_params); } //Get cookie or generate a random one $this->current_config["cookie_value"] = isset($_COOKIE[$this->current_config["cookie_name"]]) ? $_COOKIE[$this->current_config["cookie_name"]] : TrackerLib::RandomString(); //We don't have any info on the user yet, so he is up to date by default. $this->user_up_to_date = true; }