mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
rewrote php session variables
This commit is contained in:
@ -93,9 +93,12 @@ class ModelSaasCustomer extends Model
|
||||
);
|
||||
|
||||
|
||||
if(!isset($_SESSION['email']) || !strchr($_SESSION['email'], '@') ) { return $data; }
|
||||
$session = Registry::get('session');
|
||||
|
||||
list ($user, $domain) = explode("@", $_SESSION['email']);
|
||||
|
||||
if($session->get("email") == '' || !strchr($session->get("email"), '@') ) { return $data; }
|
||||
|
||||
list ($user, $domain) = explode("@", $session->get("email"));
|
||||
|
||||
if(MEMCACHED_ENABLED) {
|
||||
$cache_key = sha1("customer_settings:" . $domain);
|
||||
|
Reference in New Issue
Block a user