Merge branch 'platal-0.9.17'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 10 Jul 2008 20:35:46 +0000 (22:35 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 10 Jul 2008 20:35:46 +0000 (22:35 +0200)
Conflicts:

include/banana/forum.inc.php
include/common.inc.php
modules/core.php
modules/marketing.php
plugins/modifier.miniwiki.php

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
1  2 
classes/xnetpage.php
include/banana/forum.inc.php
include/banana/moderate.inc.php
include/common.inc.php
include/vcard.inc.php
modules/events.php
modules/lists.php
modules/marketing.php
modules/xnetevents.php
templates/xnet/skin.tpl

Simple merge
@@@ -174,13 -179,18 +179,19 @@@ class ForumsBanana extends Banan
  
      protected function action_updateProfile()
      {
 -        global $page, $globals;
 +        global $globals;
 +        $page = Platal::page();
  
-         if (Post::has('action') && Post::has('banananame') && Post::has('bananasig')
-                 && Post::has('bananadisplay') && Post::has('bananamail')
-                 && Post::has('bananaupdate') && Post::v('action')=="Enregistrer" ) {
-             $flags = new PlFlagSet();
+         $colors = glob(dirname(__FILE__) . '/../../htdocs/images/banana/m2*.gif');
+         foreach ($colors as $key=>$path) {
+             $path = basename($path, '.gif');
+             $colors[$key] = substr($path, 2);
+         }
+         $page->assign('colors', $colors);
+         if (Post::has('action') && Post::v('action') == 'Enregistrer') {
+             S::assert_xsrf_token();
+             $flags = new FlagSet();
              if (Post::b('bananadisplay')) {
                  $flags->addFlag('threads');
              }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -261,6 -267,9 +267,7 @@@ class MarketingModule extends PLModul
              $page->assign('promo', $promo);
  
              if (Post::has('valide')) {
 -
 -                require_once('xorg.misc.inc.php');
+                 S::assert_xstf_token();
                  $email = trim(Post::v('mail'));
  
                  if (!isvalid_email_redirection($email)) {
Simple merge
Simple merge