Arrange templates by module
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 18 Dec 2006 14:44:39 +0000 (14:44 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 18 Dec 2006 14:44:39 +0000 (14:44 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1286 839d8a87-29fc-0310-9880-83ba4fa771e5

77 files changed:
classes/platal.php
classes/platalpage.php
classes/pltableeditor.php
classes/xdb.php
htdocs/xnet.php
htdocs/xorg.php
include/vcard.inc.php
modules/admin.php
modules/core.php
modules/events.php
modules/platal.php
modules/profile.php
modules/xnet.php
modules/xnetgrp.php
templates/admin/logger-view.tpl [moved from templates/logger-view.tpl with 100% similarity]
templates/core/403.tpl [moved from templates/403.tpl with 100% similarity]
templates/core/404.tpl [moved from templates/404.tpl with 100% similarity]
templates/core/bug.tpl [moved from templates/bug.tpl with 100% similarity]
templates/core/password_prompt.tpl [moved from templates/password_prompt.tpl with 100% similarity]
templates/core/password_prompt_logged.tpl [moved from templates/password_prompt_logged.tpl with 100% similarity]
templates/core/table-editor.tpl [moved from templates/table-editor.tpl with 100% similarity]
templates/core/vcard.tpl [moved from templates/vcard.tpl with 100% similarity]
templates/core/wiki.tpl [moved from templates/wiki.tpl with 100% similarity]
templates/events/admin_events.tpl [moved from templates/admin/evenements.tpl with 100% similarity]
templates/events/index.tpl [moved from templates/login.tpl with 100% similarity]
templates/events/rss.tpl [moved from templates/rss.tpl with 100% similarity]
templates/events/submit.tpl [moved from templates/evenements.tpl with 100% similarity]
templates/platal/acces_smtp.tpl [moved from templates/acces_smtp.tpl with 100% similarity]
templates/platal/changeLog.tpl [moved from templates/changeLog.tpl with 100% similarity]
templates/platal/exit.tpl [moved from templates/exit.tpl with 100% similarity]
templates/platal/filrss.tpl [moved from templates/filrss.tpl with 100% similarity]
templates/platal/index.tpl [moved from templates/index.tpl with 100% similarity]
templates/platal/motdepasse.success.tpl [moved from templates/motdepasse.success.tpl with 100% similarity]
templates/platal/motdepasse.tpl [moved from templates/motdepasse.tpl with 100% similarity]
templates/platal/preferences.tpl [moved from templates/preferences.tpl with 100% similarity]
templates/platal/recovery.tpl [moved from templates/recovery.tpl with 100% similarity]
templates/platal/skins.tpl [moved from templates/skins.tpl with 100% similarity]
templates/platal/tmpPWD.success.tpl [moved from templates/tmpPWD.success.tpl with 100% similarity]
templates/platal/webredirect.tpl [moved from templates/webredirect.tpl with 100% similarity]
templates/profile/admin_decos.tpl [moved from templates/admin/gerer_decos.tpl with 100% similarity]
templates/profile/admin_trombino.tpl [moved from templates/admin/admin_trombino.tpl with 100% similarity]
templates/profile/adresses.tpl [moved from templates/profil/adresses.tpl with 100% similarity]
templates/profile/applis.js.tpl [moved from templates/applis.js.tpl with 100% similarity]
templates/profile/deco.tpl [moved from templates/profil/deco.tpl with 100% similarity]
templates/profile/edit.tpl [moved from templates/profil.tpl with 100% similarity]
templates/profile/emploi.tpl [moved from templates/profil/emploi.tpl with 100% similarity]
templates/profile/fiche_referent.tpl [moved from templates/fiche_referent.tpl with 100% similarity]
templates/profile/general.tpl [moved from templates/profil/general.tpl with 99% similarity]
templates/profile/groupesx.tpl [moved from templates/groupesx.tpl with 100% similarity]
templates/profile/mentor.tpl [moved from templates/profil/mentor.tpl with 100% similarity]
templates/profile/naissance.tpl [moved from templates/profil/naissance.tpl with 100% similarity]
templates/profile/nomusage.tpl [moved from templates/nomusage.tpl with 100% similarity]
templates/profile/orange.tpl [moved from templates/orange.tpl with 100% similarity]
templates/profile/poly.tpl [moved from templates/profil/poly.tpl with 100% similarity]
templates/profile/profile.tpl [moved from templates/fiche.tpl with 100% similarity]
templates/profile/referent.tpl [moved from templates/referent.tpl with 100% similarity]
templates/profile/skill.tpl [moved from templates/profil/skill.tpl with 100% similarity]
templates/profile/trombino.tpl [moved from templates/trombino.tpl with 100% similarity]
templates/profile/trombipromo.tpl [moved from templates/trombipromo.tpl with 100% similarity]
templates/skin/common.database-debug.tpl [moved from templates/database-debug.tpl with 100% similarity]
templates/xnetgrp/alias-admin.tpl [moved from templates/xnet/groupe/alias-admin.tpl with 100% similarity]
templates/xnetgrp/alias-create.tpl [moved from templates/xnet/groupe/alias-create.tpl with 100% similarity]
templates/xnetgrp/announce-admin.tpl [moved from templates/xnet/groupe/announce-admin.tpl with 100% similarity]
templates/xnetgrp/announce-edit.tpl [moved from templates/xnet/groupe/announce-edit.tpl with 100% similarity]
templates/xnetgrp/announce-rss.tpl [moved from templates/xnet/groupe/announce-rss.tpl with 100% similarity]
templates/xnetgrp/annuaire-admin.tpl [moved from templates/xnet/groupe/annuaire-admin.tpl with 100% similarity]
templates/xnetgrp/annuaire.tpl [moved from templates/xnet/groupe/annuaire.tpl with 100% similarity]
templates/xnetgrp/asso.tpl [moved from templates/xnet/groupe/asso.tpl with 100% similarity]
templates/xnetgrp/edit.tpl [moved from templates/xnet/groupe/edit.tpl with 100% similarity]
templates/xnetgrp/form.announce.tpl [moved from templates/xnet/groupe/form.announce.tpl with 100% similarity]
templates/xnetgrp/inscrire.tpl [moved from templates/xnet/groupe/inscrire.tpl with 100% similarity]
templates/xnetgrp/mail.tpl [moved from templates/xnet/groupe/mail.tpl with 100% similarity]
templates/xnetgrp/membres-add.tpl [moved from templates/xnet/groupe/membres-add.tpl with 100% similarity]
templates/xnetgrp/membres-del.tpl [moved from templates/xnet/groupe/membres-del.tpl with 100% similarity]
templates/xnetgrp/membres-edit.tpl [moved from templates/xnet/groupe/membres-edit.tpl with 100% similarity]
templates/xnetgrp/membres-new-search.tpl [moved from templates/xnet/groupe/membres-new-search.tpl with 100% similarity]
templates/xnetgrp/trombi.tpl [moved from templates/xnet/groupe/trombi.tpl with 100% similarity]

index 31bbe83..e64e4c8 100644 (file)
@@ -196,10 +196,10 @@ class Platal
     function force_login(&$page)
     {
         if (S::logged()) {
-            $page->changeTpl('password_prompt_logged.tpl');
+            $page->changeTpl('core/password_prompt_logged.tpl');
             $page->addJsLink('do_challenge_response_logged.js');
         } else {
-            $page->changeTpl('password_prompt.tpl');
+            $page->changeTpl('core/password_prompt.tpl');
             $page->addJsLink('do_challenge_response.js');
        }
         $page->run();
@@ -209,7 +209,7 @@ class Platal
     {
         global $page;
 
-        new_skinned_page('index.tpl');
+        new_skinned_page('platal/index.tpl');
 
         if (empty($this->path)) {
             $this->path = 'index';
index 01ec3b5..9998a97 100644 (file)
@@ -106,7 +106,7 @@ class PlatalPage extends Smarty
         }
 
         if ($globals->debug & 1) {
-            $this->assign('db_trace', XDB::trace_format($this, 'database-debug.tpl'));
+            $this->assign('db_trace', XDB::trace_format($this, 'skin/common.database-debug.tpl'));
         }
 
         $this->assign('validate', true);
index cad848a..d1dca33 100644 (file)
@@ -153,7 +153,7 @@ class PLTableEditor {
     }
     // call when done
     function apply(&$page, $action, $id = false) {
-        $page->changeTpl('table-editor.tpl');
+        $page->changeTpl('core/table-editor.tpl');
         $list = true;
         if ($action == 'delete') {
                if (!isset($this->delete_action)) {
index 9bda36c..34c10e8 100644 (file)
@@ -139,7 +139,7 @@ class XDB
         }
     }
 
-    public static function trace_format(&$page, $template = 'database-debug.tpl') {
+    public static function trace_format(&$page, $template = 'skin/common.database-debug.tpl') {
         $page->assign('trace_data', @$GLOBALS['XDB::trace_data']);
         $page->assign('db_error', @$GLOBALS['XDB::error']);
         return $page->fetch($template);
index 8e55c69..6cf1f7c 100644 (file)
@@ -39,7 +39,7 @@ if (!$n) {
     pl_redirect('');
 }
 
-new_skinned_page('wiki.tpl');
+new_skinned_page('core/wiki.tpl');
 $perms = wiki_get_perms($n);
 
 switch (Env::v('action')) {
index 6261a36..753ae2d 100644 (file)
@@ -42,7 +42,7 @@ if (!$n) {
     pl_redirect('');
 }
 
-new_skinned_page('wiki.tpl');
+new_skinned_page('core/wiki.tpl');
 $perms = wiki_get_perms($n);
 
 if (Env::v('display') == 'light') {
index 08c46c8..b5aa8a9 100644 (file)
@@ -119,7 +119,7 @@ class VCard
 
     function do_page(&$page)
     {
-        $page->changeTpl('vcard.tpl', NO_SKIN);
+        $page->changeTpl('core/vcard.tpl', NO_SKIN);
         $page->register_modifier('vcard_enc',  array($this, 'text_encode'));
         $page->register_function('format_adr', array($this, 'format_adr'));
         $page->assign_by_ref('users', $this->users);
index 0f77284..ecb35d7 100644 (file)
@@ -341,7 +341,7 @@ class AdminModule extends PLModule
             }
         }
 
-        $page->changeTpl('logger-view.tpl');
+        $page->changeTpl('admin/logger-view.tpl');
 
         $page->assign('xorg_title','Polytechnique.org - Administration - Logs des sessions');
     }
index 78955b1..0fec9e2 100644 (file)
@@ -26,6 +26,7 @@ class CoreModule extends PLModule
         return array(
             '403'         => $this->make_hook('403', AUTH_PUBLIC),
             '404'         => $this->make_hook('404', AUTH_PUBLIC),
+            'send_bug'       => $this->make_hook('bug', AUTH_COOKIE),
             'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'),
             'get_rights'  => $this->make_hook('get_rights', AUTH_MDP, 'admin'),
 
@@ -43,7 +44,7 @@ class CoreModule extends PLModule
     function handler_403(&$page)
     {
         header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
-        $page->changeTpl('403.tpl');
+        $page->changeTpl('core/403.tpl');
     }
 
     function handler_404(&$page)
@@ -51,7 +52,7 @@ class CoreModule extends PLModule
         global $platal;
         header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
         $page->assign('near', $platal->near_hook());
-        $page->changeTpl('404.tpl');
+        $page->changeTpl('core/404.tpl');
     }
 
     function handler_favicon(&$page)
@@ -86,6 +87,21 @@ class CoreModule extends PLModule
 
         pl_redirect('/');
     }
+
+    function handler_bug(&$page)
+    {
+        $page->changeTpl('core/bug.tpl',SIMPLE);
+        $page->addJsLink('close_on_esc.js');
+        if (Env::has('send')) {
+            $page->assign('bug_sent',1);
+            $mymail = new PlMailer();
+            $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>');
+            $mymail->addTo('support+platal@polytechnique.org');
+            $mymail->setSubject('Plat/al '.Env::v('task_type').' : '.Env::v('item_summary'));
+            $mymail->setTxtBody(Env::v('detailed_desc'));
+            $mymail->send();
+        }
+    }
 }
 
 ?>
index d584060..dfe3fd5 100644 (file)
@@ -26,7 +26,6 @@ class EventsModule extends PLModule
         return array(
             'events'         => $this->make_hook('ev',        AUTH_COOKIE),
             'rss'            => $this->make_hook('rss', AUTH_PUBLIC),
-            'send_bug'       => $this->make_hook('bug', AUTH_COOKIE),
             'events/submit'  => $this->make_hook('ev_submit', AUTH_MDP),
             'admin/events'   => $this->make_hook('admin_events',     AUTH_MDP, 'admin'),
 
@@ -72,24 +71,9 @@ class EventsModule extends PLModule
         return $res->fetchOneAssoc();
     }
 
-    function handler_bug(&$page)
-    {
-        $page->changeTpl('bug.tpl',SIMPLE);
-        $page->addJsLink('close_on_esc.js');
-        if (Env::has('send')) {
-            $page->assign('bug_sent',1);
-            $mymail = new PlMailer();
-            $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>');
-            $mymail->addTo('support+platal@polytechnique.org');
-            $mymail->setSubject('Plat/al '.Env::v('task_type').' : '.Env::v('item_summary'));
-            $mymail->setTxtBody(Env::v('detailed_desc'));
-            $mymail->send();
-        }
-    }
-
     function handler_ev(&$page, $action = 'list', $eid = null, $pound = null)
     {
-        $page->changeTpl('login.tpl');
+        $page->changeTpl('events/index.tpl');
         $page->addJsLink('ajax.js');
         $page->assign('tips', $this->get_tips());
 
@@ -183,7 +167,7 @@ class EventsModule extends PLModule
     {       
         require_once 'rss.inc.php';
             
-        $uid = init_rss('rss.tpl', $user, $hash);
+        $uid = init_rss('events/rss.tpl', $user, $hash);
             
         $rss = XDB::iterator(
                 'SELECT  e.id, e.titre, e.texte, e.creation_date,
@@ -199,7 +183,7 @@ class EventsModule extends PLModule
 
     function handler_ev_submit(&$page)
     {
-        $page->changeTpl('evenements.tpl');
+        $page->changeTpl('events/submit.tpl');
 
         $titre      = Post::v('titre');
         $texte      = Post::v('texte');
@@ -329,7 +313,7 @@ class EventsModule extends PLModule
 
     function handler_admin_events(&$page, $action = 'list', $eid = null) 
     {
-        $page->changeTpl('admin/evenements.tpl');
+        $page->changeTpl('events/admin_events.tpl');
         $page->assign('xorg_title','Polytechnique.org - Administration - Evenements');
         $page->register_modifier('hde', 'html_entity_decode');
 
index 586b485..2db2fda 100644 (file)
@@ -81,7 +81,7 @@ class PlatalModule extends PLModule
 
     function handler_changelog(&$page)
     {
-        $page->changeTpl('changeLog.tpl');
+        $page->changeTpl('platal/changeLog.tpl');
 
         $clog = htmlentities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
         $clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
@@ -106,7 +106,7 @@ class PlatalModule extends PLModule
 
     function handler_prefs(&$page)
     {
-        $page->changeTpl('preferences.tpl');
+        $page->changeTpl('platal/preferences.tpl');
         $page->assign('xorg_title','Polytechnique.org - Mes préférences');
 
         if (Post::has('mail_fmt')) {
@@ -126,7 +126,7 @@ class PlatalModule extends PLModule
 
     function handler_webredir(&$page)
     {
-        $page->changeTpl('webredirect.tpl');
+        $page->changeTpl('platal/webredirect.tpl');
 
         $page->assign('xorg_title','Polytechnique.org - Redirection de page WEB');
 
@@ -158,7 +158,7 @@ class PlatalModule extends PLModule
 
     function handler_prefs_rss(&$page)
     {
-        $page->changeTpl('filrss.tpl');
+        $page->changeTpl('platal/filrss.tpl');
 
         $page->assign('goback', Env::v('referer', 'login'));
 
@@ -187,18 +187,18 @@ class PlatalModule extends PLModule
                 setcookie('ORGaccess', hash_encrypt($password), (time()+25920000), '/', '' ,0);
             }
 
-            $page->changeTpl('motdepasse.success.tpl');
+            $page->changeTpl('platal/motdepasse.success.tpl');
             $page->run();
         }
 
-        $page->changeTpl('motdepasse.tpl');
+        $page->changeTpl('platal/motdepasse.tpl');
         $page->addJsLink('motdepasse.js');
         $page->assign('xorg_title','Polytechnique.org - Mon mot de passe');
     }
 
     function handler_smtppass(&$page)
     {
-        $page->changeTpl('acces_smtp.tpl');
+        $page->changeTpl('platal/acces_smtp.tpl');
         $page->assign('xorg_title','Polytechnique.org - Acces SMTP/NNTP');
 
         $uid  = S::v('uid');
@@ -229,7 +229,7 @@ class PlatalModule extends PLModule
     {
         global $globals;
 
-        $page->changeTpl('recovery.tpl');
+        $page->changeTpl('platal/recovery.tpl');
 
         if (!Env::has('login') || !Env::has('birth')) {
             return;
@@ -301,7 +301,7 @@ Mail envoy
         $res   = XDB::query('SELECT uid FROM perte_pass WHERE certificat={?}', $certif);
         $ligne = $res->fetchOneAssoc();
         if (!$ligne) {
-            $page->changeTpl('index.tpl');
+            $page->changeTpl('platal/index.tpl');
             $page->kill("Cette adresse n'existe pas ou n'existe plus sur le serveur.");
         }
 
@@ -314,9 +314,9 @@ Mail envoy
                                  $password, $uid);
             XDB::query('DELETE FROM perte_pass WHERE certificat={?}', $certif);
             $logger->log("passwd","");
-            $page->changeTpl('tmpPWD.success.tpl');
+            $page->changeTpl('platal/tmpPWD.success.tpl');
         } else {
-            $page->changeTpl('motdepasse.tpl');
+            $page->changeTpl('platal/motdepasse.tpl');
             $page->addJsLink('motdepasse.js');
         }
     }
@@ -325,7 +325,7 @@ Mail envoy
     {
         global $globals;
 
-        $page->changeTpl('skins.tpl');
+        $page->changeTpl('platal/skins.tpl');
         $page->assign('xorg_title','Polytechnique.org - Skins');
 
         if (Env::has('newskin'))  {  // formulaire soumis, traitons les données envoyées
@@ -383,7 +383,7 @@ Mail envoy
         if (Get::has('redirect')) {
             http_redirect(rawurldecode(Get::v('redirect')));
         } else {
-            $page->changeTpl('exit.tpl');
+            $page->changeTpl('platal/exit.tpl');
         }
     }
 }
index fe2aa43..7068623 100644 (file)
@@ -116,7 +116,7 @@ class ProfileModule extends PLModule
 
     function handler_photo_change(&$page)
     {
-        $page->changeTpl('trombino.tpl');
+        $page->changeTpl('profile/trombino.tpl');
 
         require_once('validations.inc.php');
 
@@ -169,7 +169,7 @@ class ProfileModule extends PLModule
         global $globals;
         require_once 'user.func.inc.php';
 
-        $page->changeTpl('fiche.tpl', SIMPLE);
+        $page->changeTpl('profile/fiche.tpl', SIMPLE);
 
         $view = 'private';
         if (!S::logged() || Env::v('view') == 'public') $view = 'public';
@@ -258,7 +258,7 @@ class ProfileModule extends PLModule
     {
         global $globals;
 
-        $page->changeTpl('profil.tpl');
+        $page->changeTpl('profile/edit.tpl');
 
         $page->addCssLink('profil.css');
         $page->assign('xorg_title', 'Polytechnique.org - Mon Profil');
@@ -340,7 +340,7 @@ class ProfileModule extends PLModule
             if($page->nb_errs()) {
                 require_once "profil/assign_{$opened_tab}.inc.php";
                 $page->assign('onglet', $opened_tab);
-                $page->assign('onglet_tpl', "profil/$opened_tab.tpl");
+                $page->assign('onglet_tpl', "profile/$opened_tab.tpl");
                 return;
             }
 
@@ -375,14 +375,14 @@ class ProfileModule extends PLModule
         require_once "profil/assign_{$opened_tab}.inc.php";
 
         $page->assign('onglet', $opened_tab);
-        $page->assign('onglet_tpl', "profil/$opened_tab.tpl");
+        $page->assign('onglet_tpl', "profile/$opened_tab.tpl");
 
         return;
     }
 
     function handler_p_orange(&$page)
     {
-        $page->changeTpl('orange.tpl');
+        $page->changeTpl('profile/orange.tpl');
 
         require_once 'validations.inc.php';
         require_once 'xorg.misc.inc.php';
@@ -438,7 +438,7 @@ class ProfileModule extends PLModule
             return PL_NOT_FOUND;
         }
 
-        $page->changeTpl('fiche_referent.tpl', SIMPLE);
+        $page->changeTpl('profile/fiche_referent.tpl', SIMPLE);
 
         $res = XDB::query(
                 "SELECT  prenom, nom, user_id, promo, cv, a.alias AS bestalias
@@ -496,7 +496,7 @@ class ProfileModule extends PLModule
 
     function handler_ref_search(&$page)
     {
-        $page->changeTpl('referent.tpl');
+        $page->changeTpl('profile/referent.tpl');
 
         $page->assign('xorg_title', 'Polytechnique.org - Conseil Pro');
 
@@ -608,7 +608,7 @@ class ProfileModule extends PLModule
 
     function handler_p_usage(&$page)
     {
-        $page->changeTpl('nomusage.tpl');
+        $page->changeTpl('profile/nomusage.tpl');
 
         require_once 'validations.inc.php';
         require_once 'xorg.misc.inc.php';
@@ -648,7 +648,7 @@ class ProfileModule extends PLModule
 
     function handler_trombi(&$page, $promo = null)
     {
-        $page->changeTpl('trombipromo.tpl');
+        $page->changeTpl('profile/trombipromo.tpl');
         $page->assign('xorg_title', 'Polytechnique.org - Trombi Promo');
 
         if (is_null($promo)) {
@@ -671,7 +671,7 @@ class ProfileModule extends PLModule
 
     function handler_xnet(&$page)
     {
-        $page->changeTpl('groupesx.tpl');
+        $page->changeTpl('profile/groupesx.tpl');
         $page->assign('xorg_title', 'Polytechnique.org - Promo, Groupes X, Binets');
         
         $req = XDB::query('
@@ -702,7 +702,7 @@ class ProfileModule extends PLModule
     }
 
     function handler_admin_trombino(&$page, $uid = null, $action = null) {
-        $page->changeTpl('admin/admin_trombino.tpl');
+        $page->changeTpl('profile/admin_trombino.tpl');
         $page->assign('xorg_title','Polytechnique.org - Administration - Trombino');
         $page->assign('uid', $uid);
         
@@ -772,7 +772,7 @@ class ProfileModule extends PLModule
         $table_editor->describe('img',  'nom de l\'image', false);
         $table_editor->apply($page, $action, $id);
         if ($id && $action == 'edit') {
-            $page->changeTpl('admin/gerer_decos.tpl');
+            $page->changeTpl('profile/admin_decos.tpl');
         
             $mid = $id;
         
index 95a9be6..812e9ed 100644 (file)
@@ -32,7 +32,6 @@ class XnetModule extends PLModule
             'groups'    => $this->make_hook('groups',    AUTH_PUBLIC),
             'groupes.php' => $this->make_hook('groups2', AUTH_PUBLIC),
             'plan'      => $this->make_hook('plan',      AUTH_PUBLIC),
-            'send_bug'  => $this->make_hook('bug',       AUTH_MDP),
             'photo'     => $this->make_hook('photo',     AUTH_MDP),
         );
     }
@@ -57,21 +56,6 @@ class XnetModule extends PLModule
         }
         exit;
     }
-
-    function handler_bug(&$page)
-    {
-        $page->changeTpl('bug.tpl',SIMPLE);
-        $page->addJsLink('close_on_esc.js');
-        if (Env::has('send')) {
-            $page->assign('bug_sent',1);
-            $mymail = new PlMailer();
-            $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>');
-            $mymail->addTo('support+platal@polytechnique.org');
-            $mymail->setSubject('Plat/al '.Env::v('task_type').' : '.Env::v('item_summary'));
-            $mymail->setTxtBody(Env::v('detailed_desc'));
-            $mymail->send();
-        }
-    }
     
     function handler_index(&$page)
     {
index 51662f1..5f7a8fe 100644 (file)
@@ -113,7 +113,7 @@ class XnetGrpModule extends PLModule
             return PL_NOT_FOUND;
         }
 
-        new_group_open_page('xnet/groupe/asso.tpl');
+        new_group_open_page('xnetgrp/asso.tpl');
 
         if (S::logged()) {
             if (Env::has('read')) {
@@ -208,7 +208,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
 
-        new_groupadmin_page('xnet/groupe/edit.tpl');
+        new_groupadmin_page('xnetgrp/edit.tpl');
 
         if (Post::has('submit')) {
             if (S::has_perms()) {
@@ -273,7 +273,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
 
-        new_groupadmin_page('xnet/groupe/mail.tpl');
+        new_groupadmin_page('xnetgrp/mail.tpl');
         $mmlist = new MMList(S::v('uid'), S::v('password'),
                            $globals->asso('mail_domain'));
         $page->assign('listes', $mmlist->get_lists());
@@ -297,7 +297,7 @@ class XnetGrpModule extends PLModule
     function handler_annuaire(&$page)
     {
         global $globals;
-        new_annu_page('xnet/groupe/annuaire.tpl');
+        new_annu_page('xnetgrp/annuaire.tpl');
 
         $sort = Env::v('order');
         switch (Env::v('order')) {
@@ -397,7 +397,7 @@ class XnetGrpModule extends PLModule
     function handler_trombi(&$page, $num = 1)
     {
         global $globals;
-        new_annu_page('xnet/groupe/trombi.tpl');
+        new_annu_page('xnetgrp/trombi.tpl');
         
         $page->assign('urlmainsite', "https://www.polytechnique.org/");
         $trombi = new Trombi(array($this, '_trombi_getlist'));
@@ -451,7 +451,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
 
-        new_group_open_page('xnet/groupe/inscrire.tpl');
+        new_group_open_page('xnetgrp/inscrire.tpl');
 
         if (!$globals->asso('inscriptible'))
                 $page->kill("Il n'est pas possible de s'inscire en ligne à ce "
@@ -602,7 +602,7 @@ class XnetGrpModule extends PLModule
 
         require_once 'xnet/mail.inc.php';
 
-        new_groupadmin_page('xnet/groupe/annuaire-admin.tpl');
+        new_groupadmin_page('xnetgrp/annuaire-admin.tpl');
         $mmlist = new MMList(S::v('uid'), S::v('password'),
                              $globals->asso('mail_domain'));
         $lists  = $mmlist->get_lists();
@@ -647,7 +647,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
 
-        new_groupadmin_page('xnet/groupe/membres-add.tpl');
+        new_groupadmin_page('xnetgrp/membres-add.tpl');
         $page->addJsLink('ajax.js');
 
         if (is_null($email)) {
@@ -716,7 +716,7 @@ class XnetGrpModule extends PLModule
     function handler_admin_member_new_ajax(&$page)
     {
         header('Content-Type: text/html; charset="iso-8859-15"');
-        $page->changeTpl('xnet/groupe/membres-new-search.tpl', NO_SKIN);
+        $page->changeTpl('xnetgrp/membres-new-search.tpl', NO_SKIN);
         list($nom, $prenom) = str_replace(array('-', ' ', "'"), '%', array(Env::v('nom'), Env::v('prenom')));
         $where = "perms = 'pending'";
         if (!empty($nom)) {
@@ -782,7 +782,7 @@ class XnetGrpModule extends PLModule
 
     function handler_unsubscribe(&$page)
     {
-        new_group_page('xnet/groupe/membres-del.tpl');
+        new_group_page('xnetgrp/membres-del.tpl');
         $user = get_infos(S::v('forlife'));
         if (empty($user)) {
             return PL_NOT_FOUND;
@@ -804,7 +804,7 @@ class XnetGrpModule extends PLModule
 
     function handler_admin_member_del(&$page, $user = null)
     {
-        new_groupadmin_page('xnet/groupe/membres-del.tpl');
+        new_groupadmin_page('xnetgrp/membres-del.tpl');
         $user = get_infos($user);
         if (empty($user)) {
             return PL_NOT_FOUND;
@@ -826,7 +826,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
 
-        new_groupadmin_page('xnet/groupe/membres-edit.tpl');
+        new_groupadmin_page('xnetgrp/membres-edit.tpl');
 
         $user = get_infos($user);
         if (empty($user)) {
@@ -927,7 +927,7 @@ class XnetGrpModule extends PLModule
         global $globals;
         require_once('rss.inc.php');
         require_once('url_catcher.inc.php');
-        $uid = init_rss('xnet/groupe/announce-rss.tpl', $user, $hash, false);
+        $uid = init_rss('xnetgrp/announce-rss.tpl', $user, $hash, false);
         $page->register_modifier('url_catcher', 'url_catcher');
 
         if ($uid) {
@@ -954,7 +954,7 @@ class XnetGrpModule extends PLModule
     function handler_edit_announce(&$page, $aid = null)
     {
         global $globals, $platal;
-        new_groupadmin_page('xnet/groupe/announce-edit.tpl');
+        new_groupadmin_page('xnetgrp/announce-edit.tpl');
         $page->assign('new', is_null($aid));
         $art = array();
 
@@ -1083,7 +1083,7 @@ class XnetGrpModule extends PLModule
     function handler_admin_announce(&$page)
     {
         global $globals;
-        new_groupadmin_page('xnet/groupe/announce-admin.tpl');
+        new_groupadmin_page('xnetgrp/announce-admin.tpl');
 
         if (Env::has('del')) {
             XDB::execute("DELETE FROM groupex.announces
similarity index 100%
rename from templates/403.tpl
rename to templates/core/403.tpl
similarity index 100%
rename from templates/404.tpl
rename to templates/core/404.tpl
similarity index 100%
rename from templates/bug.tpl
rename to templates/core/bug.tpl
similarity index 100%
rename from templates/vcard.tpl
rename to templates/core/vcard.tpl
similarity index 100%
rename from templates/wiki.tpl
rename to templates/core/wiki.tpl
similarity index 100%
rename from templates/rss.tpl
rename to templates/events/rss.tpl
similarity index 100%
rename from templates/exit.tpl
rename to templates/platal/exit.tpl
similarity index 99%
rename from templates/profil/general.tpl
rename to templates/profile/general.tpl
index e599401..6d5932b 100644 (file)
@@ -21,7 +21,7 @@
 {**************************************************************************}
 
 
-{include file="applis.js.tpl"}
+{include file="profile/applis.js.tpl"}
 <div class="blocunite_tab">
   <table class="bicol" cellspacing="0" cellpadding="0" 
     summary="Profil : Informations générales">