- function handler_forums_bans_service(&$page, $action = 'list', $id = null)
- {
- global $globals;
-
- $ips = array_flip(explode(' ', $globals->banana->bans_authorized_ips));
-
- if ($ips && isset($ips[$_SERVER['REMOTE_ADDR']])) {
-
- $res = XDB::query("SELECT priority, read_perm, write_perm, comment
- FROM forums.innd AS i
- INNER JOIN x4dat.aliases AS a ON ( a.id = i.uid AND a.type='a_vie' )
- INNER JOIN x4dat.aliases AS b ON ( b.id = a.id AND b.type != 'homonyme' )
- WHERE b.alias = '".addslashes(Env::v('forlife'))."'");
- $ban = $res->fetchOneAssoc();
- print_r($ban);
- echo $ban['priority']."\n".$ban['read_perm']."\n".$ban['write_perm']."\n".$ban['comment']."\n";
- }
- exit();
- }
-