Discuz_7.0.0
是一款社区程序源码!!
国内80 的站长使用此程序
源代码在线查看: birthdays_daily.inc.php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: birthdays_daily.inc.php 16688 2008-11-14 06:41:07Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if($maxbdays) {
require_once DISCUZ_ROOT.'./include/cache.func.php';
updatecache('birthdays');
updatecache('birthdays_index');
}
if($bdaystatus) {
$today = gmdate('m-d', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600);
$query = $db->query("SELECT uid, username, email, bday FROM {$tablepre}members WHERE RIGHT(bday, 5)='$today' ORDER BY bday");
global $member;
while($member = $db->fetch_array($query)) {
sendmail("$member[username] ", 'birthday_subject', 'birthday_message');
}
}
?>