From d44e5fc7abee5d68b2d5b5fd4cf28f7b6b17a478 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 20 Sep 2007 23:57:12 +0200 Subject: [PATCH] Should not have committed this Signed-off-by: Florent Bruneau --- modules/platal.php | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/modules/platal.php b/modules/platal.php index 0489b10..4ba4740 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -39,7 +39,7 @@ class PlatalModule extends PLModule { return array( 'index' => $this->make_hook('index', AUTH_PUBLIC), - 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC), + 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC), 'changelog' => $this->make_hook('changelog', AUTH_PUBLIC), // Preferences thingies @@ -55,7 +55,6 @@ class PlatalModule extends PLModule 'password/smtp' => $this->make_hook('smtppass', AUTH_MDP), 'recovery' => $this->make_hook('recovery', AUTH_PUBLIC), 'exit' => $this->make_hook('exit', AUTH_PUBLIC), - 'review' => $this->make_hook('review', AUTH_PUBLIC), 'deconnexion.php' => $this->make_hook('exit', AUTH_PUBLIC), ); } @@ -418,39 +417,6 @@ Adresse de secours : " . Post::v('email') : "")); $page->changeTpl('platal/exit.tpl'); } } - - function handler_review(&$page, $action = null) - { - require_once 'wiki.inc.php'; - $dir = wiki_work_dir(); - $dom = 'Review'; - if (@$GLOBALS['IS_XNET_SITE']) { - $dom .= 'Xnet'; - } - if (!is_dir($dir)) { - $page->kill("Impossible de trouver le wiki"); - } - if (!file_exists($dir . '/' . $dom . '.Admin')) { - $page->kill("Impossible de trouver la page d'administration"); - } - $conf = preg_grep('/^text=/', explode("\n", file_get_contents($dir . '/' . $dom . '.Admin'))); - $conf = preg_split('/(text\=|\%0a)/', array_shift($conf), -1, PREG_SPLIT_NO_EMPTY); - $wiz = new PlWizard('Tour d\'horizon', 'core/plwizard.tpl', true); - foreach ($conf as $line) { - $list = preg_split('/\s*[*|]\s*/', $line, -1, PREG_SPLIT_NO_EMPTY); - $wiz->addPage('ReviewPage', $list[0], $list[1]); - } - $wiz->apply($page, 'review', $action); - } -} - -__autoload('PlWizard'); -class ReviewPage implements PlWizardPage -{ - public function __construct(PlWizard &$wiz) { } - public function template() { return 'platal/index.tpl'; } - public function prepare(PlatalPage &$page) { } - public function process() { } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: -- 2.1.4