[geeklog-jp commit] r990 - trunk/geeklog-1-jp/system/custom

Back to archive index

codes****@googl***** codes****@googl*****
2008年 10月 29日 (水) 16:00:21 JST


Author: hirorongl
Date: Wed Oct 29 00:00:11 2008
New Revision: 990

Modified:
    trunk/geeklog-1-jp/system/custom/custom_cellular.php

Log:
携帯対応のrefreshのLocationヘッダ対応修正

Modified: trunk/geeklog-1-jp/system/custom/custom_cellular.php
==============================================================================
--- trunk/geeklog-1-jp/system/custom/custom_cellular.php	(original)
+++ trunk/geeklog-1-jp/system/custom/custom_cellular.php	Wed Oct 29  
00:00:11 2008
@@ -20,7 +20,7 @@
  $CUSTOM_MOBILE_CONF['cut_comment'] = true; // コメントを削除する
  $CUSTOM_MOBILE_CONF['convert_to_sjis'] = true; // SJISに変換する
  $CUSTOM_MOBILE_CONF['host_charset'] = "UTF-8"; // サーバはUTF-8
-$CUSTOM_MOBILE_CONF['refresh_use_location'] = true; // refreshにLocationヘ 
ッダを使用する
+$CUSTOM_MOBILE_CONF['refresh_use_location'] = false; // refreshにLocationヘ 
ッダを使用する
  /**
   * 画像の縮小用パラメータ
   */
@@ -260,7 +260,14 @@
                                  
mb_detect_encoding($LANG05['5'], "UTF-8,EUC-JP,JIS,sjis-win"));
      if(CUSTOM_MOBILE_is_cellular()) {
          if($CUSTOM_MOBILE_CONF['refresh_use_location']) {
-            header( "Location: $url" );
+            $sepa = '?';
+            if (strpos($url, '?') > 0)
+            {
+                $sepa = '&';
+            }
+            $location_url = 'Location: ' . $url . $sepa . 'PHPSESSID=' .  
SID;
+            header( $location_url );
+            exit;
          } else {
              return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01  
Transitional//EN\"" .
                  "\"http://www.w3.org/TR/html4/loose.dtd\">\n" .




Geeklogjp-changes メーリングリストの案内
Back to archive index