goto ZDoQy;
w9DpT: class MY_Controller extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->driver("cache", array("adapter" => "apc", "backup" => "file", "key_prefix" => "vie_"));
$this->data = array();
$this->load->model("m_core");
$this->data["settings"] = $this->m_core->getSettings();
$this->config->load("config", true);
try {
list($key) = explode(, $this->config->item("license_key", "config"));
if (get_domain_host(base_url()) != "timepayu.com") {
die("This site is using an invalid license. Please buy a valid license at <a target="_blank" href="https://shoppy.gg/product/099OPQ9">https://shoppy.gg/product/099OPQ9</a>");
}
$this->data["csrf_name"] = $this->security->get_csrf_token_name();
$this->data["csrf_hash"] = $this->security->get_csrf_hash();
$ipAddress = $this->input->ip_address();
$sub = getSub($ipAddress);
if ($this->session->ipSub) {
if ($this->session->ipSub != $sub) {
session_destroy();
}
}
else {
$this->session->set_userdata("ipSub", $sub);
}
}
catch (Throwable $th) {
}
}
}
goto cK52Q;
aBhNY: class Member_Controller extends MY_Controller {
public function __construct() {
parent::__construct();
if ($this->data["settings"]["status"] == "off") {
return redirect(site_url("maintenance"));
}
if ($this->session->VUID == NULL || !is_numeric($this->session->VUID)) {
session_destroy();
return redirect(site_url());
}
$this->load->helper("string");
$this->data["pages"] = $this->m_core->getPages();
$userId = $this->db->escape_str($this->session->VUID);
$user = $this->m_core->getUserFromId($userId);
if (!$user) {
session_destroy();
return redirect(site_url());
}
$this->data["user"] = $user;
if ($this->data["user"]["status"] == "banned") {
$this->session->unset_userdata("VUID");
$this->session->set_flashdata("message", faucet_alert("danger", "You are banned!"));
return redirect(site_url("login"));
}
if (time() < $this->data["user"]["locked_until"] && current_url() !== site_url("locked")) {
return redirect(site_url("locked"));
}
if ($this->data["user"]["status"] == "firewall" && current_url() != site_url("firewall") && current_url() != site_url("firewall/verify")) {
return redirect(site_url("firewall"));
}
$this->data["countAvailableLinks"] = $this->m_core->countAllLinksView() - $this->m_core->countLinkHistory($user["id"]);
$this->data["countAvailableAds"] = $this->m_core->countAvailableAds($user["id"]);
$this->data["countAvailableTasks"] = $this->m_core->countAvailableTasks($user["id"]);
$this->data["notifications"] = $this->m_core->getNotifications($this->data["user"]["id"]);
$this->data["countUnreadNotification"] = $this->m_core->countUnreadNotifications($this->data["user"]["id"]);
$this->data["faucetWait"] = max(0, $user["last_claim"] + $this->data["settings"]["timer"] - time());
}
protected function render($template, $data) {
$contents = $this->load->view("user_template/" . $template, $data, true);
$data["contents"] = $contents;
$this->load->view("user_template/template", $data);
}
}
goto kIAnd;
ZDoQy: defined("BASEPATH") || die("No direct script access allowed");
goto w9DpT;
cK52Q: class Guess_Controller extends MY_Controller {
public function __construct() {
parent::__construct();
if ($this->data["settings"]["status"] == "off" && current_url() != site_url("maintenance")) {
return redirect(site_url("maintenance"));
}
if ($this->session->VUID) {
return redirect(site_url("dashboard"));
}
if (isset($_SERVER["HTTP_REFERER"]) && !isset($_COOKIE["Referral_Source"]) && filter_var($_SERVER["HTTP_REFERER"], FILTER_VALIDATE_URL)) {
$faucetHost = parse_url(base_url())["host"];
$referralHost = parse_url($_SERVER["HTTP_REFERER"])["host"];
if ($faucetHost != $referralHost) {
setcookie("Referral_Source", $this->db->escape_str($_SERVER["HTTP_REFERER"]), time() + 3600);
}
}
}
protected function render($template, $data) {
$contents = $this->load->view("user_template/" . $template, $data, true);
$data["contents"] = $contents;
$this->load->view("user_template/template", $data);
}
}
goto mogFx;
mogFx: class Admin_Controller extends MY_Controller {
public function __construct() {
parent::__construct();
$this->load->model(array("m_admin", "m_links", "m_account", "m_deposit"));
$this->load->helper("date");
if (current_url() != site_url("admin") && current_url() != site_url("admin/auth/login")) {
if ($this->session->admin != NULL) {
if ($this->session->admin != md5($this->data["settings"]["username"] . "-" . $this->data["settings"]["password"])) {
$this->session->unset_userdata("admin");
return redirect(site_url("admin"));
}
}
else {
if (strpos(current_url(), "details")) {
return redirect(site_url());
}
return redirect(site_url("admin"));
}
}
else {
if ($this->session->admin != NULL) {
return redirect(site_url("admin/overview"));
}
}
}
protected function render($template, $data) {
$contents = $this->load->view("admin_template/" . $template, $data, true);
$data["contents"] = $contents;
$this->load->view("admin_template/template", $data);
}
}
goto aBhNY;
kIAnd:
© 2023 Quttera Ltd. All rights reserved.