From b9efe4635591f66a6e78ec30fdcfec4eca9b8570 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Mon, 12 Feb 2001 09:11:49 +0000 Subject: [PATCH] removed cvs conflicts --- phpgwapi/inc/class.sessions.inc.php | 47 +---------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 6a5260ee54..bb59608b45 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -349,7 +349,7 @@ . 'and loginid = "'.$this->account_id.'" and app = "'.$appname.'" ' . 'and location = "'.$location.'"',__LINE__,__FILE__); } -<<<<<<< class.sessions.inc.php + return $data; } } @@ -362,59 +362,14 @@ $sessionData = unserialize($serializedData); if (is_array($sessionData)) -======= - - /* This allows the user to put "" as the value. */ - if ($data == '##NOTHING##') { - $phpgw->db->query('select content from phpgw_app_sessions where' - ." sessionid = '".$this->sessionid."' and loginid = '".$this->account_id."'" - ." and app = '".$appname."' and location = '".$location."'",__LINE__,__FILE__); - - $phpgw->db->next_record(); - $data = $phpgw->db->f('content'); - $data = $phpgw->common->decrypt($data); - return $data; - } else { - $phpgw->db->query('select content from phpgw_app_sessions where ' - . "sessionid = '".$this->sessionid."' and loginid = '".$this->account_id."' " - . "and app = '".$appname."' and location = '".$location."'",__LINE__,__FILE__); - if ($phpgw->db->num_rows()==0) { - $data = addslashes($phpgw->crypto->encrypt(serialize($data))); - $phpgw->db->query('INSERT INTO phpgw_app_sessions (sessionid,loginid,app,location,content) ' - . "VALUES ('".$this->sessionid."','".$this->account_id."','".$appname - . "','".$location."','".$data."')",__LINE__,__FILE__); - } else { - $data = addslashes($phpgw->crypto->encrypt(serialize($data))); - $phpgw->db->query("update phpgw_app_sessions set content = '".$data."' " - . "where sessionid = '".$this->sessionid."' " - . "and loginid = '".$this->account_id."' and app = '".$appname."' " - . "and location = '".$location."'",__LINE__,__FILE__); - } - return $data; - } - } - - function restore() ->>>>>>> 1.33 { reset($sessionData); while(list($key,$value) = each($sessionData)) { -<<<<<<< class.sessions.inc.php global $$key; $$key = $value; $this->variableNames[$key]="registered"; #print "restored: ".$key.", $value
"; -======= - reset($sessionData); - while(list($key,$value) = each($sessionData)) - { - global $$key; - $$key = $value; - $this->variableNames[$key]='registered'; - #print 'restored: '.$key.', '.$value.'
'; - } ->>>>>>> 1.33 } } }