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.*
* $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
$banana->state = Array ('group' => $group, 'artid' => $artid);
if (is_null($group)) {
-
if (isset($_GET['subscribe'])) {
return $banana->action_listSubs();
} elseif (isset($_POST['subscribe'])) {
}
} else {
-
if (isset($_POST['action']) && $_POST['action']=='cancel') {
$res = $banana->action_cancelArticle($group, $artid);
} else {
$html .= '<tr><th colspan="2">'._b_('Corps').'</th></tr>';
$html .= '<tr><td colspan="2"><textarea name="body" cols="74" rows="16">'
. to_entities($body).($this->profile['sig'] ? "\n\n-- \n".htmlentities($this->profile['sig']) : '').'</textarea></td></tr>';
- $html .= '<tr><th colspan="2">'._b_('Pièces jointes').'</th></tr>';
- $html .= '<tr><td colspan="2"><input type="hidden" name="MAX_FILE_SIZE" value="'.$this->maxfilesize.'" />';
- $html .= '<input type="file" name="newpj" size="40"/></td></tr>';
+ if ($this->can_attach) {
+ $html .= '<tr><th colspan="2">'._b_('Pièce jointe').'</th></tr>';
+ $html .= '<tr><td colspan="2"><input type="hidden" name="MAX_FILE_SIZE" value="'.$this->maxfilesize.'" />';
+ $html .= '<input type="file" name="newpj" size="40"/></td></tr>';
+ }
$html .= '<tr><th colspan="2">';
if ($id > 0) {
$html .= '<input type="hidden" name="artid" value="'.$id.'" />';
}
$body_headers = $this->custom_plain;
- $body = wrap($body, "", $this->wrap);
+ $body = wrap($body, "");
// include attachment in the body
$uploaded = $this->_upload('newpj');