missing GPL header
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 15 Feb 2005 22:53:08 +0000 (22:53 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:09 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-471

htdocs/banana/profile.php
include/banana.inc.php

index 61996f4..f90617e 100644 (file)
@@ -26,15 +26,15 @@ if (!(Post::has('action') && Post::has('banananame') && Post::has('bananasig') &
             && Post::has('bananamail') && Post::has('bananaupdate') && Post::get('action')=="OK" ))
 {
     $req = $globals->xdb->query("
-       SELECT  nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'),
-               IF(FIND_IN_SET('automaj',flags),'1','0') 
-         FROM  forums.profils
-        WHERE  uid = {?}", Session::getInt('uid'));
+        SELECT  nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'),
+                IF(FIND_IN_SET('automaj',flags),'1','0') 
+          FROM  forums.profils
+         WHERE  uid = {?}", Session::getInt('uid'));
     if (!(list($nom,$mail,$sig,$disp,$maj) = $req->fetchOneRow())) {
-       $nom  = Session::get('prenom').' '.Session::get('nom');
-       $mail = Session::get('forlife').'@'.$globals->mail->domain;
-       $sig  = $nom.' ('.Session::getInt('promo').')';
-       $disp = 0;
+        $nom  = Session::get('prenom').' '.Session::get('nom');
+        $mail = Session::get('forlife').'@'.$globals->mail->domain;
+        $sig  = $nom.' ('.Session::getInt('promo').')';
+        $disp = 0;
         $maj  = 0;
     }
     $page->assign('nom' , $nom);
index ec13f1a..30b8077 100644 (file)
@@ -1,4 +1,24 @@
 <?php
+/***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
 require_once('banana/banana.inc.php');
 
 function hook_formatDisplayHeader($_header,$_text) {