From 28bda7c53f25a3f23781d5014e8183ace1572102 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 26 Feb 2007 19:50:54 +0000 Subject: [PATCH] Move profile includes into modules/profile/ git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1525 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/profile.php | 14 +++++++------- .../profil => modules/profile}/assign_adresses.inc.php | 0 {include/profil => modules/profile}/assign_deco.inc.php | 0 {include/profil => modules/profile}/assign_emploi.inc.php | 0 {include/profil => modules/profile}/assign_general.inc.php | 0 {include/profil => modules/profile}/assign_mentor.inc.php | 0 {include/profil => modules/profile}/assign_poly.inc.php | 0 {include/profil => modules/profile}/assign_skill.inc.php | 0 {include/profil => modules/profile}/get_adresses.inc.php | 0 {include/profil => modules/profile}/get_deco.inc.php | 0 {include/profil => modules/profile}/get_emploi.inc.php | 0 {include/profil => modules/profile}/get_general.inc.php | 0 {include/profil => modules/profile}/get_mentor.inc.php | 0 {include/profil => modules/profile}/get_poly.inc.php | 0 {include/profil => modules/profile}/get_skill.inc.php | 0 .../profil => modules/profile}/update_adresses.inc.php | 0 {include/profil => modules/profile}/update_deco.inc.php | 0 {include/profil => modules/profile}/update_emploi.inc.php | 0 {include/profil => modules/profile}/update_general.inc.php | 0 {include/profil => modules/profile}/update_mentor.inc.php | 0 {include/profil => modules/profile}/update_poly.inc.php | 0 {include/profil => modules/profile}/update_skill.inc.php | 0 {include/profil => modules/profile}/verif_adresses.inc.php | 0 {include/profil => modules/profile}/verif_deco.inc.php | 0 {include/profil => modules/profile}/verif_emploi.inc.php | 0 {include/profil => modules/profile}/verif_general.inc.php | 0 {include/profil => modules/profile}/verif_mentor.inc.php | 0 {include/profil => modules/profile}/verif_poly.inc.php | 0 {include/profil => modules/profile}/verif_skill.inc.php | 0 29 files changed, 7 insertions(+), 7 deletions(-) rename {include/profil => modules/profile}/assign_adresses.inc.php (100%) rename {include/profil => modules/profile}/assign_deco.inc.php (100%) rename {include/profil => modules/profile}/assign_emploi.inc.php (100%) rename {include/profil => modules/profile}/assign_general.inc.php (100%) rename {include/profil => modules/profile}/assign_mentor.inc.php (100%) rename {include/profil => modules/profile}/assign_poly.inc.php (100%) rename {include/profil => modules/profile}/assign_skill.inc.php (100%) rename {include/profil => modules/profile}/get_adresses.inc.php (100%) rename {include/profil => modules/profile}/get_deco.inc.php (100%) rename {include/profil => modules/profile}/get_emploi.inc.php (100%) rename {include/profil => modules/profile}/get_general.inc.php (100%) rename {include/profil => modules/profile}/get_mentor.inc.php (100%) rename {include/profil => modules/profile}/get_poly.inc.php (100%) rename {include/profil => modules/profile}/get_skill.inc.php (100%) rename {include/profil => modules/profile}/update_adresses.inc.php (100%) rename {include/profil => modules/profile}/update_deco.inc.php (100%) rename {include/profil => modules/profile}/update_emploi.inc.php (100%) rename {include/profil => modules/profile}/update_general.inc.php (100%) rename {include/profil => modules/profile}/update_mentor.inc.php (100%) rename {include/profil => modules/profile}/update_poly.inc.php (100%) rename {include/profil => modules/profile}/update_skill.inc.php (100%) rename {include/profil => modules/profile}/verif_adresses.inc.php (100%) rename {include/profil => modules/profile}/verif_deco.inc.php (100%) rename {include/profil => modules/profile}/verif_emploi.inc.php (100%) rename {include/profil => modules/profile}/verif_general.inc.php (100%) rename {include/profil => modules/profile}/verif_mentor.inc.php (100%) rename {include/profil => modules/profile}/verif_poly.inc.php (100%) rename {include/profil => modules/profile}/verif_skill.inc.php (100%) diff --git a/modules/profile.php b/modules/profile.php index efa3076..75ea8a3 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -341,11 +341,11 @@ class ProfileModule extends PLModule //doit-on faire un update ? if (Env::has('modifier') || Env::has('suivant')) { - require_once "profil/get_{$opened_tab}.inc.php"; - require_once "profil/verif_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php"; if($page->nb_errs()) { - require_once "profil/assign_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/assign_{$opened_tab}.inc.php"; $page->assign('onglet', $opened_tab); $page->assign('onglet_tpl', "profile/$opened_tab.tpl"); return; @@ -366,7 +366,7 @@ class ProfileModule extends PLModule } // mise a jour des champs relatifs au tab ouvert - require_once "profil/update_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/update_{$opened_tab}.inc.php"; $log =& $_SESSION['log']; $log->log('profil', $opened_tab); @@ -377,9 +377,9 @@ class ProfileModule extends PLModule pl_redirect('profile/edit/' . get_next_tab($opened_tab)); } - require_once "profil/get_{$opened_tab}.inc.php"; - require_once "profil/verif_{$opened_tab}.inc.php"; - require_once "profil/assign_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php"; + require_once dirname(__FILE__) . "/profile/assign_{$opened_tab}.inc.php"; $page->assign('onglet', $opened_tab); $page->assign('onglet_tpl', "profile/$opened_tab.tpl"); diff --git a/include/profil/assign_adresses.inc.php b/modules/profile/assign_adresses.inc.php similarity index 100% rename from include/profil/assign_adresses.inc.php rename to modules/profile/assign_adresses.inc.php diff --git a/include/profil/assign_deco.inc.php b/modules/profile/assign_deco.inc.php similarity index 100% rename from include/profil/assign_deco.inc.php rename to modules/profile/assign_deco.inc.php diff --git a/include/profil/assign_emploi.inc.php b/modules/profile/assign_emploi.inc.php similarity index 100% rename from include/profil/assign_emploi.inc.php rename to modules/profile/assign_emploi.inc.php diff --git a/include/profil/assign_general.inc.php b/modules/profile/assign_general.inc.php similarity index 100% rename from include/profil/assign_general.inc.php rename to modules/profile/assign_general.inc.php diff --git a/include/profil/assign_mentor.inc.php b/modules/profile/assign_mentor.inc.php similarity index 100% rename from include/profil/assign_mentor.inc.php rename to modules/profile/assign_mentor.inc.php diff --git a/include/profil/assign_poly.inc.php b/modules/profile/assign_poly.inc.php similarity index 100% rename from include/profil/assign_poly.inc.php rename to modules/profile/assign_poly.inc.php diff --git a/include/profil/assign_skill.inc.php b/modules/profile/assign_skill.inc.php similarity index 100% rename from include/profil/assign_skill.inc.php rename to modules/profile/assign_skill.inc.php diff --git a/include/profil/get_adresses.inc.php b/modules/profile/get_adresses.inc.php similarity index 100% rename from include/profil/get_adresses.inc.php rename to modules/profile/get_adresses.inc.php diff --git a/include/profil/get_deco.inc.php b/modules/profile/get_deco.inc.php similarity index 100% rename from include/profil/get_deco.inc.php rename to modules/profile/get_deco.inc.php diff --git a/include/profil/get_emploi.inc.php b/modules/profile/get_emploi.inc.php similarity index 100% rename from include/profil/get_emploi.inc.php rename to modules/profile/get_emploi.inc.php diff --git a/include/profil/get_general.inc.php b/modules/profile/get_general.inc.php similarity index 100% rename from include/profil/get_general.inc.php rename to modules/profile/get_general.inc.php diff --git a/include/profil/get_mentor.inc.php b/modules/profile/get_mentor.inc.php similarity index 100% rename from include/profil/get_mentor.inc.php rename to modules/profile/get_mentor.inc.php diff --git a/include/profil/get_poly.inc.php b/modules/profile/get_poly.inc.php similarity index 100% rename from include/profil/get_poly.inc.php rename to modules/profile/get_poly.inc.php diff --git a/include/profil/get_skill.inc.php b/modules/profile/get_skill.inc.php similarity index 100% rename from include/profil/get_skill.inc.php rename to modules/profile/get_skill.inc.php diff --git a/include/profil/update_adresses.inc.php b/modules/profile/update_adresses.inc.php similarity index 100% rename from include/profil/update_adresses.inc.php rename to modules/profile/update_adresses.inc.php diff --git a/include/profil/update_deco.inc.php b/modules/profile/update_deco.inc.php similarity index 100% rename from include/profil/update_deco.inc.php rename to modules/profile/update_deco.inc.php diff --git a/include/profil/update_emploi.inc.php b/modules/profile/update_emploi.inc.php similarity index 100% rename from include/profil/update_emploi.inc.php rename to modules/profile/update_emploi.inc.php diff --git a/include/profil/update_general.inc.php b/modules/profile/update_general.inc.php similarity index 100% rename from include/profil/update_general.inc.php rename to modules/profile/update_general.inc.php diff --git a/include/profil/update_mentor.inc.php b/modules/profile/update_mentor.inc.php similarity index 100% rename from include/profil/update_mentor.inc.php rename to modules/profile/update_mentor.inc.php diff --git a/include/profil/update_poly.inc.php b/modules/profile/update_poly.inc.php similarity index 100% rename from include/profil/update_poly.inc.php rename to modules/profile/update_poly.inc.php diff --git a/include/profil/update_skill.inc.php b/modules/profile/update_skill.inc.php similarity index 100% rename from include/profil/update_skill.inc.php rename to modules/profile/update_skill.inc.php diff --git a/include/profil/verif_adresses.inc.php b/modules/profile/verif_adresses.inc.php similarity index 100% rename from include/profil/verif_adresses.inc.php rename to modules/profile/verif_adresses.inc.php diff --git a/include/profil/verif_deco.inc.php b/modules/profile/verif_deco.inc.php similarity index 100% rename from include/profil/verif_deco.inc.php rename to modules/profile/verif_deco.inc.php diff --git a/include/profil/verif_emploi.inc.php b/modules/profile/verif_emploi.inc.php similarity index 100% rename from include/profil/verif_emploi.inc.php rename to modules/profile/verif_emploi.inc.php diff --git a/include/profil/verif_general.inc.php b/modules/profile/verif_general.inc.php similarity index 100% rename from include/profil/verif_general.inc.php rename to modules/profile/verif_general.inc.php diff --git a/include/profil/verif_mentor.inc.php b/modules/profile/verif_mentor.inc.php similarity index 100% rename from include/profil/verif_mentor.inc.php rename to modules/profile/verif_mentor.inc.php diff --git a/include/profil/verif_poly.inc.php b/modules/profile/verif_poly.inc.php similarity index 100% rename from include/profil/verif_poly.inc.php rename to modules/profile/verif_poly.inc.php diff --git a/include/profil/verif_skill.inc.php b/modules/profile/verif_skill.inc.php similarity index 100% rename from include/profil/verif_skill.inc.php rename to modules/profile/verif_skill.inc.php -- 2.1.4