GetOne("SELECT s.*,t.* FROM `#@__member_stow` AS s LEFT JOIN `#@__member_stowtype` AS t ON s.type=t.stowname WHERE s.aid='$aid' AND s.type='$type'"); if(!is_array($arcRow)){ ShowMsg("无法把未知文档推荐给好友!","-1"); exit(); } $arcRow['arcurl']=$arcRow['indexurl']."=".$arcRow['aid']; extract($arcRow, EXTR_OVERWRITE); } } //发送推荐信? else if($action=='send') { if(!CheckEmail($email)) { echo ""; exit(); } $mailbody = ''; $msg = dede_htmlspecialchars($msg); $mailtitle = "你的好友l你推荐了一文?; $mailbody .= "$msg \r\n\r\n"; $mailbody .= "Power by http://www.dedecms.com l梦内容理pȝQ?; $headers = "From: ".$cfg_adminemail."\r\nReply-To: ".$cfg_adminemail; if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server)) { $mailtype = 'TXT'; require_once(DEDEINC.'/mail.class.php'); $smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password); $smtp->debug = false; $smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype); } else { @mail($email, $mailtitle, $mailbody, $headers); } ShowMsg("成功推荐一文?",$arcurl); exit(); } $arcRow = GetOneArchive($aid); if($arcRow['aid']=='') { ShowMsg("无法把未知文档推荐给好友!","-1"); exit(); } extract($arcRow, EXTR_OVERWRITE); //昄模板(单PHP文g) include(DEDETEMPLATE.'/plus/recommend.htm'); Ͼ齫ôӮ