From 0ae8cbf5c0b1a198b963490985b7738392ebcb97 Mon Sep 17 00:00:00 2001 From: ahriman Date: Mon, 3 Dec 2018 19:22:25 -0500 Subject: installed dokuwiki, added to navbar, updated news --- wiki/lib/exe/ajax.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 wiki/lib/exe/ajax.php (limited to 'wiki/lib/exe/ajax.php') diff --git a/wiki/lib/exe/ajax.php b/wiki/lib/exe/ajax.php new file mode 100644 index 0000000..55f1c87 --- /dev/null +++ b/wiki/lib/exe/ajax.php @@ -0,0 +1,25 @@ + + */ + +if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../'); +require_once(DOKU_INC . 'inc/init.php'); + +//close session +session_write_close(); + +// default header, ajax call may overwrite it later +header('Content-Type: text/html; charset=utf-8'); + +//call the requested function +global $INPUT; +if($INPUT->has('call')) { + $call = $INPUT->filter('utf8_stripspecials')->str('call'); + new \dokuwiki\Ajax($call); +} else { + http_status(404); +} -- cgit 1.4.1-2-gfad0