OSDN Git Service

Vodafone needs more detail of User-Agent strings. But don't use greedy regex to avoid...
authorhenoheno <henoheno>
Sat, 3 Jul 2004 14:59:47 +0000 (23:59 +0900)
committerhenoheno <henoheno>
Sat, 3 Jul 2004 14:59:47 +0000 (23:59 +0900)
jphone.ini.php

index 19363e6..b667080 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: jphone.ini.php,v 1.6 2004/04/03 15:56:08 arino Exp $
+// $Id: jphone.ini.php,v 1.7 2004/07/03 14:59:47 henoheno Exp $
 //
 // PukiWiki setting file (user agent:J-PHONE)
 
@@ -102,11 +102,15 @@ $line_rules = array(
 );
 
 /////////////////////////////////////////////////
-// max_size (SKIN¤Ç»ÈÍÑ)
-$max_size = 6; //KByte
-if (array_key_exists(1,$user_agent['matches']))
-{
-       $max_size = 12;
+// Vodafone µ»½Ñ»ñÎÁ: ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤Ä¤¤¤Æ
+// http://www.dp.j-phone.com/dp/tool_dl/web/useragent.php
+
+if (preg_match('#Profile/#', $ua)) {
+       // ¥Ñ¥±¥Ã¥ÈÂбþµ¡
+       $max_size = 12; // SKIN¤Ç»ÈÍÑ, KByte
+} else {
+       // ¥Ñ¥±¥Ã¥ÈÈóÂбþµ¡
+       $max_size =  6;
 }
 
 /////////////////////////////////////////////////
@@ -115,4 +119,4 @@ if (preg_match('#([^/]+)$#',$script,$matches)) {
        $script = $matches[1];
 }
 
-?>
\ No newline at end of file
+?>