From 86136c76d3aa444fad543bc0e3b12704984d6579 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 4 Jul 2006 20:32:32 +0000 Subject: [PATCH] make banana work again. git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@368 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/img/I.gif | Bin 0 -> 68 bytes htdocs/img/L-direct.gif | Bin 0 -> 73 bytes htdocs/img/L.gif | Bin 0 -> 67 bytes htdocs/img/T-direct.gif | Bin 0 -> 77 bytes htdocs/img/T.gif | Bin 0 -> 71 bytes htdocs/img/e.gif | Bin 0 -> 42 bytes htdocs/img/k1.gif | Bin 0 -> 61 bytes htdocs/img/k2.gif | Bin 0 -> 66 bytes htdocs/img/s-direct.gif | Bin 0 -> 61 bytes htdocs/img/s.gif | Bin 0 -> 55 bytes htdocs/xface.php | 6 ++++++ modules/banana.php | 11 +---------- 12 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 htdocs/img/I.gif create mode 100644 htdocs/img/L-direct.gif create mode 100644 htdocs/img/L.gif create mode 100644 htdocs/img/T-direct.gif create mode 100644 htdocs/img/T.gif create mode 100644 htdocs/img/e.gif create mode 100644 htdocs/img/k1.gif create mode 100644 htdocs/img/k2.gif create mode 100644 htdocs/img/s-direct.gif create mode 100644 htdocs/img/s.gif create mode 100644 htdocs/xface.php diff --git a/htdocs/img/I.gif b/htdocs/img/I.gif new file mode 100644 index 0000000000000000000000000000000000000000..a7cb3a2c4a64cd64e6512c5a28d33bc0fa25e4bc GIT binary patch literal 68 zcmZ?wbhEHb0r5dH3{28J%*$u(e#_U>;gy|srO!Sl RQI5H9dc?99S(U5|)&Mv*6Egq+ literal 0 HcmV?d00001 diff --git a/htdocs/img/L-direct.gif b/htdocs/img/L-direct.gif new file mode 100644 index 0000000000000000000000000000000000000000..4884f3f2159c9ea4eec251977ff40bb1718fc14a GIT binary patch literal 73 zcmZ?wbhEHb|tka%#E_+oa!e9*m|34Bx literal 0 HcmV?d00001 diff --git a/htdocs/img/L.gif b/htdocs/img/L.gif new file mode 100644 index 0000000000000000000000000000000000000000..171dcb625bd0365954665581d170a3211df7cbfa GIT binary patch literal 67 zcmZ?wbhEHb0r5dH3`|lz%*$u(e#_U>;gy|srO&>H R;n9o6XPwJl%@Sj<1^_oy6z2c{ literal 0 HcmV?d00001 diff --git a/htdocs/img/T-direct.gif b/htdocs/img/T-direct.gif new file mode 100644 index 0000000000000000000000000000000000000000..1f470839ca9b5623804e55e700291330ac74ec9b GIT binary patch literal 77 zcmZ?wbhEHb|rHOLP^Oi16dztOV%3uuuMZ6OK literal 0 HcmV?d00001 diff --git a/htdocs/img/T.gif b/htdocs/img/T.gif new file mode 100644 index 0000000000000000000000000000000000000000..cf2335f6da2d4f18f83fbb5b76205a010d070533 GIT binary patch literal 71 zcmZ?wbhEHb0r5dH3`}x8%*$u(e#_U>;gy|srO&>H V;gLlpPexqCtcCA>>9I0c0|0yV6$AhP literal 0 HcmV?d00001 diff --git a/htdocs/img/e.gif b/htdocs/img/e.gif new file mode 100644 index 0000000000000000000000000000000000000000..e92eaac290eb94ef378e40d3d96c9a69d29df71c GIT binary patch literal 42 ncmZ?wbhEHbWMp7uXkcLY4+e@qSr{3BKnFyCWEhwjT^OtZ45|tA literal 0 HcmV?d00001 diff --git a/htdocs/img/k1.gif b/htdocs/img/k1.gif new file mode 100644 index 0000000000000000000000000000000000000000..9cbf0a4ce9f77a8418c37a0b615ec15d2ef3163b GIT binary patch literal 61 zcmZ?wbhEHb0r5dH3``h#ku LTOREYVXy`O$P^MT literal 0 HcmV?d00001 diff --git a/htdocs/img/k2.gif b/htdocs/img/k2.gif new file mode 100644 index 0000000000000000000000000000000000000000..37eb3680d0793e6430332d6b022b0bded6a93ac5 GIT binary patch literal 66 zcmZ?wbhEHb0r5dH3`~+e{VPx3Wmp_Dfl2zw+Aj6} PjHnYaA)WKw85yhr8dnmQ literal 0 HcmV?d00001 diff --git a/htdocs/img/s-direct.gif b/htdocs/img/s-direct.gif new file mode 100644 index 0000000000000000000000000000000000000000..211816c324869a4a6b28d1226cea3bef9d91ea17 GIT binary patch literal 61 zcmZ?wbhEHb0r5dH3`~4I{VPwu literal 0 HcmV?d00001 diff --git a/htdocs/xface.php b/htdocs/xface.php new file mode 100644 index 0000000..ca3d136 --- /dev/null +++ b/htdocs/xface.php @@ -0,0 +1,6 @@ + diff --git a/modules/banana.php b/modules/banana.php index 2a32c71..b853065 100644 --- a/modules/banana.php +++ b/modules/banana.php @@ -26,14 +26,13 @@ class BananaModule extends PLModule return array( 'banana' => $this->make_hook('banana', AUTH_COOKIE), 'banana/profile' => $this->make_hook('profile', AUTH_MDP), - 'banana/xface' => $this->make_hook('xface', AUTH_PUBLIC), ); } function handler_banana(&$page) { $page->changeTpl('banana/index.tpl'); - $page->addCssLink('css/banana/style.css'); + $page->addCssLink('css/banana.css'); $page->assign('xorg_title','Polytechnique.org - Forums & PA'); require_once 'banana.inc.php'; @@ -83,14 +82,6 @@ class BananaModule extends PLModule return PL_OK; } - - function handler_xface(&$page) - { - header('Content-Type: image/jpeg'); - passthru('echo '.escapeshellarg(base64_decode($_REQUEST['face'])). - '|uncompface -X |convert xbm:- jpg:-'); - exit; - } } ?> -- 2.1.4