Changeset 21527 for branches/version-2_12-dev/data/class/sessionfactory
- Timestamp:
- 2012/02/17 02:42:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/sessionfactory/SC_SessionFactory_UseRequest.php
r21526 r21527 112 112 $objQuery->delete('dtb_mobile_ext_session_id', 'create_date < ?', array($time)); 113 113 114 $arrValues = array('session_id' => session_id(), 115 'param_key' => $param_key, 116 'param_value' => $param_value, 117 'url' => $url); 114 $arrValues = array( 115 'session_id' => session_id(), 116 'param_key' => $param_key, 117 'param_value' => $param_value, 118 'url' => $url, 119 ); 118 120 119 121 $objQuery->insert('dtb_mobile_ext_session_id', $arrValues); … … 353 355 function validateIp() { 354 356 $ip = $this->getIp(); 355 if (!empty($_SERVER['REMOTE_ADDR']) 356 && $ip === $_SERVER['REMOTE_ADDR']) { 357 if (!empty($_SERVER['REMOTE_ADDR']) && $ip === $_SERVER['REMOTE_ADDR']) { 357 358 358 359 return true; 359 360 } 360 361 361 $msg = sprintf('Ip Addr mismatch : %s != %s(expected) : sid=%s', 362 $_SERVER['REMOTE_ADDR'], $ip, session_id()); 362 $msg = sprintf('Ip Addr mismatch : %s != %s(expected) : sid=%s', $_SERVER['REMOTE_ADDR'], $ip, session_id()); 363 363 GC_Utils_Ex::gfPrintLog($msg); 364 364 return false; … … 434 434 function validateModel() { 435 435 $ua = $this->getModel(); 436 if (!empty($_SERVER['HTTP_USER_AGENT']) 437 && $_SERVER['HTTP_USER_AGENT'] === $ua) { 438 436 if (!empty($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] === $ua) { 439 437 return true; 440 438 } … … 497 495 $modelInSession = $this->getModel(); 498 496 $model = SC_MobileUserAgent_Ex::getModel(); 499 if (!empty($model) 500 && $model === $modelInSession) { 501 497 if (!empty($model) && $model === $modelInSession) { 502 498 return true; 503 499 }
Note: See TracChangeset
for help on using the changeset viewer.
