1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- header("Content-type: image/png");
- $string = htmlspecialchars($_GET["WaNr"]);
- $posi = htmlspecialchars($_GET["Posi"]);
- $nfcid = htmlspecialchars($_GET["Nfcid"]);
- //$stringposi = htmlspecialchars($_GET["Position"]);
- $im = imagecreatefrompng("background_klein.png");
- //$im = imagecreate( 1920, 1080 );
- $background = imagecolorallocate( $im, 255, 255, 255 );
- $grey = imagecolorallocate( $im, 30, 30, 30 );
- $font = './OpenSans.ttf';
- imagettftext($im, 40, 0, 20, 50, $grey, $font, "Bitte eine Seriennummer zu diesen Daten scannen:");
- imagettftext($im, 40, 0, 20, 180, $grey, $font, "WA-NR: " . $string);
- imagettftext($im, 40, 0, 20, 250, $grey, $font, "Position: " . $posi);
- imagettftext($im, 20, 0, 20, 350, $grey, $font, "NFC ID: " . $nfcid);
- //imagettftext($im, 50, 0, 200, 630, $grey, $font, "Stimmt die Position: " . $stringposi);
- imagepng($im);
- imagedestroy($im);
- ?>
|