OSDN Git Service

Cleanup HTTP header related, etc
authorhenoheno <henoheno>
Sun, 13 Feb 2005 03:12:47 +0000 (12:12 +0900)
committerhenoheno <henoheno>
Sun, 13 Feb 2005 03:12:47 +0000 (12:12 +0900)
skin/keitai.skin.php

index e7d815c..8204efa 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: keitai.skin.php,v 1.7 2005/02/13 03:06:02 henoheno Exp $
+// $Id: keitai.skin.php,v 1.8 2005/02/13 03:12:47 henoheno Exp $
 //
 // Skin for Embedded devices
 
@@ -14,7 +14,7 @@ $rw = ! PKWK_READONLY;
 
 // Output HTTP headers
 pkwk_headers_sent();
-if(LANG == 'ja') {
+if(TRUE) {
        // Force Shift JIS encode for Japanese embedded browsers and devices
        header('Content-Type: text/html; charset=Shift_JIS');
        $title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING);
@@ -26,7 +26,7 @@ if(LANG == 'ja') {
 // Make 1KByte spare (for header, etc)
 $max_size = --$max_size * 1024;
 
-// IMG ¥¿¥°(²èÁü)¤òʸ»úÎó¤ËÃÖ´¹
+// Replace IMG tags (= images) with character strings
 // With ALT option
 $body = preg_replace('#(<div[^>]+>)?(<a[^>]+>)?<img[^>]*alt="([^"]+)"[^>]*>(?(2)</a>)(?(1)</div>)#i', '[$3]', $body);
 // Without ALT option
@@ -54,16 +54,16 @@ if ($rw) {
 $navi[] = '<a href="' . $script . '?' . $menubar . '" ' . $accesskey . '="4">4.Menu</a>';
 $navi[] = '<a href="' . $link['recent'] . '" ' . $accesskey . '="5">5.Recent</a>';
 
-// Á°/¼¡¤Î¥Ö¥í¥Ã¥¯
+// Previous / Next block
 if ($pagecount > 1) {
        $prev = $pageno - 1;
        $next = $pageno + 1;
        if ($pageno > 0) {
-               $navi[] = "<a href=\"$script?cmd=read&amp;page=$r_page&amp;p=$prev\" $accesskey=\"7\">7.Prev</a>";
+               $navi[] = '<a href="' . $script . '?cmd=read&amp;page=' . $r_page . '&amp;p=' . $prev . '" ' . $accesskey . '="7">7.Prev</a>';
        }
-       $navi[] = "$next/$pagecount ";
+       $navi[] = $next . '/' . $pagecount . ' ';
        if ($pageno < $lastpage) {
-               $navi[] = "<a href=\"$script?cmd=read&amp;page=$r_page&amp;p=$next\" $accesskey=\"8\">8.Next</a>";
+               $navi[] = '<a href="' . $script . '?cmd=read&amp;page=' . $r_page . '&amp;p=' . $next . '" ' . $accesskey . '="8">8.Next</a>';
        }
 }