X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fgoogleapps.php;h=dd3e97ec81c8cf6b11eb44196a4f0095eb8a5da7;hb=0f8ca11e1375bbc76ba1da0b6d1b4448ab5cf70e;hp=263a24d3f5156611c95d8b7aa998b14f9c3db855;hpb=1c0419d6b4c94643bfa7bed9a6b435bbdbbae02f;p=platal.git diff --git a/modules/googleapps.php b/modules/googleapps.php index 263a24d..dd3e97e 100644 --- a/modules/googleapps.php +++ b/modules/googleapps.php @@ -1,6 +1,6 @@ $this->make_hook('index', AUTH_MDP), + 'googleapps' => $this->make_hook('index', AUTH_MDP, 'mail'), 'admin/googleapps' => $this->make_hook('admin', AUTH_MDP, 'admin'), 'admin/googleapps/job' => $this->make_hook('admin_job', AUTH_MDP, 'admin'), 'admin/googleapps/user' => $this->make_hook('admin_user', AUTH_MDP, 'admin'), ); } - function handler_index(&$page, $action = null) + function handler_index($page, $action = null) { require_once("emails.inc.php"); require_once("googleapps.inc.php"); $page->changeTpl('googleapps/index.tpl'); - $page->addJsLink('password.js'); $page->setTitle('Compte Google Apps'); $user = S::user(); @@ -115,7 +114,7 @@ class GoogleAppsModule extends PLModule $page->assign('account', $account); } - function handler_admin(&$page, $action = null) { + function handler_admin($page, $action = null) { require_once("googleapps.inc.php"); $page->changeTpl('googleapps/admin.tpl'); $page->setTitle('Administration Google Apps'); @@ -161,7 +160,7 @@ class GoogleAppsModule extends PLModule $page->assign('failed_requests', $res); } - function handler_admin_job(&$page, $job = null) { + function handler_admin_job($page, $job = null) { require_once("googleapps.inc.php"); $page->changeTpl('googleapps/admin.job.tpl'); $page->setTitle('Administration Google Apps'); @@ -180,7 +179,7 @@ class GoogleAppsModule extends PLModule } } - function handler_admin_user(&$page, $user = null) { + function handler_admin_user($page, $user = null) { require_once("emails.inc.php"); require_once("googleapps.inc.php"); $page->changeTpl('googleapps/admin.user.tpl');