projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapts marketting processing to new mail chain.
[platal.git]
/
modules
/
xnet.php
diff --git
a/modules/xnet.php
b/modules/xnet.php
index
9ad297a
..
df5d753
100644
(file)
--- a/
modules/xnet.php
+++ b/
modules/xnet.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-38,33
+38,33
@@
class XnetModule extends PLModule
);
}
);
}
- function handler_photo(
&
$page, $x = null)
+ function handler_photo($page, $x = null)
{
if (!$x || !($profile = Profile::get($x))) {
return PL_NOT_FOUND;
}
// Retrieve the photo and its mime type.
{
if (!$x || !($profile = Profile::get($x))) {
return PL_NOT_FOUND;
}
// Retrieve the photo and its mime type.
- $photo = $profile->getPhoto(true);
+ $photo = $profile->getPhoto(true
, true
);
// Display the photo, or a default one when not available.
$photo->send();
}
// Display the photo, or a default one when not available.
$photo->send();
}
- function handler_index(
&
$page)
+ function handler_index($page)
{
$page->nomenu = true;
$page->changeTpl('xnet/index.tpl');
}
{
$page->nomenu = true;
$page->changeTpl('xnet/index.tpl');
}
- function handler_exit(
&
$page)
+ function handler_exit($page)
{
Platal::session()->stopSUID();
Platal::session()->destroy();
$page->changeTpl('xnet/deconnexion.tpl');
}
{
Platal::session()->stopSUID();
Platal::session()->destroy();
$page->changeTpl('xnet/deconnexion.tpl');
}
- function handler_admin(
&
$page)
+ function handler_admin($page)
{
$page->changeTpl('xnet/admin.tpl');
{
$page->changeTpl('xnet/admin.tpl');
@@
-117,7
+117,7
@@
class XnetModule extends PLModule
XDB::execute('INSERT INTO groups (id, diminutif)
VALUES (NULL, {?})',
Post::v('diminutif'));
XDB::execute('INSERT INTO groups (id, diminutif)
VALUES (NULL, {?})',
Post::v('diminutif'));
- pl_redirect(
'../' .
Post::v('diminutif') . '/edit');
+ pl_redirect(Post::v('diminutif') . '/edit');
} else {
$page->trigError('Le diminutif demandé est déjà pris.');
}
} else {
$page->trigError('Le diminutif demandé est déjà pris.');
}
@@
-129,7
+129,7
@@
class XnetModule extends PLModule
$page->assign('assos', $res->fetchAllAssoc());
}
$page->assign('assos', $res->fetchAllAssoc());
}
- function handler_plan(
&
$page)
+ function handler_plan($page)
{
$page->changeTpl('xnet/plan.tpl');
{
$page->changeTpl('xnet/plan.tpl');
@@
-170,15
+170,15
@@
class XnetModule extends PLModule
$page->assign('inst', $res);
}
$page->assign('inst', $res);
}
- function handler_groups2(
&
$page)
+ function handler_groups2($page)
{
{
- $this->handler_groups(
&
$page, Get::v('cat'), Get::v('dom'));
+ $this->handler_groups($page, Get::v('cat'), Get::v('dom'));
}
}
- function handler_groups(
&
$page, $cat = null, $dom = null)
+ function handler_groups($page, $cat = null, $dom = null)
{
if (!$cat) {
{
if (!$cat) {
- $this->handler_index(
&
$page);
+ $this->handler_index($page);
}
$cat = mb_strtolower($cat);
}
$cat = mb_strtolower($cat);
@@
-187,7
+187,7
@@
class XnetModule extends PLModule
$page->assign('cat', $cat);
$page->assign('dom', $dom);
$page->assign('cat', $cat);
$page->assign('dom', $dom);
- $res = XDB::query("SELECT id,nom
+ $res = XDB::query("SELECT id,nom
FROM group_dom
WHERE FIND_IN_SET({?}, cat)
ORDER BY nom", $cat);
FROM group_dom
WHERE FIND_IN_SET({?}, cat)
ORDER BY nom", $cat);
@@
-211,7
+211,7
@@
class XnetModule extends PLModule
$page->setType($cat);
}
$page->setType($cat);
}
- function handler_autologin(
&
$page)
+ function handler_autologin($page)
{
$allkeys = func_get_args();
unset($allkeys[0]);
{
$allkeys = func_get_args();
unset($allkeys[0]);