From 6fa87b6e96f094203d0225af61a5d90d2985f655 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 4 Jan 2005 23:10:55 +0000 Subject: [PATCH] still making it a library. remains post.php + event handlers --- css/style.css | 3 ++ disconnect.php | 25 ---------------- include/banana.inc.php.in | 14 ++++++++- include/misc.inc.php | 2 -- subscribe.php | 72 +---------------------------------------------- 5 files changed, 17 insertions(+), 99 deletions(-) delete mode 100644 disconnect.php diff --git a/css/style.css b/css/style.css index 68afe1d..65ff1d6 100644 --- a/css/style.css +++ b/css/style.css @@ -35,3 +35,6 @@ table.banana_msg .hdr { width: 15%; text-align: right; font-weight: bold; paddin table.banana_msg td.thrd { padding: 0px; } table.banana_msg table { border: 0px; padding: 0px; margin: 0px; width: 100%; } +/** MISC **/ + +div.center { text-align: center; padding: 1em; } diff --git a/disconnect.php b/disconnect.php deleted file mode 100644 index 28b2b55..0000000 --- a/disconnect.php +++ /dev/null @@ -1,25 +0,0 @@ - -
- -
-

- profil'); ?> -

- diff --git a/include/banana.inc.php.in b/include/banana.inc.php.in index 454e063..413ddbe 100644 --- a/include/banana.inc.php.in +++ b/include/banana.inc.php.in @@ -55,7 +55,7 @@ class Banana function action_listGroups() { - $this->newGroup(BANANA_GROUP_SUB); + $this->newGroup(); $cuts = displayshortcuts(); $res = '

'._b_('Les forums de Banana').'

'.$cuts.$this->groups->to_html(); @@ -68,6 +68,18 @@ class Banana return $res.$cuts; } + function action_listSubs() + { + require_once("include/groups.inc.php"); + $this->groups = new BananaGroups(BANANA_GROUP_ALL); + + $cuts = displayshortcuts(); + $res = '

'._b_('Abonnements').'

'.$cuts.$this->groups->to_html(true).$cuts; + + $this->nntp->quit(); + return $res; + } + function action_showThread($group, $first) { $this->newSpool($group, $this->profile['display'], $this->profile['lastnews']); diff --git a/include/misc.inc.php b/include/misc.inc.php index dafc163..a478bdb 100644 --- a/include/misc.inc.php +++ b/include/misc.inc.php @@ -154,8 +154,6 @@ function displayshortcuts($first = -1) { if (function_exists('hook_displayshortcuts')) { $res .= hook_displayshortcuts($sname, $first); - } else { - $res .= '['._b_('Déconnexion').'] '; } switch ($sname) { diff --git a/subscribe.php b/subscribe.php index 110d65b..4483a71 100644 --- a/subscribe.php +++ b/subscribe.php @@ -10,77 +10,7 @@ require_once("include/banana.inc.php"); require_once("include/header.inc.php"); -$groups = new BananaGroups(2); -?> - -

- -

- -profile['subscribe']=$_POST['subscribe']; -} - -if (!sizeof($groups->overview)) error("nntpgroups"); - -displayshortcuts(); -?> - -
- - - - - - - -overview as $g => $d) { - $pair = !$pair; - $groupinfo = $banana->nntp->group($g); - $newarts = $banana->nntp->newnews($banana->profile['lastnews'], $g); -?> - " > - - - - - - - "> - - -
- - - - - - - -
- - - profile['subscribe'])) echo 'checked="checked"'; ?> /> - - $g";?> - - -
- -
-
-action_listSubs(); -$banana->nntp->quit(); require_once("include/footer.inc.php"); ?> -- 2.1.4