Moving to GitHub.
[platal.git] / modules / poison.php
index 30fe082..a9d2263 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -26,14 +26,14 @@ class PoisonModule extends PLModule
     function handlers()
     {
         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),
+            '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),
         );
     }
 
-    function handler_poison(&$page, $seed = null, $count = 20)
+    function handler_poison($page, $seed = null, $count = 20)
     {
         $this->load('poison.inc.php');
         if ($seed == null) {
@@ -47,7 +47,7 @@ class PoisonModule extends PLModule
         exit;
     }
 
-    function handler_tags(&$page, $seed = null, $count = 20)
+    function handler_tags($page, $seed = null, $count = 20)
     {
         global $globals;
 
@@ -64,7 +64,7 @@ class PoisonModule extends PLModule
         exit;
     }
 
-    function handler_mailto(&$page, $seed = null, $count = 20)
+    function handler_mailto($page, $seed = null, $count = 20)
     {
         global $globals;
 
@@ -82,12 +82,12 @@ class PoisonModule extends PLModule
         exit;
     }
 
-    function handler_rand(&$page) {
+    function handler_rand($page) {
         $this->load('poison.inc.php');
         randomize_poison_file();
         exit;
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>