X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fbanana.inc.php.in;h=78589298180a34e978d16c745e704ddce3da8e70;hb=990dffd3cc54c3851ae4923c8d1d516aceb0ce59;hp=f160209a81d34bc73f358af3197cdba4f6b0ea7f;hpb=87514711ce06651c12c9bc3cc3675640559edf5a;p=banana.git diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index f160209..7858929 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -24,7 +24,10 @@ class Banana var $can_attach = true; /** Maximum allowed file size for attachment */ - var $maxfilesize = 100000; + var $maxfilesize = 100000; + /** Indicate wether x-face should be skinned as specials data or not + */ + var $formatxface = true; /** Regexp for selecting newsgroups to show (if empty, match all newsgroups) * ex : '^xorg\..*' for xorg.* @@ -47,7 +50,7 @@ class Banana * $matches[2] = "http://www.polytechnique.org" * $matches[3] = "]" */ - var $url_regexp = '(["\[])?((?:https?|ftp|news)://(?:&|[a-z@0-9.~%$£µ&i#\-+=_/\?])*)(["\]])?'; + var $url_regexp = '(["\[])?((?:https?|ftp|news)://(?:&|,?[a-z@0-9.~%$£µ&i#\-+=_/\?])*)(["\]])?'; /** Boundary for multipart messages @@ -103,7 +106,6 @@ class Banana $banana->state = Array ('group' => $group, 'artid' => $artid); if (is_null($group)) { - if (isset($_GET['subscribe'])) { return $banana->action_listSubs(); } elseif (isset($_POST['subscribe'])) { @@ -121,7 +123,6 @@ class Banana } } else { - if (isset($_POST['action']) && $_POST['action']=='cancel') { $res = $banana->action_cancelArticle($group, $artid); } else { @@ -315,9 +316,11 @@ class Banana $html .= ''._b_('Corps').''; $html .= ''; - $html .= ''._b_('Pièces jointes').''; - $html .= ''; - $html .= ''; + if ($this->can_attach) { + $html .= ''._b_('Pièce jointe').''; + $html .= ''; + $html .= ''; + } $html .= ''; if ($id > 0) { $html .= ''; @@ -355,7 +358,7 @@ class Banana } $body_headers = $this->custom_plain; - $body = wrap($body, "", $this->wrap); + $body = wrap($body, ""); // include attachment in the body $uploaded = $this->_upload('newpj');