From 8935dd2824f6013b6690320849e5bcb87fff9d7f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 30 Oct 2008 21:38:28 +0100 Subject: [PATCH] Add /pet/ to get emails inside tags without . Fix links in footer, add links on xnet footer. Signed-off-by: Florent Bruneau --- modules/poison.php | 18 ++++++++++++++++++ templates/skin/common.footer.tpl | 4 ++-- templates/xnet/skin.tpl | 8 ++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/modules/poison.php b/modules/poison.php index b012756..4aa51a3 100644 --- a/modules/poison.php +++ b/modules/poison.php @@ -28,6 +28,7 @@ class PoisonModule extends PLModule return array( 'pe' => $this->make_hook('poison', AUTH_PUBLIC, 'user', NO_HTTPS), 'pem' => $this->make_hook('mailto', AUTH_PUBLIC, 'user', NO_HTTPS), + 'pet' => $this->make_hook('tags', AUTH_PUBLIC, 'user', NO_HTTPS), // 'per' => $this->make_hook('rand', AUTH_PUBLIC, 'user', NO_HTTPS), ); } @@ -46,6 +47,23 @@ class PoisonModule extends PLModule exit; } + function handler_tags(&$page, $seed = null, $count = 20) + { + global $globals; + + $this->load('poison.inc.php'); + if ($seed == null) { + $seed = time(); + } + $emails = get_poison_emails($seed, $count); + + foreach ($emails as $email) { + echo "$email". "\n"; + } + echo 'suite'; + exit; + } + function handler_mailto(&$page, $seed = null, $count = 20) { global $globals; diff --git a/templates/skin/common.footer.tpl b/templates/skin/common.footer.tpl index 5488929..708acbd 100644 --- a/templates/skin/common.footer.tpl +++ b/templates/skin/common.footer.tpl @@ -35,8 +35,8 @@ {/if}
- Liste1 - Liste2 + Liste1 + Liste2 diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index bbdc9af..4bf4f96 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -30,6 +30,7 @@ + @@ -231,6 +232,13 @@ {/if}
Plat/al {#globals.version#} - © Copyright 2000-2008 Association Polytechnique.org +
+ Liste1 + Liste2 + +
{/if} -- 2.1.4