note 69484 added to function.imagecreate

From: Date: Thu, 07 Sep 2006 11:45:33 +0000
Subject: note 69484 added to function.imagecreate
Groups: php.notes 
Request: Send a blank email to php-notes+get-116824@lists.php.net to get a copy of this message
Use image as javascript test There are two files - an image and an executive file. The image is loaded if the JavaScript is enabled. After (!) the page is loaded $_SESSION['js'] + 0 is 0 or 1. the image (js.img.php): <?php session_start(); $_SESSION['js'] = 1; header('Content-type: image/gif'); imagegif($im = imagecreate(1, 1)); imagedestroy($im); ?> the html file (file.php): <html> <head> <!-- <script type="text/javascript"> var img = new Image(); img.src = "js.img.php"; </script> --> </head> <body> <?php if ($_SESSION['js'] . '' == '') echo 'Not checked for JavaScript.'; else if ($_SESSION['js'] + 0 == 0) echo 'JavaScript is disabled.'; if ($_SESSION['js'] + 1 == 1) echo 'JavaScript is enabled.'; ?> </body> </html> There are much more hidden actions that you can do by "pictures". ---- Server IP: 212.124.37.9 Probable Submitter: 80.132.79.162 ---- Manual Page -- http://www.php.net/manual/en/function.imagecreate.php Edit -- https://master.php.net/note/edit/69484 Del: integrated -- https://master.php.net/note/delete/69484/integrated Del: useless -- https://master.php.net/note/delete/69484/useless Del: bad code -- https://master.php.net/note/delete/69484/bad+code Del: spam -- https://master.php.net/note/delete/69484/spam Del: non-english -- https://master.php.net/note/delete/69484/non-english Del: in docs -- https://master.php.net/note/delete/69484/in+docs Del: other reasons-- https://master.php.net/note/delete/69484 Reject -- https://master.php.net/note/reject/69484 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116824) next »