$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) { $this->load('poison.inc.php'); if ($seed == null) { $seed = time(); } $emails = get_poison_emails($seed, $count); foreach ($emails as $email) { echo $email . "\n"; } 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; $this->load('poison.inc.php'); if ($seed == null) { $seed = time(); } $emails = get_poison_emails($seed, $count); echo ''; foreach ($emails as $email) { echo "$email". "\n"; } echo 'suite'; exit; } function handler_rand($page) { $this->load('poison.inc.php'); randomize_poison_file(); exit; } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>