Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
904 lars 1
<?php
2
 
3
    //$Id: tracking.php 437 2012-06-14 11:07:55Z tiefland $
4
 
5
    /**
6
     * @author Lars Tiefland <tiefland@weban.de>
7
     * @copyright 2008 Webagentur Niewerth
8
     * @package Content-management
9
     * @version 1.0.0
10
     * @license propietary
11
     * @filesource
12
     *
13
     */
14
 
15
    /**
16
     *
17
     * @author Lars Tiefland <tiefland@weban.de>
18
     * @copyright 2008 Webagentur Niewerth
19
     * @package Content-management
20
     */
21
    require_once  "../../Online-Shop/connect2.php";
22
 
23
    if ( isset( $user_rechte["Warenwirtschaft"]["tracking"]["gls_track"] ) )
24
    {
25
        $text = "GLS ";
26
    } elseif ( isset( $user_rechte["Warenwirtschaft"]["tracking"]["dhl_track"] ) )
27
    {
28
        $text = "DHL ";
29
    }
30
    $text .= "Tracking";
31
 
32
    $b_name = $_GET["img"];
33
 
34
    $img = imagecreatefromgif( "$b_name" );
35
    $color = ImageColorAllocate( $img, 0, 0, 0 );
36
 
37
    imagettftext( $img, 7, 0, 6, 38, $color, "../../fonts/arial.ttf", $text );
38
    header( "Content-type:image/gif" );
39
    imagegif( $img );
40
?>