necoun 发表于 2012-10-4 10:38
支持,有些人是不仔细阅读说明,一有问题就到处问。来说说我这里问题吧,在未签到时网站头部会出现一个签到 ...
sign.class.php- function global_usernav_extra2() {
- global $_G,$show_message,$_GET;
- $var = $_G['cache']['plugin']['dsu_paulsign'];
- $tdtime = gmmktime(0,0,0,dgmdate($_G['timestamp'], 'n',$var['tos']),dgmdate($_G['timestamp'], 'j',$var['tos']),dgmdate($_G['timestamp'], 'Y',$var['tos'])) - $var['tos']*3600;
- $allowmem = memory('check');
- if($var['ajax_sign'] && $var['ifopen'] && !$show_message && !defined('IN_dsu_paulsign') && !defined('IN_dsu_paulsc') && !$_GET['infloat'] && !$_G['inajax'] && $_G['uid'] && !in_array($_G['uid'],explode(",",$var['ban'])) && in_array($_G['groupid'], unserialize($var['groups']))) {
- if($allowmem && $var['mcacheopen']) $signtime = memory('get', 'dsu_pualsign_'.$_G['uid']);
- if(!$signtime){
- $qiandaodb = DB::fetch_first("SELECT time FROM ".DB::table('dsu_paulsign')." WHERE uid='$_G[uid]'");
- $htime = dgmdate($_G['timestamp'], 'H',$var['tos']);
- if($qiandaodb){
- if($allowmem && $var['mcacheopen']) memory('set', 'dsu_pualsign_'.$_G['uid'], $qiandaodb['time'], 86400);
- if($qiandaodb['time'] < $tdtime){
- if($var['timeopen']) {
- if(!($htime < $var['stime']) && !($htime > $var['ftime'])) return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }else{
- return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }
- }
- }else{
- $ttps = DB::fetch_first("SELECT posts FROM ".DB::table('common_member_count')." WHERE uid='$_G[uid]'");
- if($var['mintdpost'] <= $ttps['posts']){
- if($var['timeopen']) {
- if(!($htime < $var['stime']) && !($htime > $var['ftime'])) return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }else{
- return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }
- }
- }
- }else{
- if($signtime < $tdtime){
- if($var['timeopen']) {
- if(!($htime < $var['stime']) && !($htime > $var['ftime'])) return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }else{
- return '<span class="pipe">|</span><a href="javascript:;" onclick="showWindow(\'dsu_paulsign\', \'plugin.php?id=dsu_paulsign:sign&'.FORMHASH.'\')"><font color="red">'.lang('plugin/dsu_paulsign','encore_01').'</font></a> ';
- }
- }
- }
- }
- return '';
- }
复制代码 全部删除 |