Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x65q\x6fzn\x76\x67p"] = "\x72\x65\x74u..
Decoded Output download
<?php
${"GLOBALS"}["zeqoznvgp"] = "return";
${"GLOBALS"}["qhopwqrycvj"] = "resultPas";
${"GLOBALS"}["tldxlen"] = "newPassword";
${"GLOBALS"}["ihlwmti"] = "active";
${"GLOBALS"}["qfzpfxuba"] = "fromDate";
${"GLOBALS"}["cpryclyfsii"] = "toDate";
${"GLOBALS"}["fmlqkipj"] = "userInfo";
${"GLOBALS"}["ilsnvqcl"] = "status";
${"GLOBALS"}["vtptcviokw"] = "userId";
${"GLOBALS"}["wqqyvgibui"] = "isAdmin";
${"GLOBALS"}["jcdudlk"] = "mobile";
${"GLOBALS"}["flcebpswgqr"] = "password";
${"GLOBALS"}["fpgifawoitv"] = "roleId";
${"GLOBALS"}["wplhvkm"] = "name";
${"GLOBALS"}["bnsuos"] = "email";
${"GLOBALS"}["lltvqv"] = "result";
${"GLOBALS"}["eyfpvjo"] = "data";
${"GLOBALS"}["ngcqvyunvcc"] = "returns";
${"GLOBALS"}["eiqmencq"] = "count";
${"GLOBALS"}["drwtqbdei"] = "searchText";
if (!defined("BASEPATH"))
exit("No direct script access allowed");
require APPPATH . "/libraries/BaseController.php";
class User extends BaseController
{
public function __construct()
{
parent::__construct();
$this->load->model("user_model");
$this->isLoggedIn();
}
public function index()
{
$this->global["pageTitle"] = " Dashboard";
$this->loadViews("general/dashboard", $this->global, NULL, NULL);
}
function userListing()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$leyjxqbf = "returns";
${"GLOBALS"}["uvnhsoed"] = "count";
${"GLOBALS"}["qxmidqvx"] = "returns";
${"GLOBALS"}["qtbrlb"] = "data";
$wfsfqholvq = "data";
$xpgeeobpbhu = "searchText";
${"GLOBALS"}["mvsgvrtgokg"] = "searchText";
${$xpgeeobpbhu} = "";
if (!empty($this->input->post("searchText"))) {
${${"GLOBALS"}["drwtqbdei"]} = $this->security->xss_clean($this->input->post("searchText"));
}
${$wfsfqholvq}["searchText"] = ${${"GLOBALS"}["mvsgvrtgokg"]};
$this->load->library("pagination");
${${"GLOBALS"}["eiqmencq"]} = $this->user_model->userListingCount(${${"GLOBALS"}["drwtqbdei"]});
${$leyjxqbf} = $this->paginationCompress("userListing/", ${${"GLOBALS"}["uvnhsoed"]}, 10);
${${"GLOBALS"}["qtbrlb"]}["userRecords"] = $this->user_model->userListing(${${"GLOBALS"}["drwtqbdei"]}, ${${"GLOBALS"}["ngcqvyunvcc"]}["page"], ${${"GLOBALS"}["qxmidqvx"]}["segment"]);
$this->global["pageTitle"] = " Admins";
$this->loadViews("users/users", $this->global, ${${"GLOBALS"}["eyfpvjo"]}, NULL);
}
}
function addNew()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->model("user_model");
$wkkviyomf = "data";
${${"GLOBALS"}["eyfpvjo"]}["roles"] = $this->user_model->getUserRoles();
$this->global["pageTitle"] = " Add New User";
$this->loadViews("users/addNew", $this->global, ${$wkkviyomf}, NULL);
}
}
function checkEmailExists()
{
${"GLOBALS"}["lrwduina"] = "userId";
$bokqlfq = "result";
${"GLOBALS"}["xccuxxqgrek"] = "email";
${"GLOBALS"}["dvhopgxq"] = "userId";
${${"GLOBALS"}["lrwduina"]} = $this->input->post("userId");
${${"GLOBALS"}["xccuxxqgrek"]} = $this->input->post("email");
if (empty(${${"GLOBALS"}["dvhopgxq"]})) {
$eyoztiqjvfcy = "email";
${${"GLOBALS"}["lltvqv"]} = $this->user_model->checkEmailExists(${$eyoztiqjvfcy});
} else {
$rfvbpvn = "result";
${"GLOBALS"}["fyeqez"] = "userId";
${$rfvbpvn} = $this->user_model->checkEmailExists(${${"GLOBALS"}["bnsuos"]}, ${${"GLOBALS"}["fyeqez"]});
}
if (empty(${$bokqlfq})) {
echo ("true");
} else {
echo ("false");
}
}
function addNewUser()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->library("form_validation");
$this->form_validation->set_rules("fname", "Full Name", "trim|required|max_length[128]");
$this->form_validation->set_rules("email", "Email", "trim|required|valid_email|max_length[128]");
$this->form_validation->set_rules("password", "Password", "required|max_length[20]");
$this->form_validation->set_rules("cpassword", "Confirm Password", "trim|required|matches[password]|max_length[20]");
$this->form_validation->set_rules("role", "Role", "trim|required|numeric");
$this->form_validation->set_rules("mobile", "Mobile Number", "required|min_length[11]");
if ($this->form_validation->run() == FALSE) {
$this->addNew();
} else {
${"GLOBALS"}["zxybqlwyrmsb"] = "name";
$kigdyhw = "isAdmin";
$rmgwstbfvvpb = "mobile";
$pvskmwbco = "userInfo";
${${"GLOBALS"}["wplhvkm"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("fname"))));
$elkbqeomb = "email";
${$elkbqeomb} = strtolower($this->security->xss_clean($this->input->post("email")));
$mywirki = "password";
${$mywirki} = $this->input->post("password");
${${"GLOBALS"}["fpgifawoitv"]} = $this->input->post("role");
$mzpfkpvt = "result";
${$rmgwstbfvvpb} = $this->security->xss_clean($this->input->post("mobile"));
${$kigdyhw} = $this->input->post("isAdmin");
${$pvskmwbco} = array(
"email" => ${${"GLOBALS"}["bnsuos"]},
"password" => getHashedPassword(${${"GLOBALS"}["flcebpswgqr"]}),
"roleId" => ${${"GLOBALS"}["fpgifawoitv"]},
"name" => ${${"GLOBALS"}["zxybqlwyrmsb"]},
"mobile" => ${${"GLOBALS"}["jcdudlk"]},
"status" => 1,
"isAdmin" => ${${"GLOBALS"}["wqqyvgibui"]},
"createdBy" => $this->vendorId,
"createdDtm" => date("Y-m-d H:i:s")
);
${"GLOBALS"}["tusjyscpfm"] = "userInfo";
$this->load->model("user_model");
${${"GLOBALS"}["lltvqv"]} = $this->user_model->addNewUser(${${"GLOBALS"}["tusjyscpfm"]});
if (${$mzpfkpvt} > 0) {
$this->session->set_flashdata("success", "Success !! Admin Created");
} else {
$this->session->set_flashdata("error", "Admin Create Failed");
}
redirect("addNew");
}
}
}
function editOld($userId = NULL)
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
${"GLOBALS"}["pjguycn"] = "userId";
$tjfljqz = "data";
$eftfhdv = "data";
if (${${"GLOBALS"}["vtptcviokw"]} == null) {
redirect("userListing");
}
${${"GLOBALS"}["eyfpvjo"]}["roles"] = $this->user_model->getUserRoles();
${$tjfljqz}["userInfo"] = $this->user_model->getUserInfo(${${"GLOBALS"}["pjguycn"]});
$this->global["pageTitle"] = " Edit User";
$this->loadViews("users/editOld", $this->global, ${$eftfhdv}, NULL);
}
}
function editUser()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->library("form_validation");
${"GLOBALS"}["sucgejf"] = "userId";
${${"GLOBALS"}["sucgejf"]} = $this->input->post("userId");
$this->form_validation->set_rules("fname", "Full Name", "trim|required|max_length[128]");
$this->form_validation->set_rules("email", "Email", "trim|required|valid_email|max_length[128]");
$this->form_validation->set_rules("password", "Password", "matches[cpassword]|max_length[20]");
$this->form_validation->set_rules("cpassword", "Confirm Password", "matches[password]|max_length[20]");
$this->form_validation->set_rules("role", "Role", "trim|required|numeric");
$this->form_validation->set_rules("mobile", "Mobile Number", "required|min_length[10]");
$this->form_validation->set_rules("status", "Status", "required");
if ($this->form_validation->run() == FALSE) {
$this->editOld(${${"GLOBALS"}["vtptcviokw"]});
} else {
${${"GLOBALS"}["wplhvkm"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("fname"))));
${${"GLOBALS"}["bnsuos"]} = strtolower($this->security->xss_clean($this->input->post("email")));
${${"GLOBALS"}["flcebpswgqr"]} = $this->input->post("password");
$yxrwjyr = "mobile";
${${"GLOBALS"}["fpgifawoitv"]} = $this->input->post("role");
$tideubv = "isAdmin";
${${"GLOBALS"}["ilsnvqcl"]} = $this->input->post("status");
${$yxrwjyr} = $this->security->xss_clean($this->input->post("mobile"));
${$tideubv} = $this->input->post("isAdmin");
$hcndzwld = "password";
$ssqzccit = "result";
${${"GLOBALS"}["fmlqkipj"]} = array();
$gpdxsfpgw = "result";
if (empty(${$hcndzwld})) {
${"GLOBALS"}["obklwhruo"] = "userInfo";
$fodqvdhabpk = "name";
${"GLOBALS"}["ckqyjunf"] = "isAdmin";
${"GLOBALS"}["pgassxelajgv"] = "status";
${${"GLOBALS"}["obklwhruo"]} = array(
"email" => ${${"GLOBALS"}["bnsuos"]},
"roleId" => ${${"GLOBALS"}["fpgifawoitv"]},
"status" => ${${"GLOBALS"}["pgassxelajgv"]},
"name" => ${$fodqvdhabpk},
"mobile" => ${${"GLOBALS"}["jcdudlk"]},
"isAdmin" => ${${"GLOBALS"}["ckqyjunf"]},
"updatedBy" => $this->vendorId,
"updatedDtm" => date("Y-m-d H:i:s")
);
} else {
$dbhstval = "mobile";
$dljkqzg = "isAdmin";
$nvafkcjcd = "password";
$cigdwtgiao = "email";
${"GLOBALS"}["gvcxijoa"] = "name";
$lmrepzxry = "userInfo";
${$lmrepzxry} = array(
"email" => ${$cigdwtgiao},
"password" => getHashedPassword(${$nvafkcjcd}),
"roleId" => ${${"GLOBALS"}["fpgifawoitv"]},
"status" => ${${"GLOBALS"}["ilsnvqcl"]},
"name" => ucwords(${${"GLOBALS"}["gvcxijoa"]}),
"mobile" => ${$dbhstval},
"isAdmin" => ${$dljkqzg},
"updatedBy" => $this->vendorId,
"updatedDtm" => date("Y-m-d H:i:s")
);
}
${$gpdxsfpgw} = $this->user_model->editUser(${${"GLOBALS"}["fmlqkipj"]}, ${${"GLOBALS"}["vtptcviokw"]});
if (${$ssqzccit} == true) {
$this->session->set_flashdata("success", "Success !! Admin Updated");
} else {
$this->session->set_flashdata("error", "Admin Update Failed");
}
redirect("userListing");
}
}
}
function deleteUser()
{
if (!$this->isAdmin()) {
echo (json_encode(array(
"status" => "access"
)));
} else {
$bwrtuppcoyiy = "userId";
${"GLOBALS"}["tybplvgtulo"] = "userInfo";
$sxyzxse = "userInfo";
$kzrrxqhujdnk = "result";
${${"GLOBALS"}["vtptcviokw"]} = $this->input->post("userId");
${$sxyzxse} = array(
"isDeleted" => 1,
"updatedBy" => $this->vendorId,
"updatedDtm" => date("Y-m-d H:i:s")
);
${${"GLOBALS"}["lltvqv"]} = $this->user_model->deleteUser(${$bwrtuppcoyiy}, ${${"GLOBALS"}["tybplvgtulo"]});
if (${$kzrrxqhujdnk} > 0) {
echo (json_encode(array(
"status" => TRUE
)));
} else {
echo (json_encode(array(
"status" => FALSE
)));
}
}
}
function pageNotFound()
{
$this->global["pageTitle"] = " 404 - Page Not Found";
$this->loadViews("general/404", $this->global, NULL, NULL);
}
function loginHistoy($userId = NULL)
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
${"GLOBALS"}["xasrzdha"] = "userId";
$sseyrpybt = "userId";
${"GLOBALS"}["hrgdbqcbuti"] = "userId";
${"GLOBALS"}["uhxuquf"] = "userId";
$hybbraqlb = "returns";
$emgphkgntw = "fromDate";
${"GLOBALS"}["pvasdcht"] = "data";
${${"GLOBALS"}["uhxuquf"]} = (${${"GLOBALS"}["xasrzdha"]} == NULL ? 0 : ${${"GLOBALS"}["hrgdbqcbuti"]});
${${"GLOBALS"}["drwtqbdei"]} = $this->input->post("searchText");
${"GLOBALS"}["ycoccdxi"] = "data";
${"GLOBALS"}["younousokh"] = "userId";
${$emgphkgntw} = $this->input->post("fromDate");
$xtvdkunooceb = "toDate";
${"GLOBALS"}["oiqtjcjecg"] = "returns";
${${"GLOBALS"}["cpryclyfsii"]} = $this->input->post("toDate");
$tlidezybjqi = "userId";
$rtqfttmkvym = "searchText";
${${"GLOBALS"}["pvasdcht"]}["userInfo"] = $this->user_model->getUserInfoById(${${"GLOBALS"}["vtptcviokw"]});
${${"GLOBALS"}["eyfpvjo"]}["searchText"] = ${${"GLOBALS"}["drwtqbdei"]};
${${"GLOBALS"}["ycoccdxi"]}["fromDate"] = ${${"GLOBALS"}["qfzpfxuba"]};
$yhwmnlbax = "returns";
${${"GLOBALS"}["eyfpvjo"]}["toDate"] = ${$xtvdkunooceb};
${"GLOBALS"}["jdlwoxl"] = "fromDate";
$this->load->library("pagination");
${${"GLOBALS"}["eiqmencq"]} = $this->user_model->loginHistoryCount(${$tlidezybjqi}, ${${"GLOBALS"}["drwtqbdei"]}, ${${"GLOBALS"}["jdlwoxl"]}, ${${"GLOBALS"}["cpryclyfsii"]});
${$hybbraqlb} = $this->paginationCompress("login-history/" . ${$sseyrpybt} . "/", ${${"GLOBALS"}["eiqmencq"]}, 10, 3);
${${"GLOBALS"}["eyfpvjo"]}["userRecords"] = $this->user_model->loginHistory(${${"GLOBALS"}["younousokh"]}, ${$rtqfttmkvym}, ${${"GLOBALS"}["qfzpfxuba"]}, ${${"GLOBALS"}["cpryclyfsii"]}, ${$yhwmnlbax}["page"], ${${"GLOBALS"}["oiqtjcjecg"]}["segment"]);
$this->global["pageTitle"] = " User Login History";
$this->loadViews("users/loginHistory", $this->global, ${${"GLOBALS"}["eyfpvjo"]}, NULL);
}
}
function profile($active = "details")
{
${"GLOBALS"}["pbguvetagb"] = "data";
$hyjxdj = "active";
${"GLOBALS"}["xoqifehmgb"] = "data";
${${"GLOBALS"}["eyfpvjo"]}["userInfo"] = $this->user_model->getUserInfoWithRole($this->vendorId);
${${"GLOBALS"}["pbguvetagb"]}["active"] = ${$hyjxdj};
$this->global["pageTitle"] = ${${"GLOBALS"}["ihlwmti"]} == "details" ? " My Profile" : " Change Password";
$this->loadViews("users/profile", $this->global, ${${"GLOBALS"}["xoqifehmgb"]}, NULL);
}
function profileUpdate($active = "details")
{
$this->load->library("form_validation");
$this->form_validation->set_rules("fname", "Full Name", "trim|required|max_length[128]");
$this->form_validation->set_rules("mobile", "Mobile Number", "required|min_length[10]");
$this->form_validation->set_rules("email", "Email", "trim|required|valid_email|max_length[128]|callback_emailExists");
if ($this->form_validation->run() == FALSE) {
${"GLOBALS"}["ylhvujfis"] = "active";
$this->profile(${${"GLOBALS"}["ylhvujfis"]});
} else {
$rpidwwxgh = "email";
${"GLOBALS"}["nuuwvvqoe"] = "result";
${"GLOBALS"}["tammohxyk"] = "name";
$zslyrufch = "mobile";
${"GLOBALS"}["jhhckekx"] = "userInfo";
${"GLOBALS"}["bjyfoqskj"] = "mobile";
${${"GLOBALS"}["tammohxyk"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("fname"))));
${${"GLOBALS"}["bjyfoqskj"]} = $this->security->xss_clean($this->input->post("mobile"));
${$rpidwwxgh} = strtolower($this->security->xss_clean($this->input->post("email")));
${${"GLOBALS"}["jhhckekx"]} = array(
"name" => ${${"GLOBALS"}["wplhvkm"]},
"email" => ${${"GLOBALS"}["bnsuos"]},
"mobile" => ${$zslyrufch},
"updatedBy" => $this->vendorId,
"updatedDtm" => date("Y-m-d H:i:s")
);
${"GLOBALS"}["lhilpagptrcv"] = "active";
${${"GLOBALS"}["nuuwvvqoe"]} = $this->user_model->editUser(${${"GLOBALS"}["fmlqkipj"]}, $this->vendorId);
if (${${"GLOBALS"}["lltvqv"]} == true) {
${"GLOBALS"}["uahtnvt"] = "name";
$this->session->set_userdata("name", ${${"GLOBALS"}["uahtnvt"]});
$this->session->set_flashdata("success", "Success !! Profile Updated");
} else {
$this->session->set_flashdata("error", "Profile Update Failed");
}
redirect("profile/" . ${${"GLOBALS"}["lhilpagptrcv"]});
}
}
function changePassword($active = "changepass")
{
$this->load->library("form_validation");
$this->form_validation->set_rules("oldPassword", "Old password", "required|max_length[20]");
$this->form_validation->set_rules("newPassword", "New password", "required|max_length[20]");
$this->form_validation->set_rules("cNewPassword", "Confirm new password", "required|matches[newPassword]|max_length[20]");
if ($this->form_validation->run() == FALSE) {
$this->profile(${${"GLOBALS"}["ihlwmti"]});
} else {
$rmlyvnx = "oldPassword";
$awntrspulxo = "oldPassword";
${$awntrspulxo} = $this->input->post("oldPassword");
${${"GLOBALS"}["tldxlen"]} = $this->input->post("newPassword");
${${"GLOBALS"}["qhopwqrycvj"]} = $this->user_model->matchOldPassword($this->vendorId, ${$rmlyvnx});
if (empty(${${"GLOBALS"}["qhopwqrycvj"]})) {
${"GLOBALS"}["uyjgmsx"] = "active";
$this->session->set_flashdata("nomatch", "Your old password is not correct");
redirect("profile/" . ${${"GLOBALS"}["uyjgmsx"]});
} else {
${"GLOBALS"}["njofvtrqh"] = "usersData";
$tmhbrpqvypxr = "active";
${${"GLOBALS"}["njofvtrqh"]} = array(
"password" => getHashedPassword(${${"GLOBALS"}["tldxlen"]}),
"updatedBy" => $this->vendorId,
"updatedDtm" => date("Y-m-d H:i:s")
);
${"GLOBALS"}["wcpchyokdmf"] = "usersData";
${${"GLOBALS"}["lltvqv"]} = $this->user_model->changePassword($this->vendorId, ${${"GLOBALS"}["wcpchyokdmf"]});
if (${${"GLOBALS"}["lltvqv"]} > 0) {
$this->session->set_flashdata("success", "Success !! Password Updated");
} else {
$this->session->set_flashdata("error", "Password Update Failed");
}
redirect("profile/" . ${$tmhbrpqvypxr});
}
}
}
function emailExists($email)
{
${${"GLOBALS"}["vtptcviokw"]} = $this->vendorId;
${"GLOBALS"}["adwydkldu"] = "return";
${"GLOBALS"}["rieprsreehp"] = "result";
${"GLOBALS"}["djsznoekpc"] = "return";
${${"GLOBALS"}["djsznoekpc"]} = false;
if (empty(${${"GLOBALS"}["vtptcviokw"]})) {
$btbasox = "result";
${"GLOBALS"}["ugwabfd"] = "email";
${$btbasox} = $this->user_model->checkEmailExists(${${"GLOBALS"}["ugwabfd"]});
} else {
${"GLOBALS"}["mesqqioqpv"] = "result";
$jdfwgjbq = "email";
${${"GLOBALS"}["mesqqioqpv"]} = $this->user_model->checkEmailExists(${$jdfwgjbq}, ${${"GLOBALS"}["vtptcviokw"]});
}
if (empty(${${"GLOBALS"}["rieprsreehp"]})) {
${${"GLOBALS"}["zeqoznvgp"]} = true;
} else {
$this->form_validation->set_message("emailExists", "The {field} already taken");
${${"GLOBALS"}["zeqoznvgp"]} = false;
}
return ${${"GLOBALS"}["adwydkldu"]};
}
}
?>
Did this file decode correctly?
Original Code
<?php
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x65q\x6fzn\x76\x67p"] = "\x72\x65\x74urn";
${"GL\x4f\x42\x41\x4cS"}["q\x68o\x70\x77\x71\x72y\x63\x76j"] = "r\x65\x73\x75\x6c\x74\x50\x61\x73";
${"\x47\x4c\x4fB\x41\x4c\x53"}["t\x6cdx\x6ce\x6e"] = "\x6eew\x50\x61\x73\x73\x77\x6f\x72\x64";
${"\x47\x4c\x4fB\x41LS"}["\x69\x68\x6c\x77\x6d\x74i"] = "\x61\x63\x74\x69\x76e";
${"GL\x4f\x42ALS"}["\x71\x66z\x70\x66\x78\x75\x62a"] = "\x66r\x6f\x6dDa\x74\x65";
${"\x47\x4cOB\x41LS"}["c\x70\x72\x79cl\x79f\x73i\x69"] = "\x74o\x44\x61\x74\x65";
${"\x47LO\x42AL\x53"}["\x66\x6dl\x71\x6b\x69\x70j"] = "\x75\x73er\x49\x6e\x66\x6f";
${"\x47\x4cOBALS"}["i\x6c\x73nvqc\x6c"] = "\x73\x74\x61\x74\x75s";
${"G\x4cOB\x41L\x53"}["\x76\x74\x70\x74\x63v\x69o\x6b\x77"] = "us\x65\x72\x49\x64";
${"G\x4cO\x42\x41LS"}["\x77q\x71y\x76g\x69\x62u\x69"] = "\x69\x73\x41\x64\x6di\x6e";
${"G\x4c\x4f\x42\x41LS"}["j\x63\x64\x75\x64\x6c\x6b"] = "m\x6f\x62\x69l\x65";
${"GLO\x42A\x4cS"}["\x66\x6c\x63e\x62p\x73\x77g\x71\x72"] = "\x70as\x73w\x6f\x72d";
${"G\x4c\x4fB\x41\x4cS"}["\x66p\x67\x69f\x61\x77\x6f\x69\x74\x76"] = "\x72ol\x65\x49\x64";
${"GL\x4fB\x41\x4cS"}["wp\x6chv\x6b\x6d"] = "n\x61me";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x6es\x75os"] = "\x65\x6d\x61\x69\x6c";
${"GL\x4fBA\x4cS"}["\x6clt\x76q\x76"] = "\x72\x65s\x75\x6ct";
${"G\x4c\x4fB\x41\x4c\x53"}["e\x79f\x70v\x6ao"] = "\x64\x61\x74a";
${"\x47\x4cOBA\x4c\x53"}["\x6e\x67\x63\x71\x76\x79u\x6evcc"] = "r\x65\x74\x75\x72\x6e\x73";
${"\x47\x4c\x4fB\x41L\x53"}["\x65i\x71\x6de\x6ecq"] = "\x63\x6fu\x6e\x74";
${"\x47\x4cOB\x41L\x53"}["\x64\x72w\x74q\x62\x64ei"] = "\x73ea\x72\x63h\x54\x65\x78t";
if (!defined("BAS\x45P\x41\x54\x48"))
exit("\x4eo\x20di\x72\x65\x63t \x73c\x72\x69\x70\x74\x20\x61\x63cess\x20a\x6cl\x6f\x77ed");
require APPPATH . "/lib\x72\x61\x72i\x65\x73/\x42as\x65\x43ontr\x6f\x6c\x6c\x65\x72\x2e\x70h\x70";
class User extends BaseController
{
public function __construct()
{
parent::__construct();
$this->load->model("\x75\x73\x65r\x5fm\x6f\x64\x65l");
$this->isLoggedIn();
}
public function index()
{
$this->global["\x70\x61\x67e\x54it\x6c\x65"] = " \x44\x61s\x68\x62o\x61rd";
$this->loadViews("g\x65\x6e\x65\x72al/d\x61s\x68\x62\x6fard", $this->global, NULL, NULL);
}
function userListing()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$leyjxqbf = "\x72e\x74\x75\x72\x6e\x73";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x75\x76\x6eh\x73\x6f\x65\x64"] = "co\x75n\x74";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71x\x6d\x69d\x71\x76\x78"] = "r\x65\x74\x75\x72n\x73";
${"\x47\x4cO\x42\x41LS"}["q\x74\x62r\x6c\x62"] = "\x64\x61\x74\x61";
$wfsfqholvq = "\x64\x61\x74\x61";
$xpgeeobpbhu = "\x73\x65\x61\x72\x63\x68T\x65\x78\x74";
${"\x47\x4cO\x42ALS"}["m\x76s\x67\x76\x72\x74\x67\x6fk\x67"] = "\x73e\x61r\x63\x68\x54\x65x\x74";
${$xpgeeobpbhu} = "";
if (!empty($this->input->post("\x73e\x61r\x63\x68Te\x78\x74"))) {
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x64r\x77\x74q\x62\x64e\x69"]} = $this->security->xss_clean($this->input->post("se\x61\x72\x63h\x54e\x78\x74"));
}
${$wfsfqholvq}["s\x65\x61\x72\x63\x68T\x65x\x74"] = ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x76\x73\x67\x76rt\x67o\x6b\x67"]};
$this->load->library("\x70\x61gi\x6e\x61\x74\x69\x6fn");
${${"\x47L\x4f\x42\x41\x4c\x53"}["e\x69\x71\x6de\x6ecq"]} = $this->user_model->userListingCount(${${"\x47L\x4fB\x41\x4c\x53"}["\x64r\x77\x74\x71\x62\x64\x65\x69"]});
${$leyjxqbf} = $this->paginationCompress("\x75s\x65\x72L\x69st\x69\x6e\x67/", ${${"G\x4c\x4f\x42AL\x53"}["\x75\x76n\x68\x73\x6fe\x64"]}, 10);
${${"\x47\x4cO\x42\x41LS"}["\x71t\x62r\x6c\x62"]}["\x75se\x72\x52\x65c\x6f\x72\x64\x73"] = $this->user_model->userListing(${${"\x47\x4c\x4f\x42\x41LS"}["\x64\x72\x77\x74\x71\x62\x64ei"]}, ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x67\x63\x71\x76\x79\x75n\x76\x63\x63"]}["pa\x67\x65"], ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x71\x78m\x69\x64qv\x78"]}["\x73\x65gme\x6et"]);
$this->global["\x70\x61\x67e\x54i\x74l\x65"] = "\x20Admin\x73";
$this->loadViews("\x75s\x65rs/u\x73er\x73", $this->global, ${${"G\x4c\x4f\x42A\x4c\x53"}["\x65yfp\x76\x6ao"]}, NULL);
}
}
function addNew()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->model("\x75\x73\x65r\x5fm\x6f\x64\x65l");
$wkkviyomf = "d\x61\x74\x61";
${${"\x47L\x4fB\x41L\x53"}["\x65\x79\x66\x70\x76j\x6f"]}["\x72o\x6ce\x73"] = $this->user_model->getUserRoles();
$this->global["\x70\x61g\x65T\x69\x74le"] = "\x20\x41d\x64 N\x65\x77 U\x73\x65\x72";
$this->loadViews("u\x73ers/\x61d\x64\x4e\x65\x77", $this->global, ${$wkkviyomf}, NULL);
}
}
function checkEmailExists()
{
${"\x47\x4cO\x42\x41LS"}["lr\x77\x64\x75\x69\x6e\x61"] = "\x75\x73e\x72\x49d";
$bokqlfq = "\x72e\x73\x75\x6ct";
${"G\x4c\x4fBAL\x53"}["\x78cc\x75x\x78\x71\x67r\x65\x6b"] = "e\x6d\x61i\x6c";
${"\x47\x4c\x4fBA\x4cS"}["\x64\x76\x68o\x70gx\x71"] = "\x75\x73\x65\x72\x49\x64";
${${"\x47L\x4f\x42\x41LS"}["\x6crw\x64\x75i\x6ea"]} = $this->input->post("u\x73e\x72I\x64");
${${"\x47LOB\x41\x4c\x53"}["\x78c\x63\x75\x78x\x71\x67\x72e\x6b"]} = $this->input->post("\x65\x6da\x69\x6c");
if (empty(${${"\x47\x4cO\x42\x41\x4c\x53"}["d\x76\x68o\x70\x67\x78\x71"]})) {
$eyoztiqjvfcy = "e\x6d\x61i\x6c";
${${"G\x4c\x4f\x42\x41L\x53"}["\x6cltvqv"]} = $this->user_model->checkEmailExists(${$eyoztiqjvfcy});
} else {
$rfvbpvn = "\x72\x65\x73ul\x74";
${"G\x4cOB\x41\x4c\x53"}["f\x79\x65\x71e\x7a"] = "\x75ser\x49d";
${$rfvbpvn} = $this->user_model->checkEmailExists(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x6e\x73\x75\x6fs"]}, ${${"\x47\x4c\x4fB\x41\x4c\x53"}["fy\x65q\x65\x7a"]});
}
if (empty(${$bokqlfq})) {
echo ("tru\x65");
} else {
echo ("f\x61\x6c\x73\x65");
}
}
function addNewUser()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->library("f\x6fr\x6d_\x76al\x69\x64a\x74io\x6e");
$this->form_validation->set_rules("\x66\x6eame", "Full \x4ea\x6de", "\x74ri\x6d|requir\x65\x64|\x6da\x78_l\x65ngt\x68[\x31\x32\x38]");
$this->form_validation->set_rules("e\x6d\x61il", "E\x6dai\x6c", "t\x72\x69m|req\x75\x69re\x64|\x76\x61l\x69d\x5f\x65\x6da\x69l|max_l\x65n\x67t\x68[1\x32\x38]");
$this->form_validation->set_rules("\x70ass\x77\x6f\x72d", "P\x61\x73\x73\x77o\x72\x64", "\x72equi\x72\x65\x64|\x6d\x61\x78_le\x6e\x67\x74\x68[\x32\x30]");
$this->form_validation->set_rules("\x63\x70a\x73sword", "Co\x6e\x66i\x72\x6d P\x61\x73sw\x6f\x72d", "\x74r\x69\x6d|\x72e\x71ui\x72\x65\x64|m\x61\x74c\x68es[p\x61s\x73\x77o\x72d]|\x6d\x61x_\x6ce\x6egt\x68[20]");
$this->form_validation->set_rules("ro\x6c\x65", "\x52o\x6c\x65", "t\x72\x69\x6d|r\x65\x71\x75i\x72\x65d|\x6eu\x6de\x72ic");
$this->form_validation->set_rules("\x6dobil\x65", "\x4d\x6f\x62\x69\x6c\x65 N\x75\x6dbe\x72", "\x72e\x71uire\x64|m\x69n\x5f\x6cen\x67th[\x31\x31]");
if ($this->form_validation->run() == FALSE) {
$this->addNew();
} else {
${"\x47\x4cOB\x41\x4c\x53"}["\x7ax\x79\x62q\x6c\x77\x79\x72msb"] = "\x6eam\x65";
$kigdyhw = "i\x73\x41d\x6d\x69\x6e";
$rmgwstbfvvpb = "\x6d\x6fbi\x6c\x65";
$pvskmwbco = "use\x72\x49n\x66\x6f";
${${"G\x4c\x4f\x42\x41LS"}["\x77\x70\x6chv\x6b\x6d"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("f\x6ea\x6de"))));
$elkbqeomb = "\x65m\x61\x69\x6c";
${$elkbqeomb} = strtolower($this->security->xss_clean($this->input->post("\x65\x6da\x69\x6c")));
$mywirki = "\x70\x61ssw\x6frd";
${$mywirki} = $this->input->post("\x70\x61s\x73\x77\x6f\x72d");
${${"\x47\x4c\x4fBA\x4c\x53"}["\x66\x70g\x69\x66\x61w\x6f\x69\x74v"]} = $this->input->post("r\x6f\x6c\x65");
$mzpfkpvt = "r\x65\x73\x75\x6c\x74";
${$rmgwstbfvvpb} = $this->security->xss_clean($this->input->post("mo\x62\x69l\x65"));
${$kigdyhw} = $this->input->post("\x69sAdmin");
${$pvskmwbco} = array(
"em\x61i\x6c" => ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x6es\x75\x6f\x73"]},
"\x70\x61ss\x77\x6f\x72\x64" => getHashedPassword(${${"\x47\x4c\x4fBA\x4c\x53"}["\x66\x6c\x63\x65bp\x73\x77\x67q\x72"]}),
"ro\x6c\x65\x49\x64" => ${${"\x47\x4cO\x42\x41\x4c\x53"}["f\x70g\x69\x66a\x77\x6f\x69t\x76"]},
"na\x6de" => ${${"\x47LO\x42\x41\x4cS"}["\x7ax\x79b\x71l\x77\x79r\x6d\x73\x62"]},
"\x6dob\x69\x6c\x65" => ${${"GL\x4f\x42\x41LS"}["j\x63\x64u\x64\x6c\x6b"]},
"\x73t\x61\x74us" => 1,
"\x69sAd\x6din" => ${${"\x47LO\x42\x41\x4c\x53"}["\x77q\x71\x79\x76\x67\x69\x62\x75i"]},
"crea\x74\x65dBy" => $this->vendorId,
"\x63\x72\x65a\x74\x65\x64\x44tm" => date("Y-m-\x64 H:\x69:\x73")
);
${"\x47L\x4fB\x41\x4c\x53"}["t\x75sj\x79\x73\x63\x70\x66m"] = "\x75s\x65\x72\x49\x6ef\x6f";
$this->load->model("\x75\x73e\x72_\x6d\x6f\x64e\x6c");
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6cl\x74\x76q\x76"]} = $this->user_model->addNewUser(${${"G\x4c\x4f\x42\x41L\x53"}["\x74\x75\x73\x6a\x79\x73\x63\x70\x66\x6d"]});
if (${$mzpfkpvt} > 0) {
$this->session->set_flashdata("s\x75c\x63es\x73", "\x53uccess \x21!\x20Admi\x6e\x20\x43\x72\x65a\x74ed");
} else {
$this->session->set_flashdata("\x65rro\x72", "\x41d\x6d\x69n Cr\x65\x61\x74e\x20\x46a\x69\x6ced");
}
redirect("\x61ddN\x65\x77");
}
}
}
function editOld($userId = NULL)
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
${"GL\x4fBA\x4cS"}["\x70\x6a\x67\x75\x79c\x6e"] = "\x75\x73\x65rI\x64";
$tjfljqz = "\x64ata";
$eftfhdv = "\x64\x61\x74\x61";
if (${${"\x47\x4c\x4fBA\x4cS"}["vtpt\x63\x76\x69ok\x77"]} == null) {
redirect("u\x73\x65\x72L\x69\x73t\x69\x6e\x67");
}
${${"\x47\x4cO\x42A\x4c\x53"}["\x65y\x66\x70vjo"]}["r\x6f\x6c\x65\x73"] = $this->user_model->getUserRoles();
${$tjfljqz}["u\x73\x65\x72I\x6efo"] = $this->user_model->getUserInfo(${${"\x47L\x4f\x42\x41\x4cS"}["pj\x67\x75\x79\x63\x6e"]});
$this->global["\x70\x61\x67\x65\x54\x69\x74le"] = "\x20\x45di\x74 \x55\x73er";
$this->loadViews("u\x73er\x73/e\x64\x69\x74Ol\x64", $this->global, ${$eftfhdv}, NULL);
}
}
function editUser()
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
$this->load->library("\x66orm\x5fva\x6c\x69da\x74i\x6f\x6e");
${"G\x4c\x4fB\x41\x4c\x53"}["\x73ucge\x6a\x66"] = "u\x73\x65r\x49d";
${${"GLO\x42A\x4c\x53"}["\x73\x75\x63\x67\x65\x6a\x66"]} = $this->input->post("\x75\x73\x65rI\x64");
$this->form_validation->set_rules("\x66\x6eam\x65", "\x46\x75ll \x4e\x61\x6de", "tr\x69\x6d|\x72\x65\x71\x75ired|ma\x78\x5fl\x65ng\x74h[12\x38]");
$this->form_validation->set_rules("ema\x69l", "\x45\x6dail", "tr\x69\x6d|re\x71\x75ir\x65\x64|\x76\x61lid_\x65m\x61\x69l|m\x61\x78\x5fl\x65ng\x74\x68[1\x328]");
$this->form_validation->set_rules("p\x61s\x73w\x6frd", "\x50assw\x6f\x72\x64", "m\x61t\x63h\x65\x73[cpass\x77ord]|\x6d\x61\x78\x5fl\x65ngth[\x32\x30]");
$this->form_validation->set_rules("\x63\x70\x61ss\x77\x6f\x72\x64", "\x43\x6fnfi\x72m\x20P\x61s\x73\x77o\x72d", "mat\x63h\x65s[p\x61ssw\x6f\x72\x64]|\x6d\x61x\x5f\x6c\x65n\x67t\x68[2\x30]");
$this->form_validation->set_rules("\x72o\x6c\x65", "\x52\x6fle", "\x74\x72im|re\x71ui\x72\x65d|\x6eu\x6deric");
$this->form_validation->set_rules("m\x6f\x62ile", "M\x6f\x62ile \x4eu\x6db\x65\x72", "re\x71uired|m\x69\x6e\x5f\x6c\x65ngt\x68[10]");
$this->form_validation->set_rules("\x73ta\x74u\x73", "S\x74\x61tus", "\x72e\x71\x75\x69r\x65d");
if ($this->form_validation->run() == FALSE) {
$this->editOld(${${"\x47\x4cO\x42\x41\x4cS"}["v\x74\x70t\x63v\x69o\x6bw"]});
} else {
${${"\x47\x4cO\x42A\x4c\x53"}["\x77p\x6c\x68\x76\x6b\x6d"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("\x66n\x61\x6d\x65"))));
${${"\x47LO\x42A\x4c\x53"}["\x62\x6e\x73u\x6f\x73"]} = strtolower($this->security->xss_clean($this->input->post("\x65mai\x6c")));
${${"\x47LO\x42AL\x53"}["\x66\x6c\x63e\x62p\x73\x77\x67q\x72"]} = $this->input->post("pass\x77\x6frd");
$yxrwjyr = "mob\x69\x6c\x65";
${${"\x47\x4c\x4f\x42A\x4cS"}["f\x70\x67\x69\x66\x61\x77\x6f\x69t\x76"]} = $this->input->post("\x72\x6fl\x65");
$tideubv = "\x69\x73\x41\x64m\x69n";
${${"GL\x4f\x42A\x4c\x53"}["\x69ls\x6e\x76\x71\x63l"]} = $this->input->post("\x73t\x61\x74u\x73");
${$yxrwjyr} = $this->security->xss_clean($this->input->post("\x6dob\x69l\x65"));
${$tideubv} = $this->input->post("is\x41\x64\x6di\x6e");
$hcndzwld = "\x70a\x73\x73wor\x64";
$ssqzccit = "\x72e\x73u\x6ct";
${${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x6dlq\x6b\x69\x70\x6a"]} = array();
$gpdxsfpgw = "\x72e\x73\x75\x6c\x74";
if (empty(${$hcndzwld})) {
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x62\x6bl\x77\x68r\x75o"] = "u\x73\x65\x72\x49\x6e\x66\x6f";
$fodqvdhabpk = "\x6e\x61me";
${"GL\x4f\x42\x41\x4cS"}["\x63k\x71\x79\x6au\x6e\x66"] = "\x69\x73\x41\x64m\x69\x6e";
${"\x47\x4c\x4fBA\x4c\x53"}["\x70\x67\x61\x73\x73\x78\x65\x6c\x61\x6a\x67\x76"] = "s\x74\x61\x74us";
${${"G\x4c\x4f\x42\x41LS"}["\x6f\x62\x6b\x6c\x77\x68\x72\x75\x6f"]} = array(
"\x65\x6d\x61\x69l" => ${${"\x47\x4c\x4f\x42ALS"}["\x62\x6es\x75\x6f\x73"]},
"ro\x6ce\x49d" => ${${"\x47\x4c\x4f\x42A\x4cS"}["f\x70g\x69\x66a\x77\x6fi\x74v"]},
"\x73t\x61\x74\x75\x73" => ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70g\x61\x73s\x78\x65l\x61\x6ag\x76"]},
"\x6e\x61\x6de" => ${$fodqvdhabpk},
"\x6d\x6fbi\x6c\x65" => ${${"\x47LO\x42\x41\x4c\x53"}["\x6acdu\x64\x6ck"]},
"\x69sAd\x6d\x69n" => ${${"\x47LO\x42\x41LS"}["c\x6b\x71\x79j\x75nf"]},
"u\x70\x64\x61t\x65\x64\x42\x79" => $this->vendorId,
"\x75pdatedD\x74\x6d" => date("Y-m-d H:i:s")
);
} else {
$dbhstval = "m\x6fb\x69le";
$dljkqzg = "\x69sAd\x6di\x6e";
$nvafkcjcd = "\x70as\x73w\x6fr\x64";
$cigdwtgiao = "em\x61\x69\x6c";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x76\x63\x78ijo\x61"] = "\x6e\x61me";
$lmrepzxry = "\x75\x73e\x72\x49n\x66\x6f";
${$lmrepzxry} = array(
"\x65\x6d\x61\x69l" => ${$cigdwtgiao},
"\x70\x61ss\x77or\x64" => getHashedPassword(${$nvafkcjcd}),
"r\x6fleId" => ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x66p\x67\x69\x66a\x77\x6f\x69\x74\x76"]},
"s\x74a\x74u\x73" => ${${"G\x4cOBA\x4c\x53"}["\x69\x6c\x73\x6e\x76\x71\x63\x6c"]},
"\x6eam\x65" => ucwords(${${"\x47L\x4f\x42\x41L\x53"}["\x67\x76\x63\x78i\x6a\x6fa"]}),
"\x6do\x62\x69l\x65" => ${$dbhstval},
"\x69sAdmi\x6e" => ${$dljkqzg},
"\x75p\x64a\x74ed\x42y" => $this->vendorId,
"\x75p\x64a\x74edD\x74\x6d" => date("\x59-\x6d-\x64 H:\x69:\x73")
);
}
${$gpdxsfpgw} = $this->user_model->editUser(${${"G\x4c\x4f\x42\x41L\x53"}["f\x6d\x6c\x71k\x69\x70\x6a"]}, ${${"GLO\x42A\x4c\x53"}["v\x74\x70t\x63\x76\x69\x6fkw"]});
if (${$ssqzccit} == true) {
$this->session->set_flashdata("s\x75\x63ce\x73s", "S\x75c\x63e\x73s\x20\x21\x21\x20Ad\x6d\x69\x6e\x20Upd\x61\x74\x65\x64");
} else {
$this->session->set_flashdata("\x65\x72\x72or", "A\x64min\x20\x55pdate\x20F\x61\x69\x6ce\x64");
}
redirect("user\x4ci\x73\x74i\x6eg");
}
}
}
function deleteUser()
{
if (!$this->isAdmin()) {
echo (json_encode(array(
"\x73\x74atus" => "\x61cce\x73\x73"
)));
} else {
$bwrtuppcoyiy = "\x75s\x65\x72Id";
${"\x47L\x4fBA\x4cS"}["\x74\x79\x62p\x6cvgt\x75\x6c\x6f"] = "\x75\x73e\x72Info";
$sxyzxse = "\x75s\x65r\x49\x6e\x66\x6f";
$kzrrxqhujdnk = "\x72\x65\x73\x75\x6c\x74";
${${"\x47\x4cOB\x41LS"}["\x76\x74\x70\x74c\x76i\x6f\x6b\x77"]} = $this->input->post("us\x65r\x49d");
${$sxyzxse} = array(
"\x69\x73Dele\x74e\x64" => 1,
"\x75\x70da\x74e\x64B\x79" => $this->vendorId,
"\x75\x70dat\x65d\x44\x74m" => date("\x59-m-\x64 H:i:s")
);
${${"GL\x4f\x42\x41\x4cS"}["l\x6c\x74\x76\x71v"]} = $this->user_model->deleteUser(${$bwrtuppcoyiy}, ${${"\x47\x4cOB\x41\x4c\x53"}["\x74y\x62\x70\x6c\x76\x67\x74\x75\x6co"]});
if (${$kzrrxqhujdnk} > 0) {
echo (json_encode(array(
"\x73\x74atu\x73" => TRUE
)));
} else {
echo (json_encode(array(
"st\x61tus" => FALSE
)));
}
}
}
function pageNotFound()
{
$this->global["p\x61\x67eTitle"] = "\x20\x3404\x20-\x20P\x61\x67e\x20N\x6ft\x20\x46o\x75nd";
$this->loadViews("\x67\x65\x6e\x65\x72a\x6c/4\x304", $this->global, NULL, NULL);
}
function loginHistoy($userId = NULL)
{
if (!$this->isAdmin()) {
$this->loadThis();
} else {
${"\x47\x4cOB\x41\x4c\x53"}["x\x61\x73\x72\x7a\x64\x68a"] = "\x75\x73\x65\x72\x49d";
$sseyrpybt = "\x75\x73e\x72I\x64";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68r\x67\x64b\x71cbu\x74\x69"] = "\x75\x73\x65\x72\x49\x64";
${"G\x4cOB\x41\x4c\x53"}["\x75\x68\x78\x75\x71\x75\x66"] = "\x75\x73\x65\x72\x49d";
$hybbraqlb = "\x72\x65\x74\x75\x72\x6e\x73";
$emgphkgntw = "\x66\x72o\x6d\x44a\x74e";
${"GL\x4fB\x41\x4c\x53"}["pva\x73\x64\x63h\x74"] = "d\x61\x74\x61";
${${"G\x4cOB\x41\x4c\x53"}["u\x68\x78\x75\x71u\x66"]} = (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x61\x73\x72\x7a\x64ha"]} == NULL ? 0 : ${${"G\x4c\x4fBA\x4c\x53"}["\x68\x72\x67\x64b\x71\x63bu\x74\x69"]});
${${"\x47L\x4f\x42A\x4c\x53"}["\x64r\x77\x74qb\x64e\x69"]} = $this->input->post("\x73\x65a\x72chTe\x78\x74");
${"\x47\x4c\x4f\x42\x41LS"}["y\x63\x6fcc\x64\x78\x69"] = "da\x74\x61";
${"G\x4cO\x42\x41L\x53"}["y\x6f\x75n\x6fu\x73\x6f\x6bh"] = "\x75\x73\x65\x72Id";
${$emgphkgntw} = $this->input->post("\x66\x72\x6fmD\x61te");
$xtvdkunooceb = "\x74\x6f\x44at\x65";
${"\x47L\x4f\x42\x41L\x53"}["\x6f\x69\x71tjc\x6ae\x63g"] = "\x72\x65\x74\x75\x72ns";
${${"G\x4c\x4f\x42\x41LS"}["\x63\x70ry\x63l\x79\x66\x73\x69i"]} = $this->input->post("\x74oDa\x74\x65");
$tlidezybjqi = "\x75s\x65r\x49\x64";
$rtqfttmkvym = "s\x65\x61r\x63\x68T\x65xt";
${${"\x47L\x4f\x42ALS"}["p\x76a\x73\x64ch\x74"]}["\x75\x73\x65rIn\x66\x6f"] = $this->user_model->getUserInfoById(${${"\x47\x4cOB\x41\x4c\x53"}["\x76t\x70t\x63\x76\x69\x6fk\x77"]});
${${"GL\x4f\x42\x41LS"}["\x65\x79\x66\x70vj\x6f"]}["s\x65a\x72\x63hText"] = ${${"\x47\x4c\x4f\x42AL\x53"}["\x64\x72\x77\x74q\x62\x64\x65i"]};
${${"\x47L\x4f\x42A\x4cS"}["y\x63oc\x63\x64\x78i"]}["\x66r\x6f\x6dD\x61\x74\x65"] = ${${"GLOB\x41\x4c\x53"}["\x71\x66\x7a\x70\x66\x78\x75b\x61"]};
$yhwmnlbax = "\x72e\x74\x75\x72\x6es";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x79fp\x76\x6a\x6f"]}["\x74o\x44\x61\x74e"] = ${$xtvdkunooceb};
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["j\x64\x6cw\x6f\x78\x6c"] = "\x66rom\x44a\x74e";
$this->load->library("\x70\x61g\x69\x6e\x61\x74\x69on");
${${"G\x4c\x4f\x42AL\x53"}["\x65\x69\x71\x6de\x6e\x63\x71"]} = $this->user_model->loginHistoryCount(${$tlidezybjqi}, ${${"\x47\x4c\x4fBALS"}["drw\x74qbd\x65i"]}, ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ad\x6c\x77\x6f\x78\x6c"]}, ${${"\x47\x4cO\x42AL\x53"}["\x63\x70\x72\x79\x63\x6c\x79\x66s\x69\x69"]});
${$hybbraqlb} = $this->paginationCompress("l\x6fg\x69\x6e-\x68i\x73\x74o\x72\x79/" . ${$sseyrpybt} . "/", ${${"\x47L\x4fBA\x4cS"}["\x65iqm\x65\x6e\x63\x71"]}, 10, 3);
${${"\x47\x4c\x4fB\x41L\x53"}["\x65\x79\x66\x70\x76\x6ao"]}["\x75s\x65\x72\x52\x65c\x6fr\x64\x73"] = $this->user_model->loginHistory(${${"\x47L\x4f\x42\x41\x4cS"}["y\x6f\x75no\x75\x73\x6fk\x68"]}, ${$rtqfttmkvym}, ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71fz\x70\x66\x78\x75ba"]}, ${${"\x47\x4cO\x42A\x4c\x53"}["c\x70ry\x63l\x79\x66s\x69\x69"]}, ${$yhwmnlbax}["\x70\x61g\x65"], ${${"\x47\x4cOB\x41L\x53"}["\x6f\x69\x71\x74\x6a\x63j\x65c\x67"]}["s\x65gm\x65n\x74"]);
$this->global["\x70age\x54\x69\x74le"] = "\x20\x55ser\x20Log\x69\x6e H\x69s\x74\x6f\x72\x79";
$this->loadViews("\x75se\x72\x73/lo\x67\x69\x6e\x48i\x73\x74\x6f\x72y", $this->global, ${${"\x47\x4c\x4f\x42\x41\x4cS"}["ey\x66p\x76\x6a\x6f"]}, NULL);
}
}
function profile($active = "details")
{
${"GL\x4fB\x41\x4c\x53"}["\x70bg\x75\x76eta\x67\x62"] = "\x64at\x61";
$hyjxdj = "\x61\x63t\x69\x76\x65";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x6f\x71i\x66\x65\x68\x6dg\x62"] = "d\x61\x74\x61";
${${"\x47\x4c\x4f\x42ALS"}["e\x79\x66\x70\x76j\x6f"]}["u\x73erI\x6e\x66o"] = $this->user_model->getUserInfoWithRole($this->vendorId);
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x62gu\x76e\x74a\x67\x62"]}["\x61\x63t\x69\x76e"] = ${$hyjxdj};
$this->global["p\x61g\x65T\x69tl\x65"] = ${${"\x47\x4c\x4fB\x41\x4c\x53"}["i\x68\x6c\x77m\x74\x69"]} == "detail\x73" ? "\x20\x4dy \x50\x72\x6ff\x69le" : " Cha\x6e\x67\x65 Pass\x77ord";
$this->loadViews("\x75\x73\x65rs/p\x72\x6f\x66i\x6ce", $this->global, ${${"\x47\x4c\x4fB\x41L\x53"}["\x78\x6f\x71\x69f\x65\x68\x6d\x67b"]}, NULL);
}
function profileUpdate($active = "details")
{
$this->load->library("\x66\x6f\x72\x6d\x5f\x76\x61\x6cidatio\x6e");
$this->form_validation->set_rules("f\x6e\x61me", "\x46u\x6c\x6c \x4eam\x65", "\x74rim|re\x71u\x69\x72\x65d|\x6da\x78\x5fl\x65ngt\x68[1\x328]");
$this->form_validation->set_rules("mo\x62\x69\x6ce", "\x4dobi\x6c\x65\x20N\x75\x6d\x62e\x72", "re\x71ui\x72e\x64|m\x69n\x5fl\x65\x6e\x67th[1\x30]");
$this->form_validation->set_rules("em\x61\x69l", "Ema\x69\x6c", "tr\x69m|\x72\x65qu\x69\x72\x65\x64|\x76\x61li\x64_e\x6dai\x6c|max_len\x67\x74h[\x31\x32\x38]|c\x61l\x6cbac\x6b_\x65m\x61i\x6cE\x78i\x73t\x73");
if ($this->form_validation->run() == FALSE) {
${"\x47\x4cOBA\x4c\x53"}["\x79l\x68\x76\x75j\x66i\x73"] = "\x61\x63\x74i\x76e";
$this->profile(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79\x6c\x68\x76\x75j\x66\x69s"]});
} else {
$rpidwwxgh = "\x65mai\x6c";
${"\x47L\x4f\x42A\x4c\x53"}["n\x75\x75w\x76\x76\x71\x6fe"] = "\x72\x65\x73ul\x74";
${"\x47\x4cOB\x41\x4c\x53"}["\x74\x61\x6d\x6do\x68\x78\x79\x6b"] = "na\x6d\x65";
$zslyrufch = "\x6d\x6f\x62\x69\x6c\x65";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x68\x68\x63\x6b\x65\x6b\x78"] = "\x75s\x65rI\x6e\x66o";
${"\x47LOB\x41\x4c\x53"}["\x62j\x79\x66\x6f\x71\x73k\x6a"] = "\x6d\x6fb\x69\x6c\x65";
${${"\x47L\x4f\x42\x41\x4c\x53"}["t\x61mm\x6f\x68\x78\x79\x6b"]} = ucwords(strtolower($this->security->xss_clean($this->input->post("fn\x61\x6d\x65"))));
${${"\x47\x4cO\x42A\x4cS"}["b\x6a\x79fo\x71\x73\x6b\x6a"]} = $this->security->xss_clean($this->input->post("\x6d\x6f\x62il\x65"));
${$rpidwwxgh} = strtolower($this->security->xss_clean($this->input->post("email")));
${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x68h\x63\x6b\x65k\x78"]} = array(
"\x6eam\x65" => ${${"\x47L\x4fBA\x4cS"}["\x77\x70\x6c\x68\x76k\x6d"]},
"\x65m\x61i\x6c" => ${${"\x47\x4c\x4f\x42ALS"}["\x62\x6e\x73u\x6f\x73"]},
"\x6d\x6f\x62\x69\x6ce" => ${$zslyrufch},
"\x75p\x64at\x65d\x42\x79" => $this->vendorId,
"up\x64a\x74\x65\x64D\x74\x6d" => date("Y-\x6d-d\x20H:i:\x73")
);
${"GL\x4f\x42\x41\x4cS"}["l\x68i\x6c\x70a\x67\x70\x74\x72\x63\x76"] = "a\x63\x74\x69\x76e";
${${"GL\x4f\x42\x41L\x53"}["nuuwv\x76qo\x65"]} = $this->user_model->editUser(${${"\x47L\x4f\x42A\x4cS"}["\x66\x6d\x6c\x71\x6bi\x70\x6a"]}, $this->vendorId);
if (${${"\x47\x4c\x4fB\x41\x4c\x53"}["l\x6ct\x76\x71\x76"]} == true) {
${"G\x4c\x4f\x42\x41L\x53"}["u\x61\x68\x74\x6ev\x74"] = "\x6e\x61\x6d\x65";
$this->session->set_userdata("\x6e\x61\x6d\x65", ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x75\x61\x68\x74\x6e\x76\x74"]});
$this->session->set_flashdata("\x73u\x63ces\x73", "\x53u\x63ces\x73 \x21! P\x72\x6f\x66\x69\x6c\x65 \x55\x70d\x61\x74\x65\x64");
} else {
$this->session->set_flashdata("\x65rro\x72", "\x50ro\x66ile \x55p\x64\x61t\x65 \x46ai\x6c\x65\x64");
}
redirect("p\x72\x6f\x66\x69\x6c\x65/" . ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x68i\x6c\x70\x61g\x70\x74r\x63v"]});
}
}
function changePassword($active = "changepass")
{
$this->load->library("for\x6d_v\x61\x6cidat\x69\x6fn");
$this->form_validation->set_rules("o\x6cd\x50\x61ss\x77ord", "\x4fl\x64\x20passw\x6f\x72d", "\x72\x65\x71u\x69red|m\x61x_l\x65n\x67\x74\x68[\x320]");
$this->form_validation->set_rules("ne\x77\x50\x61s\x73wor\x64", "\x4eew\x20\x70\x61s\x73wo\x72d", "\x72\x65\x71ui\x72e\x64|max_\x6cen\x67th[\x320]");
$this->form_validation->set_rules("cNew\x50\x61\x73\x73\x77\x6f\x72d", "\x43\x6fnf\x69rm \x6ee\x77\x20\x70as\x73w\x6fr\x64", "requ\x69r\x65\x64|\x6da\x74c\x68\x65s[\x6e\x65\x77\x50ass\x77\x6f\x72d]|\x6d\x61x\x5fl\x65\x6eg\x74h[\x320]");
if ($this->form_validation->run() == FALSE) {
$this->profile(${${"\x47L\x4fBA\x4c\x53"}["\x69\x68l\x77\x6dt\x69"]});
} else {
$rmlyvnx = "o\x6c\x64\x50\x61\x73swo\x72\x64";
$awntrspulxo = "\x6f\x6c\x64\x50ass\x77\x6f\x72\x64";
${$awntrspulxo} = $this->input->post("old\x50as\x73w\x6fr\x64");
${${"\x47L\x4f\x42\x41L\x53"}["\x74ldxlen"]} = $this->input->post("\x6e\x65\x77\x50a\x73sw\x6fr\x64");
${${"\x47L\x4fBA\x4cS"}["\x71\x68\x6f\x70\x77\x71ry\x63\x76j"]} = $this->user_model->matchOldPassword($this->vendorId, ${$rmlyvnx});
if (empty(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x71\x68op\x77\x71\x72yc\x76\x6a"]})) {
${"\x47L\x4f\x42AL\x53"}["u\x79\x6ag\x6ds\x78"] = "activ\x65";
$this->session->set_flashdata("nom\x61\x74\x63h", "\x59ou\x72 \x6fld \x70a\x73\x73w\x6f\x72d\x20i\x73\x20\x6e\x6ft co\x72\x72ec\x74");
redirect("\x70\x72\x6ff\x69le/" . ${${"\x47LO\x42\x41\x4cS"}["\x75\x79\x6a\x67\x6d\x73\x78"]});
} else {
${"\x47LOB\x41\x4c\x53"}["nj\x6ff\x76t\x72q\x68"] = "\x75\x73ersD\x61\x74a";
$tmhbrpqvypxr = "a\x63\x74i\x76\x65";
${${"\x47\x4c\x4fBA\x4cS"}["\x6e\x6ao\x66v\x74\x72\x71\x68"]} = array(
"\x70\x61\x73s\x77\x6f\x72d" => getHashedPassword(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74\x6cd\x78l\x65\x6e"]}),
"updatedBy" => $this->vendorId,
"u\x70d\x61te\x64Dt\x6d" => date("Y-\x6d-\x64\x20H:i:\x73")
);
${"\x47\x4c\x4f\x42\x41\x4cS"}["w\x63pc\x68\x79o\x6b\x64m\x66"] = "\x75se\x72sD\x61\x74a";
${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x6c\x74\x76qv"]} = $this->user_model->changePassword($this->vendorId, ${${"\x47\x4c\x4f\x42\x41LS"}["\x77cpch\x79\x6f\x6b\x64\x6df"]});
if (${${"\x47\x4c\x4f\x42A\x4c\x53"}["l\x6c\x74v\x71\x76"]} > 0) {
$this->session->set_flashdata("su\x63ce\x73\x73", "\x53ucce\x73s\x20\x21! Pa\x73sword\x20Up\x64at\x65\x64");
} else {
$this->session->set_flashdata("er\x72or", "Pas\x73\x77\x6f\x72\x64 \x55\x70da\x74e\x20\x46\x61\x69\x6c\x65d");
}
redirect("\x70r\x6ffil\x65/" . ${$tmhbrpqvypxr});
}
}
}
function emailExists($email)
{
${${"\x47\x4c\x4fB\x41\x4c\x53"}["v\x74\x70\x74\x63\x76i\x6f\x6b\x77"]} = $this->vendorId;
${"GL\x4fB\x41\x4c\x53"}["\x61\x64w\x79\x64k\x6cdu"] = "\x72e\x74\x75\x72\x6e";
${"G\x4c\x4fB\x41L\x53"}["\x72\x69\x65p\x72\x73re\x65\x68p"] = "r\x65sul\x74";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["dj\x73\x7a\x6e\x6f\x65\x6b\x70\x63"] = "\x72\x65\x74u\x72n";
${${"G\x4c\x4f\x42AL\x53"}["d\x6a\x73\x7a\x6e\x6fe\x6b\x70\x63"]} = false;
if (empty(${${"\x47L\x4f\x42A\x4c\x53"}["\x76t\x70\x74\x63\x76i\x6f\x6b\x77"]})) {
$btbasox = "\x72e\x73\x75l\x74";
${"\x47LO\x42\x41L\x53"}["\x75\x67wab\x66\x64"] = "\x65\x6d\x61\x69l";
${$btbasox} = $this->user_model->checkEmailExists(${${"GL\x4f\x42\x41\x4c\x53"}["\x75\x67\x77a\x62\x66\x64"]});
} else {
${"\x47\x4cOBA\x4c\x53"}["\x6de\x73qq\x69\x6fq\x70\x76"] = "resu\x6c\x74";
$jdfwgjbq = "e\x6d\x61i\x6c";
${${"\x47\x4c\x4f\x42A\x4cS"}["\x6d\x65s\x71\x71\x69\x6f\x71p\x76"]} = $this->user_model->checkEmailExists(${$jdfwgjbq}, ${${"\x47\x4cO\x42A\x4cS"}["v\x74ptc\x76\x69\x6f\x6b\x77"]});
}
if (empty(${${"\x47\x4cOB\x41\x4c\x53"}["\x72\x69\x65p\x72\x73\x72\x65\x65hp"]})) {
${${"GL\x4fB\x41L\x53"}["\x7a\x65q\x6fznv\x67\x70"]} = true;
} else {
$this->form_validation->set_message("\x65ma\x69\x6cE\x78\x69\x73t\x73", "\x54h\x65\x20{fi\x65ld} al\x72\x65a\x64y\x20\x74\x61\x6be\x6e");
${${"G\x4cO\x42\x41LS"}["\x7a\x65q\x6fzn\x76\x67\x70"]} = false;
}
return ${${"G\x4c\x4fBA\x4c\x53"}["ad\x77\x79\x64\x6bl\x64u"]};
}
}
?>
Function Calls
defined | 1 |
Stats
MD5 | 117368c56b908cdd7e37d72c406626a8 |
Eval Count | 0 |
Decode Time | 166 ms |