• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión3b1e44b44d2e1507ea96d2a29077cd383befaf95 (tree)
Tiempo2005-02-13 12:12:47
Autorhenoheno <henoheno>
Commiterhenoheno

Log Message

Cleanup HTTP header related, etc

Cambiar Resumen

Diferencia incremental

--- a/skin/keitai.skin.php
+++ b/skin/keitai.skin.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: keitai.skin.php,v 1.7 2005/02/13 03:06:02 henoheno Exp $
3+// $Id: keitai.skin.php,v 1.8 2005/02/13 03:12:47 henoheno Exp $
44 //
55 // Skin for Embedded devices
66
@@ -14,7 +14,7 @@ $rw = ! PKWK_READONLY;
1414
1515 // Output HTTP headers
1616 pkwk_headers_sent();
17-if(LANG == 'ja') {
17+if(TRUE) {
1818 // Force Shift JIS encode for Japanese embedded browsers and devices
1919 header('Content-Type: text/html; charset=Shift_JIS');
2020 $title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING);
@@ -26,7 +26,7 @@ if(LANG == 'ja') {
2626 // Make 1KByte spare (for header, etc)
2727 $max_size = --$max_size * 1024;
2828
29-// IMG タグ(画像)を文字列に置換
29+// Replace IMG tags (= images) with character strings
3030 // With ALT option
3131 $body = preg_replace('#(<div[^>]+>)?(<a[^>]+>)?<img[^>]*alt="([^"]+)"[^>]*>(?(2)</a>)(?(1)</div>)#i', '[$3]', $body);
3232 // Without ALT option
@@ -54,16 +54,16 @@ if ($rw) {
5454 $navi[] = '<a href="' . $script . '?' . $menubar . '" ' . $accesskey . '="4">4.Menu</a>';
5555 $navi[] = '<a href="' . $link['recent'] . '" ' . $accesskey . '="5">5.Recent</a>';
5656
57-// 前/次のブロック
57+// Previous / Next block
5858 if ($pagecount > 1) {
5959 $prev = $pageno - 1;
6060 $next = $pageno + 1;
6161 if ($pageno > 0) {
62- $navi[] = "<a href=\"$script?cmd=read&amp;page=$r_page&amp;p=$prev\" $accesskey=\"7\">7.Prev</a>";
62+ $navi[] = '<a href="' . $script . '?cmd=read&amp;page=' . $r_page . '&amp;p=' . $prev . '" ' . $accesskey . '="7">7.Prev</a>';
6363 }
64- $navi[] = "$next/$pagecount ";
64+ $navi[] = $next . '/' . $pagecount . ' ';
6565 if ($pageno < $lastpage) {
66- $navi[] = "<a href=\"$script?cmd=read&amp;page=$r_page&amp;p=$next\" $accesskey=\"8\">8.Next</a>";
66+ $navi[] = '<a href="' . $script . '?cmd=read&amp;page=' . $r_page . '&amp;p=' . $next . '" ' . $accesskey . '="8">8.Next</a>';
6767 }
6868 }
6969