3 * AJAX Backend Function for plugin_xfortune
5 * @author Andreas Gohr <andi@splitbrain.org>
8 //fix for Opera XMLHttpRequests
9 if(!count($_POST) && $HTTP_RAW_POST_DATA){
10 parse_str($HTTP_RAW_POST_DATA, $_POST);
13 if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__
).'/../../../').'/');
14 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC
.'lib/plugins/');
15 require_once(DOKU_INC
.'inc/init.php');
17 session_write_close();
19 require_once(DOKU_INC
.'inc/pageutils.php');
20 require_once(DOKU_INC
.'inc/utf8.php');
21 require_once(DOKU_PLUGIN
.'xfortune/syntax.php');
23 header('Content-Type: text/html; charset=utf-8');
24 $cookie = cleanID($_POST['cookie']);
25 print syntax_plugin_xfortune
::_getCookie($cookie);