OSDN Git Service

constant name 'ENCODE' change to 'SOURCE_ENCODE'
authorpanda <panda>
Tue, 18 Feb 2003 04:30:32 +0000 (13:30 +0900)
committerpanda <panda>
Tue, 18 Feb 2003 04:30:32 +0000 (13:30 +0900)
plugin/interwiki.inc.php
plugin/paint.inc.php
plugin/showrss.inc.php
plugin/source.inc.php

index 1fb54e3..675c098 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: interwiki.inc.php,v 1.1 2003/01/27 05:38:46 panda Exp $
+// $Id: interwiki.inc.php,v 1.2 2003/02/18 04:30:03 panda Exp $
 //
 // InterWikiName¤ÎȽÊ̤ȥڡ¼¥¸¤Îɽ¼¨
 function plugin_interwiki_action()
@@ -44,7 +44,7 @@ function plugin_interwiki_action()
        {
                // YukiWiki·Ï
                if (!preg_match("/$WikiName/",$param))
-                       $param = $b_mb ? '[['.mb_convert_encoding($param,'SJIS',ENCODING).']]' : FALSE;
+                       $param = $b_mb ? '[['.mb_convert_encoding($param,'SJIS',SOURCE_ENCODING).']]' : FALSE;
        }
        else if ($opt == 'moin')
        {
index 5062abf..55cb3ae 100644 (file)
@@ -72,7 +72,7 @@ function plugin_paint_action()
                
                $filename = $vars['filename'];
                if (function_exists('mb_convert_encoding'))
-                       $filename = mb_convert_encoding($filename,ENCODING,'auto');
+                       $filename = mb_convert_encoding($filename,SOURCE_ENCODING,'auto');
                
                //¥Õ¥¡¥¤¥ë̾ÃÖ´¹
                $attachname = preg_replace('/^[^\.]+/', $filename, $HTTP_POST_FILES['attach_file']['name']);
@@ -207,8 +207,8 @@ function insert_ref($filename)
        $date = sprintf(PAINT_FORMAT_DATE, $now);
        
        if (function_exists('mb_convert_encoding')) {
-               $msg = mb_convert_encoding($msg, ENCODING, 'auto');
-               $name = mb_convert_encoding($name, ENCODING, 'auto');
+               $msg = mb_convert_encoding($msg,SOURCE_ENCODING,'auto');
+               $name = mb_convert_encoding($name,SOURCE_ENCODING,'auto');
        }
        
        $msg = trim($msg);
index 9af4868..e2eb23b 100644 (file)
@@ -22,7 +22,7 @@
  * 
  * ÈòÆñ½ê       ->   http://do3ob.s20.xrea.com/
  *
- * version: $Id: showrss.inc.php,v 1.3 2003/02/17 07:34:50 panda Exp $
+ * version: $Id: showrss.inc.php,v 1.4 2003/02/18 04:30:23 panda Exp $
  * 
  */
 
@@ -148,10 +148,10 @@ function plugin_showrss_convert() {
        }
 
        if (function_exists('mb_convert_encoding')) {
-               // ¥¨¥ó¥³¡¼¥É¤Ç¤­¤ë¾ì¹ç¤ÏENCODING¤Ë¡£
+               // ¥¨¥ó¥³¡¼¥É¤Ç¤­¤ë¾ì¹ç¤ÏSOURCE_ENCODING¤Ë¡£
                foreach ($parsed_rss_array as $index => $parsed_rss) {
                        foreach ($parsed_rss as $parsed_rss_key => $parsed_rss_value) {
-                               $parsed_rss_array[$index][$parsed_rss_key] = mb_convert_encoding($parsed_rss_value, ENCODING, 'auto');
+                               $parsed_rss_array[$index][$parsed_rss_key] = mb_convert_encoding($parsed_rss_value,SOURCE_ENCODING,'auto');
                        }
                }
        }
index c40a4bb..ce06f99 100644 (file)
@@ -1,11 +1,11 @@
 <?php
-// $Id: source.inc.php,v 1.5 2003/01/27 05:38:47 panda Exp $
+// $Id: source.inc.php,v 1.6 2003/02/18 04:30:32 panda Exp $
 
 function plugin_source_action()
 {
        global $vars;
        
-       header('Content-type: text/plain; charset="'.ENCODING.'"');
+       header('Content-type: text/plain; charset="'.SOURCE_ENCODING.'"');
        echo join('',get_source($vars['page']));
        
        die();