
2023年3月27日发(作者:快乐的大脚)
* @param $message - 内容
* @param $fromid - 发送方id
* @param $from - 发送方名字
*/
function ndpm($toid, $subject, $message, $fromid = '') {
extract($GLOBALS, EXTR_SKIP);
include language('pms');
require_once DISCUZ_ROOT.'./uc_client/';
if(ist($language[$subject])) {
eval("$subject = addslashes("".$language[$subject]."");");
}
if(ist($language[$message])) {
eval("$message = addslashes("".$language[$message]."");");
}
if($fromid === '') {
$fromid = $discuz_uid;
}
uc_pm_nd($fromid, $toid, $subject, $message);
}
/**
* 显示标准提示信息
*课外书手抄报
@param $toid - 信息
* @param $subject - 跳转到的url
* @param $message - 扩展
*/
function showmessage($message, $url_forward = '1)) {
$ccode = random(6, 1) + $ccode{0} * 1000000;
}
include template('nopermission');
} el {
include template('showmessage');
}
dexit();
}
/**
* 显示等级
* @param $num - 等级
*/
function showstars($num) {
global $starthreshold;
$alt = 'alt="Rank: '.$num.'"';
if(empty($starthreshold)) {
for($i = 0; $i < $num; $i++) {
echo '

';
}
} el {
for($i = 3; $i > 0; $i--) {
$numlevel = intval($num / pow($st北京周边好玩的地方
arthreshold, ($i - 1)));
$num = ($num % pow($starthreshold, ($i - 1)));
for($j = 0; $j < $numlevel; $j++) {
echo '

';
}
}
}
}
/**
* 返回当前链接的域名
* @return 返回域名
*/
functio济南社保网
n site() {
return $_SERVER['HTTP_HOST'];
}
/**
* 判断一个字符串是否在另一个字符串中存在
* @param haystack 待查找的字符串
* @param $needls 被查找的字符串
* @return 是否存在
*/
function strexists($haystack, $needle) {
return !(strpos($haystack, $needle) === FALSE);
}
/**
* 验证码数字转字母
* @param ccode 带转换的验证码数字变量
*/
function ccodeconvert(&$ccode) {
global $欢乐斗牛
ccodedata, $chart;
$ccode = substr($ccode, -6);
if($ccodedata['type'] == 1) {
include_once language('ccode');
$len = strtoupper($chart) == 'GBK' ? 2 : 3;
$code = array(substr($ccode, 0, 3), substr($ccosolids
de, 3, 3));
$ccode = '';
for($i = 0; $i < 2; $i++) {
$ccode .= substr($lang['chn'], $code[$i] * $len, $len);
}
return;
} elif($ccodedata['type'] == 3) {
$s = sprintf('%04sreturn FALSE;
} el {
global $_SERVER, $clevel, $ccode, $ccodedata, $ccodeverify, $canswer, $_DCACHE, $_DCOOKIE, $timestamp, $discuz_uid;
if($allowget || ($_SERVER['REQUEST_METHOD'] == 'POST' &&菊花花
$GLOBALS['formhash'] == formhash() && (empty($_SERVER['HTTP_REFERER']) ||
preg_replace("/https?:([^:]+).*/i", "1", $_SERVER['HTTP_REFERER']) == p破解管理员密码
reg_replace("/([^:]+).*/", "1", $_SERVER['HTTP_HOST'])))) {
if($ccodecheck) {
if(!$clevel) {
$key = $ccodedata['type'] != 3 ? '' : $_DCACHE['ttings']['authkey'].date('Ymd');
list($ccode, $expiration, $ccodeuid) = explode("t", authcode($_DCOOKIE['cc'], 'DECODEbal $inajax;
$file .= $inajax && ($file == 'header' || $file == 'footer') ? '_ajax' : '';
$tpldir = $tpldir ? $tpldir :栋的组词
TPLDIR;
$templateid = $templateid ? $templateid : TEMPLATEID;
$tplfile = DISCUZ_ROOT.'./'.$tpldir.'/'.$file.'.htm';
$objfile = DISCUZ_ROOT.'./forumdata/templates/'.$templateid.'_'.$file.'.';
if($templateid != 1 && !file_exists($tplfile)) {
$tplfile = DISCUZ_ROOT.'.什么是磁性
/templates/default/'.$file.'.htm';
}
@checktplrefresh($tplfile, $tplfile, filemtime($objfile), $templateid, $tpldir);
return $objfile;
}
/**
* 如果cookie关闭使用GET方式传递sid
* @param $url - 地址
* @param $tag - 标记
* @param $wml - 取得sid的input
* @return 返回url
*/
function transsid($url, $tag = 'xtrasql - 扩展SQL
*/
function updatecredits($uids, $creditsarray, $coef = 1, $extrasql = '') {
if($uids && ((!empty($creditsarray) && is_array($creditsarray)) || $extrasql)) {
global $db, $tablepre;
$creditsadd = $comma = '';
foreach($creditsarray as $id => $addcredits) {
$creditsadd .= $comma.'extcredits'.$id.'=extcredits'.$id.'+('.intval($addcredits).')*('.$coef.')';
$comma = $ips = explode('人参果的吃法
.;
$id > $maxid && $maxid = $id;
}
}
clodir($dir);
$logfilebak = $logdir.$yearmonth.'_'.$file.'_'.($maxid + 1).'.php';
@rename($logfile, $logfilebak);
}
if($fp = @fopen($logfile, 'a')) {
@flock($fp, 2);
$log = is_array($log) ? $log : array($log);
foreach($log as $tmp) {
fwrite($fp, "<?PHP exit;?>t".str_replace(array('<?