whatever.php-mod von esperidox
Verfasst: 25.09.2004 12:58
warum geht das bei mir nicht, habt ihr ne idee?
das bild ist png und mit dem server passt auch alles. ist mit dem whatever.php was falsch?
das bild ist png und mit dem server passt auch alles. ist mit dem whatever.php was falsch?
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$image = "myphpbb.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 0, 0, 0);
$version = '2'.$board_config['version'];
$sitename = $board_config['sitename'];
$total_users = get_db_stat('usercount');
$total_posts = get_db_stat('postcount');
$total_topics = get_db_stat('topiccount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
ImageString($im, 3, 75, 2, "Nahrung für Seele und Geist $sitename", $tc);
ImageString($im, 2, 75, 25, "Mitglieder: $total_users", $tc);
ImageString($im, 2, 75, 35, "Gepostet: $total_posts Beiträge in $total_topics Themen", $tc);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>