From: x2000habouzit Date: Fri, 29 Oct 2004 02:50:14 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~1139 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ce31ed6622c27cdfa3fd50ccd02f61479d352e24;p=platal.git backport --- diff --git a/htdocs/banana/xface.php b/htdocs/banana/xface.php index cff7f97..4edd725 100644 --- a/htdocs/banana/xface.php +++ b/htdocs/banana/xface.php @@ -1,18 +1,8 @@ caching = false; -require('hack.inc.php'); +$face = base64_decode($_REQUEST['face']); +$face = ereg_replace("'", "'\\''", $face); -$page->register_function('banana', 'banana', false); - -$page->run(); +header("Content-Type: image/png"); +passthru("echo '$face'|uncompface -X |convert xbm:- png:-"); ?>