Changeset 15438 for branches/feature-module-zeus
- Timestamp:
- 2007/08/29 20:26:38 (17 years ago)
- Location:
- branches/feature-module-zeus
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-zeus/.project
r14676 r15438 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> ec-cube.net-beta</name>3 <name>uuu</name> 4 4 <comment></comment> 5 5 <projects> 6 6 </projects> 7 7 <buildSpec> 8 <buildCommand> 9 <name>net.sourceforge.phpeclipse.parserbuilder</name> 10 <arguments> 11 </arguments> 12 </buildCommand> 13 </buildSpec> 14 <natures> 15 <nature>net.sourceforge.phpeclipse.phpnature</nature> 16 </natures> 8 <buildCommand> 9 <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name> 10 <arguments> 11 </arguments> 12 </buildCommand> 13 <buildCommand> 14 <name>org.eclipse.wst.validation.validationbuilder</name> 15 <arguments> 16 </arguments> 17 </buildCommand> 18 </buildSpec> 19 <natures> 20 <nature>org.eclipse.php.core.PHPNature</nature> 21 </natures> 17 22 </projectDescription> -
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(); -
branches/feature-module-zeus/html/mobile/index.php
r11846 r15438 9 9 * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥È¥Ã¥×¥Ú¡¼¥¸ 10 10 */ 11 12 11 require_once('./require.php'); 13 12 -
branches/feature-module-zeus/html/mobile/require.php
r12195 r15438 9 9 $include_dir = realpath(dirname( __FILE__)); 10 10 require_once($include_dir . "/../define.php"); 11 require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/conf.php"); 11 12 12 require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/conf.php");13 13 require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/mobile_conf.php"); 14 15 14 16 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 17 18 19 20 15 21 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/mobile.inc"); 22 23 16 24 require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/glib.php"); 17 25 require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/slib.php"); 26 18 27 require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_View.php"); 19 28 require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_DbConn.php");
Note: See TracChangeset
for help on using the changeset viewer.