projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix skins
[platal.git]
/
modules
/
banana.php
diff --git
a/modules/banana.php
b/modules/banana.php
index
aa5ccca
..
3dab3d1
100644
(file)
--- a/
modules/banana.php
+++ b/
modules/banana.php
@@
-72,11
+72,11
@@
class BananaModule extends PLModule
SELECT nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'),
IF(FIND_IN_SET('automaj',flags),'1','0')
FROM forums.profils
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 = {?}", S
ession::getInt
('uid'));
+ WHERE uid = {?}", S
::v
('uid'));
if (!(list($nom,$mail,$sig,$disp,$maj) = $req->fetchOneRow())) {
if (!(list($nom,$mail,$sig,$disp,$maj) = $req->fetchOneRow())) {
- $nom = S
ession::get('prenom').' '.Session::get
('nom');
- $mail = S
ession::get
('forlife').'@'.$globals->mail->domain;
- $sig = $nom.' ('.S
ession::getInt
('promo').')';
+ $nom = S
::v('prenom').' '.S::v
('nom');
+ $mail = S
::v
('forlife').'@'.$globals->mail->domain;
+ $sig = $nom.' ('.S
::v
('promo').')';
$disp = 0;
$maj = 0;
}
$disp = 0;
$maj = 0;
}
@@
-89,7
+89,7
@@
class BananaModule extends PLModule
XDB::execute(
'REPLACE INTO forums.profils (uid,sig,mail,nom,flags)
VALUES ({?},{?},{?},{?},{?})',
XDB::execute(
'REPLACE INTO forums.profils (uid,sig,mail,nom,flags)
VALUES ({?},{?},{?},{?},{?})',
- S
ession::getInt
('uid'), Post::get('bananasig'),
+ S
::v
('uid'), Post::get('bananasig'),
Post::get('bananamail'), Post::get('banananame'),
(Post::getBool('bananadisplay') ? 'threads,' : '') .
(Post::getBool('bananaupdate') ? 'automaj' : '')
Post::get('bananamail'), Post::get('banananame'),
(Post::getBool('bananadisplay') ? 'threads,' : '') .
(Post::getBool('bananaupdate') ? 'automaj' : '')