* * * * This file is part of PAB * * * * PHPAntiBot is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License. * * * * PHPAntiBot is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with PHPAntiBot; if not, write to the Free Software * * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * ****************************************************************************/ error_reporting(0); ini_set('display_errors', 'Off'); # on inclus le fichier contenant la classe de PAB require dirname(__FILE__).'/includes/class.PAB.php'; # création et affichage de l'image si la clée publique est donnée # et qu'une demande d'affichée une image est présente if(isset($_GET['ImagePAB']) && isset($_GET['PublicKey'])){ # on récupère l'image contenant un string déformé affichant la clée privée PAB::getInstance()->setMargeLettre(5); PAB::getInstance()->setAngleMax(20); PAB::getInstance()->setCopyResampled(false); $im = PAB::getInstance()->getImage(); # On affiche l'image à l'écran (dans le flux http) header('Content-Type: image/png'); header('Cache-control: no-cache, no-store'); imagepng($im); } ?>