1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- header("Content-type: image/png");
- $wanr = htmlspecialchars($_GET["WaNr"]);
- $posi = htmlspecialchars($_GET["Posi"]);
- $prcode = htmlspecialchars($_GET["Produktcode"]);
- $scan1 = htmlspecialchars($_GET["ScanInnen"]);
- $scan2 = htmlspecialchars($_GET["ScanAussen"]);
- //$stringposi = htmlspecialchars($_GET["Position"]);
- $im = imagecreatefrompng("background.png");
- //$im = imagecreate( 1920, 1080 );
- $background = imagecolorallocate( $im, 255, 255, 255 );
- $grey = imagecolorallocate( $im, 30, 30, 30 );
- $font = './OpenSans.ttf';
- if(isset($_GET['WaNr']) && !empty($_GET['WaNr'])){
- imagettftext($im, 50, 0, 200, 550, $grey, $font, "WA-NR: " . $wanr);
- }
- if(isset($_GET['Posi']) && !empty($_GET['Posi'])){
- imagettftext($im, 50, 0, 200, 650, $grey, $font, "Posi: " . $posi);
- }
- if(isset($_GET['Produktcode']) && !empty($_GET['Produktcode'])){
- imagettftext($im, 50, 0, 200, 750, $grey, $font, "Produktcode: " . urldecode($prcode));
- }
- if(isset($_GET['ScanInnen']) && !empty($_GET['ScanInnen'])){
- imagettftext($im, 50, 0, 200, 850, $grey, $font, "Scan Innen: " . $scan1);
- }
- if(isset($_GET['ScanAussen']) && !empty($_GET['ScanAussen'])){
- imagettftext($im, 50, 0, 200, 950, $grey, $font, "Scan Außen: " . $scan2);
- }
- //imagettftext($im, 50, 0, 200, 630, $grey, $font, "Stimmt die Position: " . $stringposi);
- imagepng($im);
- imagedestroy($im);
- ?>
|