Changeset 15438 for branches/feature-module-zeus/data/include/mobile.inc
- Timestamp:
- 2007/08/29 20:26:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-zeus/data/include/mobile.inc
r15437 r15438 15 15 */ 16 16 function lfMobileCheckCompatibility() { 17 18 19 17 20 if (!GC_MobileUserAgent::isSupported()) { 18 21 header('Location: ' . URL_DIR . 'unsupported/index.php'); 19 22 exit; 20 23 } 24 25 21 26 } 22 27 … … 117 122 // ÇÛÎó mobile ¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£ 118 123 if (!is_array(@$_SESSION['mobile'])) { 124 gfprintlog("ÇÛÎómobile¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¡£"); 119 125 return false; 120 126 } … … 125 131 date('Y/m/d H:i:s', @$_SESSION['mobile']['expires']) . 126 132 ' : sid=' . session_id()); 127 133 gfprintlog("SESSION͸ú´ü¸Â¤ò²á¤®¤Æ¤¤¤ë"); 128 134 return false; 129 135 } … … 135 141 "\"$model\" != \"" . @$_SESSION['mobile']['model'] . 136 142 '" (expected), sid=' . session_id()); 137 return false; 138 } 139 143 gfprintlog("·ÈÂÓüËö¤Îµ¡¼ï¤¬°ìÃפ·¤Ê¤¤"); 144 return false; 145 } 146 147 gfprintlog("¥»¥Ã¥·¥ç¥ó¥Ç¡¼¥¿¤¬Í¸ú"); 140 148 return true; 141 149 } … … 173 181 // ¥»¥Ã¥·¥ç¥óID¤Þ¤¿¤Ï¥»¥Ã¥·¥ç¥ó¥Ç¡¼¥¿¤¬Ìµ¸ú¤Ê¾ì¹ç¤Ï¡¢¥»¥Ã¥·¥ç¥óID¤òºÆÀ¸À® 174 182 // ¤·¡¢¥»¥Ã¥·¥ç¥ó¥Ç¡¼¥¿¤ò½é´ü²½¤¹¤ë¡£ 183 if ($sessionId === false) { 184 gfprintlog("\$sessionId === false"); 185 } 186 175 187 if ($sessionId === false || !lfMobileValidateSession()) { 188 176 189 session_regenerate_id(); 177 190 $_SESSION = array('mobile' => array('model' => GC_MobileUserAgent::getModel(), … … 181 194 // ¿·¤·¤¤¥»¥Ã¥·¥ç¥óID¤òÉղ䷤ƥê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£ 182 195 if ($_SERVER['REQUEST_METHOD'] == 'GET') { 196 gfprintlog("GETÍ×µá¤Î¼èÆÀ:".$_GET['PHPSESSID']); 197 gfprintlog("¥ê¥À¥¤¥ì¥¯¥È:".gfAddSessionId()); 183 198 // GET ¤Î¾ì¹ç¤ÏƱ¤¸¥Ú¡¼¥¸¤Ë¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£ 184 199 header('Location: ' . gfAddSessionId()); 185 200 } else { 201 gfprintlog("GETÍ׵᤬¤Ê¤·"); 186 202 // GET °Ê³°¤Î¾ì¹ç¤Ï¥È¥Ã¥×¥Ú¡¼¥¸¤Ø¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£ 187 203 header('Location: ' . URL_SITE_TOP . '?' . SID); … … 240 256 function sfMobileInit() { 241 257 lfMobileInitInput(); 242 243 258 if (basename(dirname($_SERVER['SCRIPT_NAME'])) != 'unsupported') { 244 259 lfMobileCheckCompatibility();
Note: See TracChangeset
for help on using the changeset viewer.