make banana work again.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 4 Jul 2006 20:32:32 +0000 (20:32 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 4 Jul 2006 20:32:32 +0000 (20:32 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@368 839d8a87-29fc-0310-9880-83ba4fa771e5

12 files changed:
htdocs/img/I.gif [new file with mode: 0644]
htdocs/img/L-direct.gif [new file with mode: 0644]
htdocs/img/L.gif [new file with mode: 0644]
htdocs/img/T-direct.gif [new file with mode: 0644]
htdocs/img/T.gif [new file with mode: 0644]
htdocs/img/e.gif [new file with mode: 0644]
htdocs/img/k1.gif [new file with mode: 0644]
htdocs/img/k2.gif [new file with mode: 0644]
htdocs/img/s-direct.gif [new file with mode: 0644]
htdocs/img/s.gif [new file with mode: 0644]
htdocs/xface.php [new file with mode: 0644]
modules/banana.php

diff --git a/htdocs/img/I.gif b/htdocs/img/I.gif
new file mode 100644 (file)
index 0000000..a7cb3a2
Binary files /dev/null and b/htdocs/img/I.gif differ
diff --git a/htdocs/img/L-direct.gif b/htdocs/img/L-direct.gif
new file mode 100644 (file)
index 0000000..4884f3f
Binary files /dev/null and b/htdocs/img/L-direct.gif differ
diff --git a/htdocs/img/L.gif b/htdocs/img/L.gif
new file mode 100644 (file)
index 0000000..171dcb6
Binary files /dev/null and b/htdocs/img/L.gif differ
diff --git a/htdocs/img/T-direct.gif b/htdocs/img/T-direct.gif
new file mode 100644 (file)
index 0000000..1f47083
Binary files /dev/null and b/htdocs/img/T-direct.gif differ
diff --git a/htdocs/img/T.gif b/htdocs/img/T.gif
new file mode 100644 (file)
index 0000000..cf2335f
Binary files /dev/null and b/htdocs/img/T.gif differ
diff --git a/htdocs/img/e.gif b/htdocs/img/e.gif
new file mode 100644 (file)
index 0000000..e92eaac
Binary files /dev/null and b/htdocs/img/e.gif differ
diff --git a/htdocs/img/k1.gif b/htdocs/img/k1.gif
new file mode 100644 (file)
index 0000000..9cbf0a4
Binary files /dev/null and b/htdocs/img/k1.gif differ
diff --git a/htdocs/img/k2.gif b/htdocs/img/k2.gif
new file mode 100644 (file)
index 0000000..37eb368
Binary files /dev/null and b/htdocs/img/k2.gif differ
diff --git a/htdocs/img/s-direct.gif b/htdocs/img/s-direct.gif
new file mode 100644 (file)
index 0000000..211816c
Binary files /dev/null and b/htdocs/img/s-direct.gif differ
diff --git a/htdocs/img/s.gif b/htdocs/img/s.gif
new file mode 100644 (file)
index 0000000..4a45d92
Binary files /dev/null and b/htdocs/img/s.gif differ
diff --git a/htdocs/xface.php b/htdocs/xface.php
new file mode 100644 (file)
index 0000000..ca3d136
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+header('Content-Type: image/jpeg');
+passthru('echo '.escapeshellarg(base64_decode($_REQUEST['face'])).
+         '|uncompface -X |convert xbm:- jpg:-');
+
+?>
index 2a32c71..b853065 100644 (file)
@@ -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;
-    }
 }
 
 ?>