X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal.php;h=3ebcd991fc168c11a1371cfd80e1386f14ad9fc5;hb=67f95129c935e3844b9ecf996bb29f979ef3ca7f;hp=03883d4ce4c23e68dea72aa08a7df28621a63e64;hpb=12262f1306059765d8625a6752364679c8625d31;p=platal.git diff --git a/modules/platal.php b/modules/platal.php index 03883d4..3ebcd99 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -21,7 +21,7 @@ function bugize($list) { - $list = split(',', $list); + $list = preg_split('/,/', Env::s('libs'), -1, PREG_SPLIT_NO_EMPTY); $ans = array(); foreach ($list as $bug) { @@ -59,7 +59,7 @@ class PlatalModule extends PLModule ); } - function handler_index(&$page) + function handler_index($page) { // Include X-XRDS-Location response-header for Yadis discovery global $globals; @@ -73,14 +73,14 @@ class PlatalModule extends PLModule } } - function handler_cacert(&$page) + function handler_cacert($page) { pl_cached_content_headers("application/x-x509-ca-cert"); readfile("/etc/ssl/xorgCA/cacert.pem"); exit; } - function handler_changelog(&$page, $core = null) + function handler_changelog($page, $core = null) { $page->changeTpl('platal/changeLog.tpl'); @@ -129,7 +129,7 @@ class PlatalModule extends PLModule } } - function handler_prefs(&$page) + function handler_prefs($page) { $page->changeTpl('platal/preferences.tpl'); $page->setTitle('Mes préférences'); @@ -146,7 +146,7 @@ class PlatalModule extends PLModule } } - function handler_webredir(&$page) + function handler_webredir($page) { $page->changeTpl('platal/webredirect.tpl'); $page->setTitle('Redirection de page WEB'); @@ -185,7 +185,7 @@ class PlatalModule extends PLModule $page->assign('bestalias', $res->fetchOneCell()); } - function handler_prefs_rss(&$page) + function handler_prefs_rss($page) { $page->changeTpl('platal/filrss.tpl'); @@ -197,7 +197,7 @@ class PlatalModule extends PLModule } } - function handler_password(&$page) + function handler_password($page) { global $globals; @@ -228,11 +228,10 @@ class PlatalModule extends PLModule } $page->changeTpl('platal/password.tpl'); - $page->addJsLink('password.js'); $page->setTitle('Mon mot de passe'); } - function handler_smtppass(&$page) + function handler_smtppass($page) { $page->changeTpl('platal/acces_smtp.tpl'); $page->setTitle('Acces SMTP/NNTP'); @@ -266,7 +265,7 @@ class PlatalModule extends PLModule $page->assign('actif', $res->fetchOneCell()); } - function handler_recovery(&$page) + function handler_recovery($page) { global $globals; @@ -348,7 +347,7 @@ Adresse de secours : " . Post::v('email') : "")); S::logger($user->id())->log('recovery', $mails); } - function handler_tmpPWD(&$page, $certif = null) + function handler_tmpPWD($page, $certif = null) { global $globals; // XXX: recovery requires data from the profile @@ -387,11 +386,10 @@ Adresse de secours : " . Post::v('email') : "")); $page->changeTpl('platal/tmpPWD.success.tpl'); } else { $page->changeTpl('platal/password.tpl'); - $page->addJsLink('password.js'); } } - function handler_skin(&$page) + function handler_skin($page) { global $globals; @@ -420,7 +418,7 @@ Adresse de secours : " . Post::v('email') : "")); $page->assign('skins', XDB::iterator($sql)); } - function handler_exit(&$page, $level = null) + function handler_exit($page, $level = null) { if (S::suid()) { $old = S::user()->login(); @@ -454,7 +452,7 @@ Adresse de secours : " . Post::v('email') : "")); } } - function handler_review(&$page, $action = null, $mode = null) + function handler_review($page, $action = null, $mode = null) { // Include X-XRDS-Location response-header for Yadis discovery global $globals;