Subversion-Projekte lars-tiefland.ci

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php

    //$Id: tracking.php 437 2012-06-14 11:07:55Z tiefland $

    /**
     * @author Lars Tiefland <tiefland@weban.de>
     * @copyright 2008 Webagentur Niewerth
     * @package Content-management
     * @version 1.0.0
     * @license propietary
     * @filesource
     * 
     */

    /**
     * 
     * @author Lars Tiefland <tiefland@weban.de>
     * @copyright 2008 Webagentur Niewerth
     * @package Content-management
     */
    require_once  "../../Online-Shop/connect2.php";

    if ( isset( $user_rechte["Warenwirtschaft"]["tracking"]["gls_track"] ) )
    {
        $text = "GLS ";
    } elseif ( isset( $user_rechte["Warenwirtschaft"]["tracking"]["dhl_track"] ) )
    {
        $text = "DHL ";
    }
    $text .= "Tracking";
    
    $b_name = $_GET["img"];
    
    $img = imagecreatefromgif( "$b_name" );
    $color = ImageColorAllocate( $img, 0, 0, 0 );
    
    imagettftext( $img, 7, 0, 6, 38, $color, "../../fonts/arial.ttf", $text );
    header( "Content-type:image/gif" );
    imagegif( $img );
?>