• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisionf6b6163793d07a5dfe8da42840c1c2ba19bfb048 (tree)
Time2009-02-03 09:02:30
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@779 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- /dev/null
+++ b/NP_CustomURL/trunk/customurl/help.php
@@ -0,0 +1,23 @@
1+<?php
2+ include('../../../config.php');
3+ $language = ereg_replace( '[\\|/]', '', getLanguageName());
4+ $url = './'.$language.'_help.html';
5+ if(file_exists($url)){
6+ $message=file($url);
7+ }
8+ else{
9+ $message=file('./default_help.html');
10+ }
11+ $linenumber=sizeof($message);
12+ $i=0;
13+ while($i<$linenumber){
14+ $message[$i] = trim($message[$i], "\n\0\r");
15+ $message[$i] = mb_ereg_replace("'", "\\'", $message[$i]);
16+ $message[$i] = mb_ereg_replace('&', '\\&', $message[$i]);
17+ $message[$i] = mb_ereg_replace('"', '\\"', $message[$i]);
18+ $message[$i] = mb_ereg_replace('/', '\\/', $message[$i]);
19+ $message[$i] = mb_ereg_replace(' ', '\\&nbsp;\\&nbsp;\\&nbsp;\\&nbsp;', $message[$i]);
20+ print ("document.write('{$message[$i]}\\n');");
21+ $i++;
22+ }
23+?>
\ No newline at end of file
Show on old repository browser