{
require_once 'lists.inc.php';
- $this->client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+ $this->client =& lists_xmlrpc(S::v('uid'), S::v('password'));
}
function handler_lists(&$page)
{
- global $globals;
-
$this->prepare_client($page);
$page->changeTpl('listes/index.tpl');
function handler_create(&$page)
{
- global $globals;
$page->changeTpl('listes/create.tpl');
$owners = preg_split("/[\s]+/", Post::get('owners'), -1, PREG_SPLIT_NO_EMPTY);
if (!$page->nb_errs()) {
$page->assign('created', true);
require_once 'validations.inc.php';
- $req = new ListeReq(Session::getInt('uid'), $liste,
+ $req = new ListeReq(S::v('uid'), $liste,
Post::get('desc'), Post::getInt('advertise'),
Post::getInt('modlevel'), Post::getInt('inslevel'),
$owners, $members);
function handler_members(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
function _get_list($offset, $limit)
{
- global $globals, $platal;
+ global $platal;
list($total, $members) = $this->client->get_members_limit($platal->argv[1], $offset, $limit);
$membres = Array();
function handler_trombi(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
function handler_moderate(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
$mail = $this->client->get_pending_mail($liste, $mid);
$reason = '';
- $prenom = Session::get('prenom');
- $nom = Session::get('nom');
+ $prenom = S::v('prenom');
+ $nom = S::v('nom');
if (Env::has('mok')) {
$action = 1; /** 2 = ACCEPT **/
function handler_options(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
function handler_delete(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
function handler_soptions(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}
function handler_check(&$page, $liste = null)
{
- global $globals;
-
if (is_null($liste)) {
return PL_NOT_FOUND;
}