Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
// Markus Niewerth 
// (c) 2007 Weban.de


// Fehlerbehandlung
error_reporting(E_ALL & ~E_NOTICE);
ini_set("register_globals", "On");

// Klasse includen
require_once('module/Email_Safe/Email_Safe.class.php');

// Email leer, das ist Horror, also abbrechen!
if (!$_GET['email']) {
        die();
}
// Font Groesse pruefen
if (!$_GET['fsize']) {
        $_GET['fsize'] = 8;
}
// Fonttyp bestimmen
if (!$_GET['font']) {
        $_GET['font'] = 4;
}
// Fontfarbe 
if (!$_GET['fontcolor']) {
        $_GET['fontcolor'] = '0,0,0';
}
// Hintergrundfarbe 
if (!$_GET['bgcolor']) {
        $_GET['bgcolor'] = '255,255,255';
}
// Soll ein Bild ins Hauptbild kopiert werden
// und als Bildrohling genommen werden?
if (!$_GET['fromimage']) {
        $_GET['fromimage'] = false;
}
$eSafe = &new Email_Safe();
$eSafe->createEmailImage ($_GET['email'], $_GET['fsize'], $_GET['font'], $_GET['fontcolor'], $_GET['bgcolor'],$_GET['fromimage']);
?>