1<?php 2/** 3 * Connector to Dokuwiki Input class 4 * sanitizes $_REQUEST variables 5 * @author Myron Turner 6 */ 7 8if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../../../../../../').'/'); 9require_once(DOKU_INC.'inc/Input.class.php'); 10global $INPUT; 11if(!isset($INPUT)) { 12 $INPUT = new Input(); 13} 14 15function input_strval($which, $cmp="") { 16global $INPUT; 17 18 $val = $INPUT->str($which); 19 if($cmp) return $cmp == $val; 20 return $val; 21} 22 23?>