$v){ if($v == "images"){ $sn = $n; continue; } } $style = urldecode($req_vars[($sn+1)]); $text = str_replace(".png", "", html_entity_decode(urldecode($req_vars[($sn+2)]))); if(!isset($text) || !isset($style)){ header("HTTP/1.0 404 Not Found"); exit(0); }else{ $gzip = isset($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING']) ? strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ? 1 : 0 : 0; require_once(ANYFONT_LIBDIR."/class.image.php"); new txtImage($text, $style, $gzip); } //check for required php modules // function check_module($module){ // $prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : ''; // if(!extension_loaded($module)){ // $display_errors = ini_get("display_errors"); // ($display_errors == 1) ? ini_set("display_errors", 0) : 0; // $result = dl($prefix."{$module}.".PHP_SHLIB_SUFFIX); // ($display_errors == 1) ? ini_set("display_errors", 1) : 0; // return $result; // } // return true; // } ?>