bbsfoot.php

来自「linux/unix环境下的建站系统」· PHP 代码 · 共 57 行

PHP
57
字号
<?php    $setboard=0;    require("www2-funcs.php");	login_init();	page_header("状态", FALSE);	$unread = false;		if (strcmp($currentuser["userid"], "guest")) {		$tn = bbs_mail_get_num($currentuser["userid"]);		if ($tn) {			$unread = $tn["newmail"];			$total = $tn["total"];		}	}?><script type="text/javascript"><!--	addBootFn(footerStart);	var stayTime = <?php echo (time()-$currentuinfo["logintime"]); ?>;	var serverTime = <?php echo (time() + intval(date("Z"))); ?>;	var hasMail = <?php echo $unread ? "1" : "0"; ?>;<?php	if (isset($currentuser["userid"]) && $currentuser["userid"] != "guest" && bbs_checkwebmsg()) {?>alertmsg();<?php	}?>	function newmailnotice() {		var thespan = document.getElementById('mailnotice');		if(thespan.style.display == '')			thespan.style.display = 'none';		else			thespan.style.display = '';		if(hasMail)			setTimeout('newmailnotice();', 800);		else			thespan.style.display = 'none';	}//--></script><body><div class="footer">时间[<span id="divTime"></span>] 在线[<?php echo bbs_getonlinenumber(); ?>]帐号[<a href="bbsqry.php?userid=<?php echo $currentuser["userid"]; ?>" target="f3"><?php echo $currentuser["userid"]; ?></a>]<?php	if (isset($total)) {echo "信箱[<a href=\"bbsmailbox.php?path=.DIR&title=收件箱\" target=\"f3\">";		if ($unread) {			echo $total . "封(有新信)</a>] <bgsound src='sound/newmail.mp3'>";		} else {			echo $total . "封</a>] ";		}	}?>停留[<span id="divStay"></span>]<span id="mailnotice" style="display:none">您有信件</span></div></body></html>

⌨️ 快捷键说明

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