global $script, $post, $vars, $cols, $rows, $now;
global $_title_collided, $_msg_collided, $_title_updated;
global $_mailto, $_no_subject, $_no_name;
global $script, $post, $vars, $cols, $rows, $now;
global $_title_collided, $_msg_collided, $_title_updated;
global $_mailto, $_no_subject, $_no_name;
if ($post['msg'] == '') {
return array('msg'=>'','body'=>'');
}
if ($post['msg'] == '') {
return array('msg'=>'','body'=>'');
}
$name = ($post['name'] == '') ? $_no_name : $post['name'];
$name = ($name == '') ? '' : str_replace('$name', $name, NAME_FORMAT);
$subject = ($post['subject'] == '') ? $_no_subject : $post['subject'];
$subject = ($subject == '') ? '' : str_replace('$subject', $subject, SUBJECT_FORMAT);
$article = "$subject\n>$name ($now)~\n~\n";
$name = ($post['name'] == '') ? $_no_name : $post['name'];
$name = ($name == '') ? '' : str_replace('$name', $name, NAME_FORMAT);
$subject = ($post['subject'] == '') ? $_no_subject : $post['subject'];
$subject = ($subject == '') ? '' : str_replace('$subject', $subject, SUBJECT_FORMAT);
$article = "$subject\n>$name ($now)~\n~\n";
$msg = join("\n", preg_replace('/^(?!\/\/)(?!\s)(.*)$/', '$1~', explode("\n", $msg)));
}
$article .= "$msg\n\n//";
$msg = join("\n", preg_replace('/^(?!\/\/)(?!\s)(.*)$/', '$1~', explode("\n", $msg)));
}
$article .= "$msg\n\n//";
if (md5(@join('', get_source($post['refer']))) != $post['digest']) {
$title = $_title_collided;
if (md5(@join('', get_source($post['refer']))) != $post['digest']) {
$title = $_title_collided;
$s_refer = htmlspecialchars($post['refer']);
$s_digest = htmlspecialchars($post['digest']);
$s_postdata = htmlspecialchars($postdata_input);
$s_refer = htmlspecialchars($post['refer']);
$s_digest = htmlspecialchars($post['digest']);
$s_postdata = htmlspecialchars($postdata_input);
// Åê¹ÆÆâÍƤΥ᡼¥ë¼«Æ°Á÷¿®
if (MAIL_AUTO_SEND) {
$mailaddress = implode(',', $_mailto);
// Åê¹ÆÆâÍƤΥ᡼¥ë¼«Æ°Á÷¿®
if (MAIL_AUTO_SEND) {
$mailaddress = implode(',', $_mailto);
$mailbody = $post['msg'];
$mailbody .= "\n\n---\n";
$mailbody .= $_msg_article_mail_sender . $post['name'] . " ($now)\n";
$mailbody .= $_msg_article_mail_page . $post['refer'] . "\n";
$mailbody .= '¡¡ URL: ' . $script . '?' . rawurlencode($post['refer']) . "\n";
$mailbody = mb_convert_encoding( $mailbody, "JIS" );
$mailbody = $post['msg'];
$mailbody .= "\n\n---\n";
$mailbody .= $_msg_article_mail_sender . $post['name'] . " ($now)\n";
$mailbody .= $_msg_article_mail_page . $post['refer'] . "\n";
$mailbody .= '¡¡ URL: ' . $script . '?' . rawurlencode($post['refer']) . "\n";
$mailbody = mb_convert_encoding( $mailbody, "JIS" );
mail($mailaddress, $mailsubject, $mailbody, $mailaddheader);
}
mail($mailaddress, $mailsubject, $mailbody, $mailaddheader);
}
$title = $_title_updated;
}
$retvars['msg'] = $title;
$retvars['body'] = $body;
$title = $_title_updated;
}
$retvars['msg'] = $title;
$retvars['body'] = $body;
global $script, $vars, $digest;
global $_btn_article, $_btn_name, $_btn_subject;
static $numbers = array();
global $script, $vars, $digest;
global $_btn_article, $_btn_name, $_btn_subject;
static $numbers = array();
if (! array_key_exists($vars['page'], $numbers))
{
$numbers[$vars['page']] = 0;
}
$article_no = $numbers[$vars['page']]++;
if (! array_key_exists($vars['page'], $numbers))
{
$numbers[$vars['page']] = 0;
}
$article_no = $numbers[$vars['page']]++;