User Tools

Site Tools


exportwikiinclude

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
exportwikiinclude [2011/08/11 19:23] dongheeexportwikiinclude [2018/07/18 14:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
-일반 웹페이지에서 자바스크립트로 위키페이지 인클루드하기 위한 코드+html페이지에서 자바스크립트로 위키페이지 인클루드하기 위한 코드
  
 ====== 사용방법 ====== ====== 사용방법 ======
Line 7: Line 7:
 <code html> <code html>
 <div class="wikiinclude"> <div class="wikiinclude">
-<!-- InstanceBeginEditable name="wikispace" --><script language="Javascript" src="/wiki/doku.php?id=start&do=export_wikiinclude"></script> +<script language="Javascript" src="/wiki/doku.php?id=start&do=export_wikiinclude"></script> 
-Please edit the wiki to contribute any updates or corrections.</em><!-- InstanceEndEditable -->+Please edit the wiki to contribute any updates or corrections.
 </div> </div>
 </code> </code>
Line 17: Line 17:
 doku.php의 명령으로 export_wikiinclude를 추가하기. doku.php의 명령으로 export_wikiinclude를 추가하기.
  
-=== inc/actions.php 206 === +=== inc/actions.php 667 ===
-<code php> +
-    if($act == 'export_wikiinclude') $act = 'export_wikiinclude'; +
-</code> +
- +
-=== inc/actions.php 591 ===+
  
 <code php> <code php>
-        case 'wikiinclude':+  case 'wikiinclude':
             $headers['Content-Type'] = 'text/javascript; charset=utf-8';             $headers['Content-Type'] = 'text/javascript; charset=utf-8';
             $output = p_wiki_xhtml($ID,$REV,false);             $output = p_wiki_xhtml($ID,$REV,false);
             $output = str_replace('"','\"',$output);             $output = str_replace('"','\"',$output);
-            $output = str_replace(DOKU_LF,'\n\\ +            $output = str_replace(DOKU_LF,'\n',$output); 
-',$output); +            $pre .= 'var wikibody = "\\' . DOKU_LF;
-            $pre .= 'var wikibody = "\n\\' . DOKU_LF;+
             $post .= '";document.write(wikibody);' . DOKU_LF;             $post .= '";document.write(wikibody);' . DOKU_LF;
-            $post .= 'document.write("<br/><hr/>This page was autogenerated from <a href=\"http://donghee8.com/wiki/doku.php?id='; +            //$post .= 'document.write("<br/><hr/>This page was autogenerated from <a href=\"http://donghee8.com/wiki/doku.php?id='; 
-            $post .= $ID; +            //$post .= $ID; 
-            $post .= '\">wiki</a>.");' . DOKU_LF;+            //$post .= '\">wiki</a>.");' . DOKU_LF;
             break;             break;
 +            
 +            
 </code> </code>
exportwikiinclude.1313090583.txt.gz · Last modified: 2018/07/18 14:09 (external edit)