⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendfriend.php

📁 bmb的论坛
💻 PHP
字号:
<?
/* BMForum Plus! Bulletin Board Systems Version : Plus!  This is a freeware, but don't change the copyright information. A SourceForge Project - GNU Licence project. Web Site: http://www.bmforum.com Copyright (C) Bluview Technology*/

require("datafile/config.php");
require("getskin.php");
require("bmbcodes.php");
include("datafile/usertitle.php");
require("lang/$language/forums.php");
require("newtem/$temfilename/global.php");
echo $pgo[2];

if (empty($username) || $login_status==0) {
	include("header.php");
	$navi_bar_l2="$gl[190]";
	navi_bar($navi_bar_des,$navi_bar_l2,"$gl[53]");
	$status="$gl[73]";
	print_err();
	include("footer.php");
	exit;
} 
$add_title=" &gt; $gl[190]";
$bbs_path=$idpath;
if (!$forumid || !file_exists("{$bbs_path}forum$forumid")) exit;
if (!$filename || !file_exists("{$bbs_path}forum$forumid/$filename") || !ereg("^f_[0-9]+$",$filename) || !file_exists("{$bbs_path}forum$forumid/list.php")) exit;
get_forum_info();
if (file_exists("{$idpath}forum$forumid/trash.php")) {
		$oldlist=file("{$idpath}forum$forumid/trash.php");
		$count=count($oldlist);
		for ($i=0; $i<$count; $i++) {
			$detail=explode("|",$oldlist[$i]);
			if ($detail[5]==$filename) {
				$checktrash="yes";
			}
		}
}

if ($checktrash=="yes" && $view_recybin!="1") {
	include("header.php");
	navi_bar($error[3],
"<a href=\"forums.php?forumid=$forumid\">$forum_name</a>",
$gl[192],"no");
	msg_box($gl[192],$gl[438]);
	include("footer.php");
	exit;
}
$ford=explode("_",$forum_ford);
if($ford[0]==1 && ($postamount<$ford[1] || $userbym<$ford[2] || $usermoney<$ford[3]) && $usertype[21]!="1" && $usertype[22]!="1"){
	require("lang/$language/global.php");
	include("header.php");
	navi_bar("$gl[191]",
"<a href=\"forums.php?forumid=$forumid\">$forum_name</a>",
"$gl[192]","no");
	msg_box($gl[193],"$gl[194]");
	include("footer.php");
	exit;
}
if ($spusergroup=="1" && $enter_this_forum=="0" && $login_status=="1") {
	include("header.php");
	navi_bar($error[3],
"<a href=\"forums.php?forumid=$forumid\">$forum_name</a>",
$gl[192],"no");
	msg_box($gl[192],$gl[438]);
	include("footer.php");
	exit;
}
if($p_read_post==0) include("footer.php");
$articlelist=file("{$bbs_path}forum$forumid/$filename");
list($yoptitle,$yopauthor,$yopcontent,$yoptime,$aaa,$icon,$usesign,$bym,$bymuser,$jmmj,$edit,$sell)=explode("|",$articlelist[0]);
if ($mode=="bbs"){
	get_forum_info_2();
}else{
	get_forum_info();
}

if ($forum_pwd<>"" && $forum_pwd<>"d41d8cd98f00b204e9800998ecf8427e" && $job<>"login" && $_COOKIE['b'.$forumid.'mb']<>$forum_pwd) {
	echo "<meta http-equiv=\"Refresh\" content=\"0; URL=forums.php?forumid=$forumid\">";
	exit;
}

if ($step!=2) {
	include("header.php");
	print_bar();
	print_form();
	include("footer.php");
	exit;
}elseif($step==2){
	$check=1;
	if (!ereg("^[-a-zA-Z0-9_\.]+\@([0-9A-Za-z][0-9A-Za-z-]+\.)+[A-Za-z]{2,4}$",$fmail)) {$reason="$gl[195]"; $check=0;}
	if(empty($postname) || empty($incept) || empty($fmail) || empty($fcontent)){$reason="$gl[196]"; $check=0;}
	if ($check==0) {
	         include("header.php");
			 $navi_bar_l2="$gl[190]";
	         navi_bar($navi_bar_des,$navi_bar_l2,"$gl[53]");
		     $status=$reason;
	         print_err();
	         include("footer.php");
	         exit;
	}
	$textmessage="Hi, $incept ,\n    $fcontent \n\n";
	$textmessage.="$gl[197]\n";
	$textmessage.=" $yopauthor \n\n";
	$textmessage.="$gl[198]\n";
	$textmessage.="$yoptitle \n\n";
	$textmessage.="$gl[199]\n";
	$textmessage.="$script_pos/topic.php?forumid=$forumid&filename=$filename&mode=$mode \n\n\n";
	if($method=='all'){
		$textmessage.="$gl[200]\n";
		$bcode_post[bmfcodes]=1;
		$bcode_post[pic]=0;
		$count1=count($articlelist);
		for ($i=0; $i<$count1; $i++) {
			list($title,$author,$content,$time,$aaa,$icon,$usesign,$bym,$bymuser,$upload,$edit,$sell)=explode("|",$articlelist[$i]);
			$contentline=bmbconvert($content,$bmfcode_post);
			$contentline=preg_replace("/\[hpost=(.+?)\](.+?)\[\/hpost\]/is","$gl[162]",$contentline);
			$contentline=preg_replace("/\[hmoney=(.+?)\](.+?)\[\/hmoney\]/is","$gl[162]",$contentline);
			$contentline=preg_replace("/\[hide=(.+?)\](.+?)\[\/hide\]/is","$gl[162]",$contentline);
			if (!empty($sell)) $contentline="$gl[161]";
			$contentline=preg_replace("/\[post\](.+?)\[\/post\]/is","$gl[163]",$contentline);
			$contentline = str_replace("&lt;","<",$contentline);
			$contentline = str_replace("&gt;",">",$contentline);
			$contentline = str_replace("<br>","\n",$contentline);
			$contentline = str_replace("鈹

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -