Some alignments.
[platal.git] / modules / profile.php
index 1c6466e..856dc5b 100644 (file)
@@ -24,43 +24,43 @@ class ProfileModule extends PLModule
     function handlers()
     {
         return array(
-            'photo'        => $this->make_hook('photo',        AUTH_PUBLIC),
-            'photo/change' => $this->make_hook('photo_change', AUTH_MDP),
-
-            'fiche.php'        => $this->make_hook('fiche',      AUTH_PUBLIC),
-            'profile'          => $this->make_hook('profile',    AUTH_PUBLIC),
-            'profile/private'  => $this->make_hook('profile',    AUTH_COOKIE),
-            'profile/ax'       => $this->make_hook('ax',         AUTH_COOKIE, 'admin'),
-            'profile/edit'     => $this->make_hook('p_edit',     AUTH_MDP),
-            'profile/ajax/address' => $this->make_hook('ajax_address', AUTH_COOKIE, 'user', NO_AUTH),
-            'profile/ajax/tel'     => $this->make_hook('ajax_tel',     AUTH_COOKIE, 'user', NO_AUTH),
-            'profile/ajax/medal'   => $this->make_hook('ajax_medal',   AUTH_COOKIE, 'user', NO_AUTH),
-            'profile/ajax/job'     => $this->make_hook('ajax_job',     AUTH_COOKIE, 'user', NO_AUTH),
-            'profile/ajax/secteur' => $this->make_hook('ajax_secteur', AUTH_COOKIE, 'user', NO_AUTH),
-            'profile/ajax/skill'   => $this->make_hook('ajax_skill',   AUTH_COOKIE, 'user', NO_AUTH),
-            'javascript/applis.js' => $this->make_hook('applis_js', AUTH_COOKIE),
-            'javascript/grades.js' => $this->make_hook('grades_js', AUTH_COOKIE),
-            'profile/medal'    => $this->make_hook('medal', AUTH_PUBLIC),
-            'profile/orange'   => $this->make_hook('p_orange',   AUTH_MDP),
-            'profile/usage'    => $this->make_hook('p_usage',    AUTH_MDP),
-
-            'referent'         => $this->make_hook('referent',   AUTH_COOKIE),
-            'emploi'           => $this->make_hook('ref_search', AUTH_COOKIE),
-            'referent/search'  => $this->make_hook('ref_search', AUTH_COOKIE),
-            'referent/ssect'   => $this->make_hook('ref_sect',   AUTH_COOKIE, 'user', NO_AUTH),
-            'referent/country' => $this->make_hook('ref_country', AUTH_COOKIE, 'user', NO_AUTH),
-
-            'groupes-x'        => $this->make_hook('xnet',      AUTH_COOKIE),
-
-            'vcard'   => $this->make_hook('vcard',  AUTH_COOKIE, 'user', NO_HTTPS),
-            'admin/binets'     => $this->make_hook('admin_binets', AUTH_MDP, 'admin'),
-            'admin/medals'     => $this->make_hook('admin_medals', AUTH_MDP, 'admin'),
-            'admin/formations' => $this->make_hook('admin_formations', AUTH_MDP, 'admin'),
-            'admin/sections'  => $this->make_hook('admin_sections', AUTH_MDP, 'admin'),
-            'admin/secteurs'  => $this->make_hook('admin_secteurs', AUTH_MDP, 'admin'),
-            'admin/trombino'   => $this->make_hook('admin_trombino', AUTH_MDP, 'admin'),
-            'admin/ss_secteurs'  => $this->make_hook('admin_ss_secteurs', AUTH_MDP, 'admin'),
-            'admin/fonctions'  => $this->make_hook('admin_fonctions', AUTH_MDP, 'admin'),
+            'photo'                => $this->make_hook('photo',             AUTH_PUBLIC),
+            'photo/change'         => $this->make_hook('photo_change',      AUTH_MDP),
+
+            'fiche.php'            => $this->make_hook('fiche',             AUTH_PUBLIC),
+            'profile'              => $this->make_hook('profile',           AUTH_PUBLIC),
+            'profile/private'      => $this->make_hook('profile',           AUTH_COOKIE),
+            'profile/ax'           => $this->make_hook('ax',                AUTH_COOKIE, 'admin'),
+            'profile/edit'         => $this->make_hook('p_edit',            AUTH_MDP),
+            'profile/ajax/address' => $this->make_hook('ajax_address',      AUTH_COOKIE, 'user', NO_AUTH),
+            'profile/ajax/tel'     => $this->make_hook('ajax_tel',          AUTH_COOKIE, 'user', NO_AUTH),
+            'profile/ajax/medal'   => $this->make_hook('ajax_medal',        AUTH_COOKIE, 'user', NO_AUTH),
+            'profile/ajax/job'     => $this->make_hook('ajax_job',          AUTH_COOKIE, 'user', NO_AUTH),
+            'profile/ajax/secteur' => $this->make_hook('ajax_secteur',      AUTH_COOKIE, 'user', NO_AUTH),
+            'profile/ajax/skill'   => $this->make_hook('ajax_skill',        AUTH_COOKIE, 'user', NO_AUTH),
+            'javascript/applis.js' => $this->make_hook('applis_js',         AUTH_COOKIE),
+            'javascript/grades.js' => $this->make_hook('grades_js',         AUTH_COOKIE),
+            'profile/medal'        => $this->make_hook('medal',             AUTH_PUBLIC),
+            'profile/orange'       => $this->make_hook('p_orange',          AUTH_MDP),
+            'profile/usage'        => $this->make_hook('p_usage',           AUTH_MDP),
+
+            'referent'             => $this->make_hook('referent',          AUTH_COOKIE),
+            'emploi'               => $this->make_hook('ref_search',        AUTH_COOKIE),
+            'referent/search'      => $this->make_hook('ref_search',        AUTH_COOKIE),
+            'referent/ssect'       => $this->make_hook('ref_sect',          AUTH_COOKIE, 'user', NO_AUTH),
+            'referent/country'     => $this->make_hook('ref_country',       AUTH_COOKIE, 'user', NO_AUTH),
+
+            'groupes-x'            => $this->make_hook('xnet',              AUTH_COOKIE),
+
+            'vcard'                => $this->make_hook('vcard',             AUTH_COOKIE, 'user', NO_HTTPS),
+            'admin/binets'         => $this->make_hook('admin_binets',      AUTH_MDP,    'admin'),
+            'admin/medals'         => $this->make_hook('admin_medals',      AUTH_MDP,    'admin'),
+            'admin/formations'     => $this->make_hook('admin_formations',  AUTH_MDP,    'admin'),
+            'admin/sections'       => $this->make_hook('admin_sections',    AUTH_MDP,    'admin'),
+            'admin/secteurs'       => $this->make_hook('admin_secteurs',    AUTH_MDP,    'admin'),
+            'admin/trombino'       => $this->make_hook('admin_trombino',    AUTH_MDP,    'admin'),
+            'admin/ss_secteurs'    => $this->make_hook('admin_ss_secteurs', AUTH_MDP,    'admin'),
+            'admin/fonctions'      => $this->make_hook('admin_fonctions',   AUTH_MDP,    'admin'),
 
         );
     }