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

📄 sendmail.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");

$add_title=" &gt; $gl[36]";
require("header.php");
navi_bar("$gl[37]","$gl[36]",'','no');
?>
<br>
<table width="600" align=center border="0" cellspacing="0" cellpadding="0" bgcolor="<? echo $bordercolor; ?>">
  <tr> 
    <td> 
<?
if ($login_status==0) { print_err(); include("footer.php"); exit;}
if (strpos($target,"/")!==false) die;
if ($target && file_exists("$id_unique/".urlencode($target).".php")) {
	$usertemp=readfromfile("$id_unique/".urlencode($target).".php");
	$userdetail=explode("|",$usertemp);
	$usermail=$userdetail[3];
	$receiver=str_replace("<?exit;?>","",$userdetail[0]);
}
else {
	$usermail=$admin_email;
	$receiver=$admin_name;
}

if (!empty($action) && $action=="send") {
	if (empty($emailcontent) || utf8_strlen($emailcontent)<=20) {
		$action="fail";
		$status="$gl[38]";
	}
}

if (empty($action) || $action=="fail") {
?>
            <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td  bgcolor=<?=$categorycolor?>><font class=title>&nbsp;<?=$gl[39]?> <font color="red"><? if ($status) echo $status; ?></font></font></td>
              </tr><form action="sendmail.php" method=post>
              <tr bgcolor=<?=$article_color1?>> 
                <td><?=$gl[40]?> 
                  <input value="<? if ($title) echo $title; ?>" type="text" name="title" size="40" maxlength="80" >
                </td>
              </tr>
              <tr bgcolor=<?=$article_color2?>>
                <td><?=$gl[41]?></td>
              </tr>
              <tr align="center" bgcolor=<?=$article_color1?>>
                <td>
                  <textarea  name="emailcontent" rows=10 wrap=hard cols=58 ><? if ($emailcontent) echo $emailcontent; ?></textarea>
                </td>
              </tr>
              <tr>
                <td bgcolor="<?=$subcolor?>">
                  &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="<?=$gl[42]?>" >
                  &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="<?=$gl[43]?>" >
                  <input type="hidden" value="send" name="action">
                  <input type="hidden" value="<? if (isset($target)) echo $target; ?>" name="target">

          </td>
        </tr></form>
      </table>
<?
}
if (!empty($action) && $action=="send") {
	$temp=get_user_info($username);
	$email=$temp[3];
?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr bgcolor=<?=$titlecolor?>>
<td><font color=<?=$titlefontcolor?>>
Sending</font>
</td></tr>
<tr bgcolor=<?=$article_color2?>>
<td>
<br>
<?=$gl[31]?><br>
<?
include_once("datafile/sendmail.php");
if (BMMailer("$usermail","=?UTF-8?B?".base64_encode($title)."?=",base64_encode($emailcontent),"From: $username <$email>\r\nReply-To:$email\r\nX-Mailer: BMForum.com\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Transfer-Encoding: base64")) echo $gl[35];
else echo "$gl[44]";
?><br></td>
</tr>
<tr bgcolor=<?=$subcolor?>>
<td> 
<div align="center">
<input type="button" onclick="javascript:history.go(-1);" value="<?=$gl[45]?>" name="button2">
</div>
</td>
</tr>
</table>
<?
}
?>
</td>
</tr>
</table>
<? include("footer.php");
function print_err() {
global $subcolor,$titlecolor,$article_color2,$gl,$titlefontcolor;
?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr bgcolor=<?=$titlecolor?>>
<td><font color=<?=$titlefontcolor?>>
<?=$gl[46]?></font>
</td></tr>
<tr bgcolor=<?=$article_color2?>>
<td>
<br>
<?=$gl[47]?>
<ul>
<li><a href="javascript:history.go(-1);"><?=$gl[15]?></a>
<li><a href=login.php><?=$gl[48]?></a>
</ul>
</td>
</tr>
</table>
</td>
</tr>
</table><br>
<?

}
?>

⌨️ 快捷键说明

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