オープンソース・ソフトウェアの開発とダウンロード

CVS リポジトリの参照

Diff of /pukiwiki/pukiwiki/i_mode.ini.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5 by arino, Sat Apr 3 15:56:08 2004 UTC revision 1.6 by henoheno, Sun Jul 4 11:37:33 2004 UTC
# Line 103  $line_rules = array( Line 103  $line_rules = array(
103    
104  /////////////////////////////////////////////////  /////////////////////////////////////////////////
105  // max_size (SKINで使用)  // max_size (SKINで使用)
106  $max_size = 5; //KByte  
107  if ($user_agent['matches'][1] == '1.0'  $max_size = 5;  //KByte (default)
108          and array_key_exists(2,$user_agent['matches']))  
109  {  $matches = array();
110          $max_size =  $user_agent['matches'][2];  if (preg_match('#[/\(]c([0-9]+)[/\);]#', $user_agent['agent'], $matches)) {
111            $max_size = $matches[1];
112  }  }
113  else if ($user_agent['matches'][1] == '2.0')  switch ($user_agent['name'] . '/' . $user_agent['vers']) {
114  {          case 'DoCoMo/2.0':      $max_size = min($max_size, 30); break;
         $max_size = min($user_agent['matches'][2],30);  
115  }  }
116    unset($matches);
117    
118  /////////////////////////////////////////////////  /////////////////////////////////////////////////
119  // $scriptを短縮  // $scriptを短縮
120  if (preg_match('#([^/]+)$#',$script,$matches)) {  if (preg_match('#([^/]+)$#',$script,$matches)) {
121          $script = $matches[1];          $script = $matches[1];
122  }  }
 ?>  
123    ?>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26