"; } /** * Function to determine if minimax has been activated. * * @access public */ function minimax() { return true; } /** * Function to determine minimax version. * * @access public */ function minimax_version() { return 0.2; } /** * A kind of readfile function to determine if use Curl or fopen. * * @access public * @param string filename URI of the File to open * @return The content of the file */ function mnmx_readfile($filename) { $data=false; if(function_exists(curl_init)) { $ch = curl_init($filename); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $data=curl_exec($ch); curl_close($ch); } else { if($fop = @fopen($filename, 'r')) { $data = null; while(!feof($fop)) $data .= fread($fop, 1024); fclose($fop); } } return $data; } ?>