From: Stéphane Jacob Date: Sat, 7 Nov 2009 23:37:52 +0000 (+0100) Subject: Merge commit 'origin/master' into fusionax X-Git-Tag: xorg/1.0.0~332^2~313^2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1dc71da137a384e771723b8a893539a7f5cc9fab;p=platal.git Merge commit 'origin/master' into fusionax --- 1dc71da137a384e771723b8a893539a7f5cc9fab diff --cc include/user.func.inc.php index 3eb76f5,1a07456..2e30213 --- a/include/user.func.inc.php +++ b/include/user.func.inc.php @@@ -632,8 -572,11 +632,8 @@@ function set_user_details_pro($uid, $pr // {{{ function set_user_details() function set_user_details($uid, $details) { if (isset($details['nom_usage'])) { - XDB::execute("UPDATE auth_user_md5 SET nom_usage = {?} WHERE user_id = {?}", strtoupper($details['nom_usage']), $uid); + XDB::execute("UPDATE auth_user_md5 SET nom_usage = {?} WHERE user_id = {?}", mb_strtoupper($details['nom_usage']), $uid); } - if (isset($details['mobile'])) { - XDB::execute("UPDATE auth_user_quick SET profile_mobile = {?} WHERE user_id = {?}", $details['mobile'], $uid); - } if (isset($details['nationalite'])) { XDB::execute( "UPDATE auth_user_md5 AS u diff --cc modules/newsletter.php index ee6447e,75ab2e9..f7afc21 --- a/modules/newsletter.php +++ b/modules/newsletter.php @@@ -149,9 -149,9 +149,9 @@@ class NewsletterModule extends PLModul pl_redirect("admin/newsletter/edit/$nid"); } - if($action == 'edit' && $aid != 'update') { + if ($action == 'edit' && $aid != 'update') { $eaid = $aid; - if(Post::has('title')) { + if (Post::has('title')) { $art = new NLArticle(Post::v('title'), Post::v('body'), Post::v('append'), $eaid, Post::v('cid'), Post::v('pos')); } else { diff --cc modules/profile.php index 298d49c,58a485f..f64d8c7 --- a/modules/profile.php +++ b/modules/profile.php @@@ -24,54 -24,45 +24,55 @@@ class ProfileModule extends PLModul 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), - 'groupes-x/logo' => $this->make_hook('xnetlogo', AUTH_PUBLIC), - - 'vcard' => $this->make_hook('vcard', AUTH_COOKIE), - '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/edu' => $this->make_hook('ajax_edu', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/medal' => $this->make_hook('ajax_medal', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/networking' => $this->make_hook('networking', AUTH_PUBLIC), + 'profile/ajax/job' => $this->make_hook('ajax_job', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/sector' => $this->make_hook('ajax_sector', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/sub_sector' => $this->make_hook('ajax_sub_sector', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/alternates' => $this->make_hook('ajax_alternates', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/skill' => $this->make_hook('ajax_skill', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/searchname' => $this->make_hook('ajax_searchname', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/ajax/buildnames' => $this->make_hook('ajax_buildnames', AUTH_COOKIE, 'user', NO_AUTH), + 'javascript/education.js' => $this->make_hook('education_js', AUTH_COOKIE), + 'javascript/grades.js' => $this->make_hook('grades_js', AUTH_COOKIE), + 'profile/medal' => $this->make_hook('medal', AUTH_PUBLIC), + 'profile/name_info' => $this->make_hook('name_info', AUTH_PUBLIC), + 'profile/orange' => $this->make_hook('p_orange', 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), ++ 'groupes-x/logo' => $this->make_hook('xnetlogo', AUTH_PUBLIC), + + '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/education' => $this->make_hook('admin_education', AUTH_MDP, 'admin'), + 'admin/education_field' => $this->make_hook('admin_education_field', AUTH_MDP, 'admin'), + 'admin/education_degree' => $this->make_hook('admin_education_degree', AUTH_MDP, 'admin'), + 'admin/education_degree_set' => $this->make_hook('admin_education_degree_set', AUTH_MDP, 'admin'), + 'admin/sections' => $this->make_hook('admin_sections', AUTH_MDP, 'admin'), + 'admin/networking' => $this->make_hook('admin_networking', AUTH_MDP, 'admin'), + 'admin/trombino' => $this->make_hook('admin_trombino', AUTH_MDP, 'admin'), + 'admin/sectors' => $this->make_hook('admin_sectors', AUTH_MDP, 'admin'), + 'admin/corps_enum' => $this->make_hook('admin_corps_enum', AUTH_MDP, 'admin'), + 'admin/corps_rank' => $this->make_hook('admin_corps_rank', AUTH_MDP, 'admin'), + 'admin/names' => $this->make_hook('admin_names', AUTH_MDP, 'admin'), ); } diff --cc templates/events/index.tpl index a24a212,904d698..23004ce --- a/templates/events/index.tpl +++ b/templates/events/index.tpl @@@ -27,8 -27,8 +27,8 @@@ {else}

-Bienvenue {$smarty.session.prenom}{if $birthday} +Bienvenue {$smarty.session.yourself_name}{if $birthday} -  et joyeux anniversaire de la part de toute l'équipe ! +  et joyeux anniversaire de la part de toute l'équipe ! {else}, {/if}

diff --cc templates/platal/motdepasse.success.tpl index 0ff8196,e4fe950..cf9f2b5 --- a/templates/platal/motdepasse.success.tpl +++ b/templates/platal/motdepasse.success.tpl @@@ -29,10 -29,10 +29,10 @@@ Mot de passe enregistré le {$smarty.now|date_format}

- Attention! Il est crypté irréversiblement, + Attention ! Il est crypté irréversiblement, donc non récupérable. Pour retrouver un accès au site consécutivement à une perte de mot de passe, la procédure - est longue et laborieuse... + est longue et laborieuse…

diff --cc templates/profile/mentor.tpl index 36a6e87,7e3f372..14a0a83 --- a/templates/profile/mentor.tpl +++ b/templates/profile/mentor.tpl @@@ -22,9 -22,9 +22,9 @@@

{icon name=information title="Afficher ma fiche référent"}Tu peux consulter ta fiche référent qui n'est accessible que par les X.

-{if (!$expertise)||(!($secteurs|@count))} +{if (!$expertise)||(!($sectors|@count))}

- Attention : pour figurer dans la base de données des mentors, il faut remplir la + Attention : pour figurer dans la base de données des mentors, il faut remplir la dernière case en bas de cette page et avoir au moins un secteur d'activité de prédilection.

{/if} diff --cc templates/profile/orange.tpl index 628ad9a,08a62db..df9aea4 --- a/templates/profile/orange.tpl +++ b/templates/profile/orange.tpl @@@ -32,10 -32,10 +32,10 @@@ {else}

- Afin de pouvoir être considéré(e) à la fois dans ta promotion d'origine et ta + Afin de pouvoir être considéré{if $sexe}e{/if} à la fois dans ta promotion d'origine et ta - ou tes promotions d'adoption tu peux entrer ici ton année de sortie de l'école. + ou tes promotions d'adoption tu peux entrer ici ton année de sortie de l'École. Plus précisément, il s'agit de l'année d'entrée en quatrième année ou année d'application. - Pour tes cocons d'origine (X{$promo}) il s'agit de l'année {math equation="a + b" a=$promo b=3}. + Pour tes cocons d'origine ({$promo}) il s'agit de l'année {math equation="a + b" a=$promo b=3}.


diff --cc templates/profile/referent.tpl index 5e02b2c,90f5afb..01e3d30 --- a/templates/profile/referent.tpl +++ b/templates/profile/referent.tpl @@@ -69,11 -69,11 +69,11 @@@ function setSubSectors(
- Secteur de compétence
du référent + Secteur de compétence
du référent
- + {html_options options=$sectors selected=$sectorSelection}