function create_error($text) { require 'classes/graphic/class.text2image.php'; $img = new text2image(); $img->prepare(preg_replace("/<br>/is", "\r\n", $text), 0, 8, '../fonts/trebuchet.ttf'); $img->build(4); $img->output(); exit; }
function create_error($text) { require 'classes/graphic/class.text2image.php'; $img = new text2image(); $img->prepare($text, 0, 8); $img->build(4); $img->output(); exit; }
if (!empty($_GET['bg']) && strlen($_GET['bg']) > 2) { $bg = $_GET['bg']; } else { $bg = 'ffffff'; } if (!empty($_GET['fg']) && strlen($_GET['fg']) > 2) { $fg = $_GET['fg']; } else { $fg = '000000'; } $img->prepare($_GET['text'], $_GET['angle'], $_GET['size'], 'classes/fonts/trebuchet.ttf'); if (!empty($_REQUEST['enc'])) { $img->base64(); } $img->build(4, $bg, $fg); $img->output(); } elseif ($_GET['action'] == 'postrating' || $_GET['action'] == 'memberrating' || $_GET['action'] == 'threadrating') { $colors = array('FF0000', 'E44C00', 'E89A00', 'EBE700', '9EE800', '4DE400'); if ($_GET['action'] == 'memberrating' && ($config['postrating'] == 1 || $my->p['admin'] == 1)) { $result = $db->query("SELECT rating FROM {$db->pre}postratings WHERE aid = '{$_GET['id']}'"); $width = 100; $height = 8; } elseif ($_GET['action'] == 'postrating' && ($config['postrating'] == 1 || $my->p['admin'] == 1)) { $result = $db->query("SELECT rating FROM {$db->pre}postratings WHERE pid = '{$_GET['id']}'"); $width = 50; $height = 8; } elseif ($_GET['action'] == 'threadrating' && ($config['postrating'] == 1 || $my->p['admin'] == 1)) { $result = $db->query("SELECT rating FROM {$db->pre}postratings WHERE tid = '{$_GET['id']}'"); $width = 50; $height = 8; } else {
function makeImage() { require 'classes/graphic/class.text2image.php'; $img = new text2image(); $img->prepare('Internal image creation not supported by reCaptcha.', 0, 8); $img->build(4); $img->output(); }