1<?php 2/** 3 * Backend library processing remotescripting calls 4 * 5 * @version: $Rev: 16 $ 6 * @lastmodified: $Date: 2006-12-21 02:21:38 +0300 (Чтв, 21 Дек 2006) $ 7 * @license: GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 * @author: Ilya Lebedev <ilya@lebedev.net> 9 * 10 */ 11 12if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); 13require_once (DOKU_INC.'inc/init.php'); 14require_once (DOKU_PLUGIN.'syntax.php'); 15 16 17class syntax_plugin_remotescript extends DokuWiki_Syntax_Plugin { 18 19 /** 20 * return some info 21 */ 22 function getInfo(){ 23 preg_match("/\\/[^\\.]*[\\.\\/]([^\\/]+)\\/[\\w\\.\\s$]+$/"," $HeadURL: https://svn.debugger.ru/repos/common/DokuWiki/RemoteScript/tags/RemoteScript.v0.9/syntax.php $ ", $v); 24 $b = preg_replace("/\\D/","", " $Rev: 16 $ "); 25 26 return array( 'author' => "Ilya Lebedev" 27 ,'email' => 'ilya@lebedev.net' 28 ,'date' => '2006-12-21' 29 ,'name' => "RemoteScript {$v[1]}.$b" 30 ,'desc' => "Backend for the remote scripting facility. Controller code taken from http://en.dklab.ru/lib/JsHttpRequest/" 31 ,'url' => 'https://www.dokuwiki.org/plugin:remotescript' 32 ); 33 } 34 35 /** 36 * What kind of syntax are we? 37 */ 38 function getType(){ 39 return 'virtual'; 40 } 41 42 /** 43 * Where to sort in? 44 */ 45 function getSort(){ 46 return 1; 47 } 48 49 /** 50 * Connect pattern to lexer 51 */ 52 function connectTo($mode) { 53 } 54 55 /** 56 * Handle the match 57 */ 58 function handle($match, $state, $pos, &$handler){ 59 } 60 61 /** 62 * Render output 63 */ 64 function render($mode, &$renderer, $data) { 65 } 66 67} //RemoteScript class end 68 69//Setup VIM: ex: et ts=4 enc=utf-8 : 70