Re: Bild erstelen + MySQL
Verfasst: 23.08.2010 18:43
Stelle die Dateien mal bitte zum Download bereit. Irgenwo in Deinen Scripts gibt's ein Griff ins Klo... 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('memberlist', 'groups'));
// Grab data
$area = request_var('area', '');
$page_title = '"Meine Ecke"';
$template_html = 'area_body.html';
// Start output of page
page_header($page_title);
$template->set_filenames(array(
'body' => 'area_body.html')
);
page_footer();
?>
Code: Alles auswählen
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_header.html -->
<!-- ELSE -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<img src='../../../images/area/area.php'/>
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_footer.html -->
<!-- ELSE -->
<br clear="all" />
<!-- INCLUDE breadcrumbs.html -->
<br clear="all" />
<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div>
<br clear="all" />
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
Code: Alles auswählen
<?php
/*
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin(false);
$auth->acl($user->data);
$user->setup();
$img = imagecreatetruecolor(500, 544);
$bild = imagecreatefrompng("area.png");
imagecopy($img, $bild, 0,0,0,0,imagesx($bild),imagesy($bild));
// Ausgabe des Bildes
//Send the image to the browser
header("Content-type: image/png");
@imagepng($img);
exit;
?>
Code: Alles auswählen
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../../';
$bild = imagecreatefrompng("../../area.png");
Code: Alles auswählen
<img src='images/area/area.php'/>