X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=banana%2Fpost.inc.php;h=87c35912eb029d7e5e45b3d18593bf71c7550060;hb=512f2eb6433e4cf4e26ad97d57bf4f47f71c3877;hp=09c2a0a0ad00f0468ccfd72b0f4d8c2c29abf999;hpb=a0b774a3d90122733a81a40622e23e21c44aed41;p=banana.git
diff --git a/banana/post.inc.php b/banana/post.inc.php
index 09c2a0a..87c3591 100644
--- a/banana/post.inc.php
+++ b/banana/post.inc.php
@@ -315,7 +315,32 @@ class BananaPost
if (function_exists('hook_checkcancel')) {
return hook_checkcancel($this->headers);
}
- return ($this->headers['from'] == $_SESSION['name']." <".$_SESSION['mail'].">");
+ if (!isset($_SESSION)) {
+ return false;
+ }
+ return ($this->headers['from'] == $_SESSION['name'] . ' <' . $_SESSION['mail']. '>');
+ }
+
+ /** Make some links to browse the current newsgroup
+ */
+ function _browser()
+ {
+ global $banana;
+ $ret = '
';
}
/** convert message to html
@@ -351,8 +376,29 @@ class BananaPost
}
$res = '';
- $res .= ''._b_('En-têtes').' |
';
- $res .= '|