1<?php 2//fix for Opera XMLHttpRequests 3if(!count($_POST) && $HTTP_RAW_POST_DATA){ 4 parse_str($HTTP_RAW_POST_DATA, $_POST); 5} 6 7if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); 8require_once(DOKU_INC.'inc/init.php'); 9require_once(DOKU_INC.'inc/common.php'); 10require_once(DOKU_INC.'inc/pageutils.php'); 11require_once(DOKU_INC.'inc/auth.php'); 12//close sesseion 13session_write_close(); 14header('Content-Type: text/plain; charset=utf-8'); 15 16$text = $_POST['text']; 17$id = $_POST['id']; 18$user = $_SERVER['REMOTE_USER']; 19 20$sig = md5($id.$user.trim($text).auth_cookiesalt()); 21 22echo '{{',$text,' $$',$sig,'--',$user,'$$}}'; 23