// if ($mode == 'topicreview') { require $phpbb_root_path . 'includes/topic_review.' . $phpEx; topic_review($topic_id, false); exit; } else { if ($mode == 'smilies') { generate_smilies('window', PAGE_POSTING); exit; } else { if ($mode == 'smilies_announcement_text') { generate_smilies('window_announcement_text', PAGE_POSTING); exit; } else { if ($mode == 'charmap') { charmap(PAGE_POSTING); exit; } } } } //-- fin mod : bbcode box reloaded --------------------------------------------- // // Start session management // $userdata = session_pagestart($user_ip, PAGE_POSTING); init_userprefs($userdata); // // End session management // if ($userdata['user_cell_time'] > 0 && !defined('CELL') && $userdata['session_logged_in'] && $userdata['user_level'] != ADMIN && ($userdata['user_cell_punishment'] == 2 || $userdata['user_cell_punishment'] == 3)) {
if (FALSE) { echo '<pre>'; print_r(mb_list_encodings()); echo '</pre>'; } // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The string with character sets for ($i = 0; $i < 25; $i++) { $text .= chr($i); } //$text = implode('', range(a,z)); //$text .= implode('', range(0,z)); // Replace path by your own font path $font = '/Library/Fonts/Arial.ttf'; // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Set the content-type header('Content-Type: image/png'); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im, 'foo.png'); imagedestroy($im); die; require_once 'php_character_map_generator.php'; charmap("/Library/Fonts/Arial.ttf", 14, range(0, 255), "png|9"); die;