1<?php 2/** 3 * DokuWiki AJAX call handler 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Adrian Lang <lang@cosmocode.de> 8 */ 9 10//fix for Opera XMLHttpRequests 11if(!count($_POST) && !empty($HTTP_RAW_POST_DATA)){ 12 parse_str($HTTP_RAW_POST_DATA, $_POST); 13} 14 15if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); 16require_once DOKU_INC.'inc/init.php'; 17//close session 18session_write_close(); 19 20header('Content-Type: text/html; charset=utf-8'); 21 22if(isset($_POST['call'])) 23 $call = $_POST['call']; 24else if(isset($_GET['call'])) 25 $call = $_GET['call']; 26else 27 exit; 28 29 30include 'common.php'; 31 32# Fallback if everything fails 33include DOKU_INC.'lib/exe/ajax.php'; 34 35//Setup VIM: ex: et ts=2 enc=utf-8 : 36