夜间模式
请选择 进入手机版 | 继续访问电脑版

BoonKiong.com2024™

      走好人生路、唱好人生这首歌。
人气 188

签到插件 Ver1.2

文強已获得官方认证 2023-6-25 12:07



1.jpg


2.jpg


1、打开faq模板,在最上面加上:

[CSS] 纯文本查看 复制代码
<!--骨头签到系统begin-->
<!--{if $_GET['gt'] == sign}-->
{template gt_sign_work}
<!--{/if}-->
<!--骨头签到系统end-->


2、打开footer模板,在最上面的</div>加上:

[CSS] 纯文本查看 复制代码
{subtemplate gt_sign}


3、打开header模板,找到:

[CSS] 纯文本查看 复制代码
<a href="pm.php" id="pm_ntc" target="_blank">{lang pm_center}</a>


在下面加上:

[CSS] 纯文本查看 复制代码
                                <!--骨头签到系统begin-->
                                {eval $gtsignopen=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='open'"));}
                                {eval $q3=$db->fetch_array($db->query("SELECT * FROM cdb_members WHERE uid=$discuz_uid"));}
                                {eval $q4=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='cant'"));}
                                {eval $gtsigncant=strpos($q3[groupid], $q4[v1]);}
                                {eval $today=mktime(0,0,0,date('m'),date('d'),date('Y'));}
                                <!--{if $discuz_uid > 0 && $gtsignopen[v1] ==1 && $gtsigncant==false}-->
                                {eval $sign_count=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=$discuz_uid"));}
                                                <!--{if $sign_count['lastsign'] > $today}-->
                                                                <a href="javascript:;" id="gtsign" target="_blank" onclick="gtsigns();">每日签到</a>
                                                <!--{/if}-->
                                <!--{/if}-->
                                <!--骨头签到系统end-->


4、打开css_common模板,在最下面加上:

[CSS] 纯文本查看 复制代码
/*----------------------骨头签到插件---------------------*/
.sd{float:right;width:220px;overflow:hidden}.bm{margin-bottom:10px;border:1px solid #cdcdcd;background:#FFF}.bm_h{padding:0 10px;height:31px;border-top:1px solid #FFF;border-bottom:1px solid #c2d5e3;background:#f2f2f2;line-height:31px;white-space:nowrap;overflow:hidden}.bm_c{padding:10px}.ct2 .mn{float:left;width:675px;margin-bottom:1em}.y.xi2.xg1{float:right;color:#999!important}.xl li{margin:2px 0}.tb{height:31px;margin-bottom:10px;margin-top:10px;padding-left:5px;line-height:30px;border-bottom:1px solid #d9d9d9}.tb li{float:left;margin:0 3px -1px 0}.tb a{display:block;padding:0 10px;border:1px solid #d9d9d9;background:#f7f7f7}.tb .a a{border-bottom-color:#FFF;background:#FFF;font-weight:700}.p_pop{padding:4px;border:1px solid;min-width:60px;border-color:#DDD;background:#fefefe;box-shadow:1px 2px 2px rgba(0,0,0,0.3)}.qdsmile{padding:0 15px 10px 15px}.qdsmile li{list-style:none;padding:5px .4em;background:#f7faff;border:2px dashed #d1d8d8}.qdsmile li img{margin-bottom:5px}.layer_mood{padding:10px 0 0;width:322px;overflow:hidden;position:relative}.layer_mood .mood_title{background:url("skin.png") no-repeat;width:162px;height:15px;margin:0 15px 10px}.layer_mood .mood_list{padding:0 0 5px 15px}.layer_mood .mood_list li{float:left;text-align:center;cursor:pointer;height:60px}.layer_mood .mood_list li div{padding:4px 5px 2px;width:48px}.layer_mood .mood_list li.current div{border:1px solid #99d0ff;background:#eaf6ff;padding:3px 4px 1px}.layer_mood .mood_list li.current div.mood1{border-color:#ffcbac;background:#fff2e8}.layer_mood .mood_list li.current div.mood2{border-color:#99d0ff;background:#eaf6ff}.layer_mood .mood_list li.current div.mood3{border-color:#ffd27f;background:#fff9d3}.layer_mood .mood_list li.current div.mood4{border-color:#a8c5da;background:#f1f5f8}.layer_mood .mood_list li.current div.mood5{border-color:#d2c0b7;background:#f4f2ea}.layer_mood .mood_list li img{display:block;margin:0 0 3px;margin-left:8px;*margin-left:3px}.layer_mood .mood_send{padding:5px 15px}.layer_mood .mood_send textarea{width:280px;padding:5px;border:1px solid #c6c6c6;font-family:"Tahoma","????";line-height:18px;height:55px}.layer_mood .succeed_tips{background:url("skin.png") no-repeat 0 -35px;width:293px;height:39px;line-height:39px;text-indent:200px;margin:0 0 0 15px}.layer_mood .succeed_tips a{display:block;width:292px;height:38px;position:relative;_position:static}.layer_mood .succeed_tips span{font-size:16px}.layer_mood .succeed_tip,.layer_mood .succeed_ad{margin:6px 0 0 15px;line-height:18px}.layer_mood .succeed_tab{height:29px;margin:10px 0 -3px;padding:0 0 0 15px;overflow:hidden;position:relative;z-index:10}.layer_mood .succeed_tab li,.layer_mood .succeed_tab li a{float:left;height:29px;line-height:29px;padding:0 4px 0 0}.layer_mood .succeed_tab li a{padding:0 7px 0 11px}.layer_mood .succeed_tab li.current,.layer_mood .succeed_tab li.current a{background:url("tab.png") no-repeat right -29px}.layer_mood .succeed_tab li.current a{background-position:0 0;color:#595959;cursor:default}.layer_mood .succeed_tab li.current a:hover{text-decoration:none}.layer_mood .addition{background:#f2f3ea url("add_repeat.gif") repeat-x}.layer_mood .mood_calendar{padding:10px 15px 15px 15px}.layer_mood .mood_calendar .calendar{border-color:#bcbcbc}.layer_mood .mood_calendar .calendar .week{border-color:#bcbcbc}.layer_mood .mood_calendar .calendar .day li{background:#fff;color:#bababa;border-color:#bcbcbc}.layer_mood .mood_calendar .moon_select{border-color:#bcbcbc;background:#e2e2e2}.mood_calendar .moon_select{border:1px solid #bcbcbc;border-bottom:0;width:100px;height:16px;padding:3px 0 0;text-align:center;background:#e2e2e2;color:#444}.mood_calendar .moon_select .arrow_l,.mood_calendar .moon_select .arrow_r{height:9px;width:5px;background:url("arrow.gif") no-repeat;cursor:pointer;*vertical-align:middle;margin:2px 3px 0 3px;float:left}.mood_calendar .moon_select .arrow_r{background-position:-5px 0}.mood_calendar .moon_select span{line-height:12px;padding:0 3px;float:left}.mood_calendar .calendar{width:294px;border-width:0 1px 1px 0;border-style:solid;box-shadow:0 1px 0 0 rgba(0,0,0,0.2)}.mood_calendar .calendar ul li{float:left;width:41px}.mood_calendar .calendar .week{width:294px;height:19px;overflow:hidden;border-width:1px 0 0 1px;border-style:solid}.mood_calendar .calendar .week li{position:relative;text-align:center;height:19px;width:42px;border:0;line-height:19px;box-shadow:0 1px 0 0 rgba(0,0,0,0.2)}.mood_calendar .calendar .day li{height:38px;vertical-align:top;border-width:1px 0 0 1px;border-style:solid}.mood_calendar .calendar .day li span{display:block;text-align:left;font-size:10px;padding:1px 0 0 3px;font-style:italic}.mood_calendar .calendar .day li a.icoface{display:block}.mood_calendar .calendar .day li img{margin:-9px 0 0 10px}.mood_calendar .W_loading{padding:120px 0;text-align:center}.S_line1 img{width:22px;height:22px}.sign_div{margin-bottom:9px;height:42px;background:url(http://csdiy.66rt.com/attachments/15020117441d3f7842f1c84c83.png) no-repeat;position:relative}.sign_div a{width:80px;height:42px;display:block;margin:0 auto;text-align:center;line-height:42px;font-size:24px;font-family:Microsoft Yahei}.sign_div a:hover{text-decoration:none}.date-week{color:#fff;width:49px;height:36px;position:absolute;top:3px;left:3px;text-align:center;line-height:1}.date-week .date{font-family:tahoma;font-size:10px;-webkit-text-size-adjust:none;margin-top:4px;letter-spacing:1px}.date-week .week{font-family:Microsoft Yahei;font-size:14px;margin-top:2px}.sign-num{position:absolute;width:32px;height:25px;line-height:25px;text-align:center;top:15px;right:2px;font-size:14px;font-family:tahoma;color:#999}


5、打开viewthread_node模板,找到:

[CSS] 纯文本查看 复制代码
<p><em><a href="faq.php?action=grouppermission&searchgroupid={$post[groupid]}" target="_blank">{$post[authortitle]}</a></em></p>


在下面加上:

[CSS] 纯文本查看 复制代码
                        <!--骨头签到系统begin-->
                        {eval $today=mktime(0,0,0,date('m'),date('d'),date('Y'));}
                        {eval $q2 = $db->fetch_array($db->query("SELECT * FROM gt_sign WHERE dateline>'$today' and uid=".$post[authorid]));}
                        {eval $q3=date("Y-m-d h:i:sa", $q2[dateline]);}
                        {eval $q4=dgmdate("$dateformat $timeformat", $q2[dateline] + $timeoffset * 3600);}
                        <!--{if $q2}-->
                                        <div class="qdsmile">
                                        <li><center>TA的每日心情</center>
                                        {eval $q5 = $db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid='".$q2[moodid]."'"));}
                                        <table><tbody><tr><th><img src="$q5[src]"><th>
                                        <font size="5" title="$q2[content]">$q5[title]</font>
                                        <br><span title="$q3">$q4</span></tr></tbody></table></li>
                                        </div>
                        <!--{/if}-->
                        <!--骨头签到系统end-->


6)然后在其他头部信息中最下面加入:

[CSS] 纯文本查看 复制代码
<script src="templates/你的模板名称/gt_sign_js.htm"></script>


7、新建gt_sign模板,内容:

[CSS] 纯文本查看 复制代码
<!--{if $discuz_uid > 0 && $gtsignopen[v1] ==1 && $gtsigncant==false}-->
{eval $today=mktime(0,0,0,date('m'),date('d'),date('Y'));}
<div id="gtsignago"></div><div id="gtsignzhuan"></div>
<!--{if $sign_count['lastsign'] < $today}-->
                <script type="text/javascript">       
                                function check(obj, id) {
                                                var lis = obj.parentNode.childNodes;
                                                for(var i = 0; i < lis.length; i ++) {
                                                lis[i].className = '';
                                                }
                                obj.className = 'current';
                                $('moodid').value = id;
                                $('content').innerText = $('mood_' + id).title;
                                }
                </script>
                {eval $q2=$db->query("SELECT * FROM gt_sign_mood");}
                {eval $moods=Array();}
                {eval $i=0;}
                {eval while ($asdfghf=$db->fetch_array($q2)) $moods[$i++] = $asdfghf ; }
                <div id="gtsignw" class="dialog" style="position:fixed;top:25%;left:35%;">
                <div class="dialog-title"></div>
                <table class="fwin_1" cellspacing="0" cellpadding="0">
                <tbody>
                <tr>
                <td class="t_l"></td>
                <td class="t_c"></td>
                <td class="t_r"></td>
                </tr>
                <tr>
                <td class="m_l">&nbsp;&nbsp;</td>
                <td class="m_c" id="fwin_content_register" fwin="register">
                <h3 class="float_ctrl" style="margin: 5px;">
                <em id="returnmessage3">每日签到</em>
                <span><b href="javascript:;" class="float_close" id="gfqqqgb" onclick="display('gtsignw');" title="关闭">关闭</b></span>
                </h3>
                        <input type="hidden" name="formhash" value="{FORMHASH}" />
               
                        <input type="hidden" name="signsubmit" value="yes" />
               
                        <input type="hidden" name="handlekey" value="sign" />
               
                        <input type="hidden" name="moodid" id="moodid" />
               
                        <div class="layer_mood">
               
                                <div class="mood_title"></div>
               
                                <ul class="mood_list">
               
                                        <!--{loop $moods $value}-->
               
                                        <li onmouseover="this.className='current'" onmouseout="this.className=$('moodid').value==$value[moodid]?this.className:''" onclick="check(this, $value[moodid])"><div class="mood2"><img width="32" height="32" id="mood_$value[moodid]" src="$value[src]" title="$value[content]" alt="$value[title]">$value[title]</div></li>
               
                                        <!--{/loop}-->
               
                                </ul>
               
                                <div class="mood_send">
               
                                        <textarea name="content" id="content"></textarea>
               
                                </div>
               
                        </div>
               
                        <p class="o pns">
               
                                <button onclick="gtsign(document.getElementById('moodid').value, document.getElementById('content').value);"><strong>签到</strong></button>
               
                        </p>
                </td>
                <td class="m_r"></td>
                </tr>
                <tr>
                <td class="b_l"></td>
                <td class="b_c"></td>
                <td class="b_r"></td>
                </tr>
                </tbody>
                </table>
                </div>
<!--{/if}-->
<!--{/if}-->


8、新建gt_sign_js模板,内容:

[CSS] 纯文本查看 复制代码
function gtsign(moodid,content){
                if(!moodid){
                                showDialog('你还没有选择心情');
                }else if(!content){
                                showDialog('你还没有写想说内容');
                }else{
                                display('gtsignw');
                                $jq.ajax({
                                                url:"faq.php?gt=sign&act=sign&moodid="+moodid+"&content="+content,
                                                error: function(request) {
                                                                alert("Connection error");
                                                },
                                                success: function(data) {
                                                                data=data.split("|");
                                                                showPrompt(null, null, data[0], 3000);
                                                                $jq("#gtsignzhuan").html(data[1]);
                                                }
                                });
                }
}
var gtsignt = new Date();
var gtsignyear = gtsignt.getFullYear();
var gtsignmonth = gtsignt.getMonth();
function gtsignwago(type){       
                if(type == 'up'){
                                if(gtsignmonth == 0){
                                                gtsignmonth = 11;
                                                gtsignyear--;
                                }else{
                                                gtsignmonth--
                                }
                }else if(type == 'down'){
                                if(gtsignmonth == 11){
                                                gtsignmonth = 0;
                                                gtsignyear++;
                                }else{
                                                gtsignmonth++
                                }
                }
                $jq.ajax({
                                url:"faq.php?gt=sign&act=ago&year="+gtsignyear+"&month="+(gtsignmonth+1),
                                error: function(request) {
                                                alert("Connection error");
                                },
                                success: function(data) {
                                                $jq("#gtsignago").html(data);
                                }
                });
}
function gtsigns(){
                var gtsigntf = new Date();
                var gtsignyearf = gtsigntf.getFullYear();
                var gtsignmonthf = gtsigntf.getMonth();
                $jq.ajax({
                                url:"faq.php?gt=sign&act=ago&year="+gtsignyearf+"&month="+(gtsignmonthf+1),
                                error: function(request) {
                                                alert("Connection error");
                                },
                                success: function(data) {
                                                $jq("#gtsignago").html(data);
                                }
                });
}


楼下继续。。。






上一篇:附件下载超美化
  • TA的每日心情

    2023-7-25 17:56
  • 签到天数: 24 天

    连续签到: 23 天

    [LV.4]偶尔看看III

    文強已获得官方认证 2023-6-25 12:17
    9、新建gt_sign_work模板,内容:

    [CSS] 纯文本查看 复制代码
    {eval $gtsignopen=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='open'"));}
    {eval $q3=$db->fetch_array($db->query("SELECT * FROM cdb_members WHERE uid=$discuz_uid"));}
    {eval $q4=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='cant'"));}
    {eval $gtsigncant=strpos($q3[groupid], $q4[v1]);}
    {eval $today=mktime(0,0,0,date('m'),date('d'),date('Y'));}
    <!--{if $gtsignopen[v1] ==1 && $_GET[act] == "" && $gtsigncant == false}-->
                    {template header}
                    <div id="nav"><a href="index.php">$bbname</a> » 每日签到</div>
                    <div id="wrap" class="wrap s_clear"><div class="main"><div class="content"><div class="ct2 wp cl" id="ct"><div class="mn">
                    <ul class="p_pop h_pop" id="tspl_menu" style="display:none">
                    <li><a href="faq.php?gt=sign&pai=zong" class="hidefocus">按总天数排列</a></li>
                    <li><a href="faq.php?gt=sign&pai=month">按月天数排列</a></li>
                    </ul>
                    <ul class="tb cl">
                    <li{if $_GET['pai'] == ''} class="a"{/if}><a href="faq.php?gt=sign">按上次签到时间排列</a></li>
                    <li id="tspl" onmouseover="showMenu(this.id)"{if $_GET['pai'] != ''} class="a"{/if}><a href="faq.php?gt=sign&pai=zong">按天数排列</a></li></ul>
                    <!--{if $_GET['pai'] == ''}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE dateline>$today"));}
                                    {eval $q3=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='pagemax'"));}
                                    {eval $pagemax=ceil($q2[num]/$q3[v1]);}
                                    <!--{if $_GET[page] > 1 && $_GET[page] <= $pagemax}-->
                                                    {eval $q2=$db->query("SELECT * FROM gt_sign WHERE dateline>$today ORDER BY dateline DESC LIMIT ".(($_GET[page]*$q3[v1])-$q3[v1]).",".$q3[v1]);}
                                    <!--{else}-->
                                                    {eval $q2=$db->query("SELECT * FROM gt_sign WHERE dateline>$today ORDER BY dateline DESC LIMIT 0,".$q3[v1]);}
                                    <!--{/if}-->
                                    {eval $q3=Array();}
                                    {eval $i=0;}
                                    {eval while ($asdfghf=$db->fetch_array($q2)) $q3[$i++] = $asdfghf ; }
                                    <!--{if $q3}-->
                                                    <div class="datalist">
                                                    <table cellspacing="0" cellpadding="0" summary="phb" class="datatable">
                                                    <tbody><tr class="colplural">
                                                    {eval $bonus=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonus'"));}
                                                    <td width="1%"></td>
                                                    <td width="25%">用户名</td>
                                                    <td width="10%">总天数</td>
                                                    <td width="10%">月天数</td>
                                                    <td width="25%">签到时间</td>
                                                    <td width="5%"></td>
                                                    <td width="15%">奖励[{$extcredits[$bonus[v1]][title]}]</td>
                                                    <td width="8%"></td>
                                                    </tr>
                                                    <!--{loop $q3 $thing}--><tr><td></td><td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=".$thing[uid]));}
                                                    <a href="space-uid-$thing[uid].html" target="_blank">$thing[username]</a></td>
                                                    <td>$q2[total]</td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE uid='$discuz_uid' and dateline > ".strtotime(date("Ym")."01")));}
                                                    <td>$q2[num]</td>
                                                    <td>{echo date("Y-m-d H:i",$thing[dateline]);}</td>
                                                    <td></td>
                                                    <td>$thing[bonus].$extcredits[$bonus[v1]][unit]</td><td>
                                                    <font color="green"></font></td>
                                                    </tr><tr class="colplural">
                                                    <td align="left" colspan="9">
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid=".$thing[moodid]));}
                                                    我今天最想说: <img src="$q2[src]"> $thing[content] </td>
                                                    </tr><!--{/loop}--></tbody></table></div>
                                                    <!--{if $pagemax > 1}-->
                                                                    <!--{if $_GET[page] > 1}-->
                                                                                    {eval $q2=$_GET[page]-1;}
                                                                                    <a href="faq.php?gt=sign&page=$q2">上一页</a>
                                                                    <!--{/if}-->
                                                                    <!--{if $_GET[page] >= 0 && $_GET[page] < $pagemax}-->
                                                                                    <!--{if $_GET[page] == 0}-->
                                                                                                    {eval $q2=$_GET[page]=2;}
                                                                                    <!--{else}-->
                                                                                                    {eval $q2=$_GET[page]+1;}
                                                                                    <!--{/if}-->
                                                                                    <a  href="faq.php?gt=sign&page=$q2">下一页</a>
                                                                    <!--{/if}-->
                                                    <!--{/if}-->
                                    <!--{else}-->
                                                    今天还没有人签到的!
                                    <!--{/if}-->
                    <!--{elseif $_GET['pai'] == zong}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT COUNT( DISTINCT uid ) AS num FROM gt_sign"));}
                                    {eval $q3=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='pagemax'"));}
                                    {eval $pagemax=ceil($q2[num]/$q3[v1]);}
                                    <!--{if $_GET[page] > 1 && $_GET[page] <= $pagemax}-->
                                                    {eval $q2=$db->query("SELECT uid, username, dateline, moodid, content, bonus, count( * ) AS count FROM gt_sign GROUP BY uid ORDER BY count DESC LIMIT ".(($_GET[page]*$q3[v1])-$q3[v1]).",".$q3[v1]);}
                                    <!--{else}-->
                                                    {eval $q2=$db->query("SELECT uid, username, dateline, moodid, content, bonus, count( * ) AS count FROM gt_sign GROUP BY uid ORDER BY count DESC LIMIT 0,".$q3[v1]);}
                                    <!--{/if}-->
                                    {eval $q3=Array();}
                                    {eval $i=0;}
                                    {eval while ($asdfghf=$db->fetch_array($q2)) $q3[$i++] = $asdfghf ; }
                                    <!--{if $q3}-->
                                                    <div class="datalist">
                                                    <table cellspacing="0" cellpadding="0" summary="phb" class="datatable">
                                                    <tbody><tr class="colplural">
                                                    {eval $bonus=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonus'"));}
                                                    <td width="1%"></td>
                                                    <td width="25%">用户名</td>
                                                    <td width="10%">总天数</td>
                                                    <td width="10%">月天数</td>
                                                    <td width="25%">最后一次签到时间</td>
                                                    <td width="5%"></td>
                                                    <td width="15%">奖励[{$extcredits[$bonus[v1]][title]}]</td>
                                                    <td width="8%"></td>
                                                    </tr>
                                                    <!--{loop $q3 $thing}--><tr><td></td><td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=".$thing[uid]));}
                                                    <a href="space-uid-$thing[uid].html" target="_blank">$thing[username]</a></td>
                                                    <td>$q2[total]</td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE uid='$discuz_uid' and dateline > ".strtotime(date("Ym")."01")));}
                                                    <td>$q2[num]</td>
                                                    <td>{echo date("Y-m-d H:i",$thing[dateline]);}</td>
                                                    <td></td>
                                                    <td>$thing[bonus].$extcredits[$bonus[v1]][unit]</td><td>
                                                    <font color="green"></font></td>
                                                    </tr><tr class="colplural">
                                                    <td align="left" colspan="9">
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid=".$thing[moodid]));}
                                                    我今天最想说: <img src="$q2[src]"> $thing[content] </td>
                                                    </tr><!--{/loop}--></tbody></table></div>
                                                    <!--{if $pagemax > 1}-->
                                                                    <!--{if $_GET[page] > 1}-->
                                                                                    {eval $q2=$_GET[page]-1;}
                                                                                    <a href="faq.php?gt=sign&pai=zong&page=$q2">上一页</a>
                                                                    <!--{/if}-->
                                                                    <!--{if $_GET[page] >= 0 && $_GET[page] < $pagemax}-->
                                                                                    <!--{if $_GET[page] == 0}-->
                                                                                                    {eval $q2=$_GET[page]=2;}
                                                                                    <!--{else}-->
                                                                                                    {eval $q2=$_GET[page]+1;}
                                                                                    <!--{/if}-->
                                                                                    <a  href="faq.php?gt=sign&pai=zong&page=$q2">下一页</a>
                                                                    <!--{/if}-->
                                                    <!--{/if}-->
                                    <!--{else}-->
                                                    还没有人签过到的!
                                    <!--{/if}-->
                    <!--{elseif $_GET['pai'] == month}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT count( DISTINCT uid ) AS num FROM gt_sign WHERE dateline > ".strtotime(date("Ym")."01")));}
                                    {eval $q3=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='pagemax'"));}
                                    {eval $pagemax=ceil($q2[num]/$q3[v1]);}
                                    <!--{if $_GET[page] > 1 && $_GET[page] <= $pagemax}-->
                                                    {eval $q2=$db->query("SELECT uid, username, dateline, moodid, content, bonus, count( * ) AS count FROM gt_sign WHERE dateline > ".strtotime(date("Ym")."01")." GROUP BY uid ORDER BY count DESC LIMIT ".(($_GET[page]*$q3[v1])-$q3[v1]).",".$q3[v1]);}
                                    <!--{else}-->
                                                    {eval $q2=$db->query("SELECT uid, username, dateline, moodid, content, bonus, count( * ) AS count FROM gt_sign WHERE dateline > ".strtotime(date("Ym")."01")." GROUP BY uid ORDER BY count DESC LIMIT 0,".$q3[v1]);}
                                    <!--{/if}-->
                                    {eval $q3=Array();}
                                    {eval $i=0;}
                                    {eval while ($asdfghf=$db->fetch_array($q2)) $q3[$i++] = $asdfghf ; }
                                    <!--{if $q3}-->
                                                    <div class="datalist">
                                                    <table cellspacing="0" cellpadding="0" summary="phb" class="datatable">
                                                    <tbody><tr class="colplural">
                                                    {eval $bonus=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonus'"));}
                                                    <td width="1%"></td>
                                                    <td width="25%">用户名</td>
                                                    <td width="10%">总天数</td>
                                                    <td width="10%">月天数</td>
                                                    <td width="25%">最后一次签到时间</td>
                                                    <td width="5%"></td>
                                                    <td width="15%">奖励[{$extcredits[$bonus[v1]][title]}]</td>
                                                    <td width="8%"></td>
                                                    </tr>
                                                    <!--{loop $q3 $thing}--><tr><td></td><td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=".$thing[uid]));}
                                                    <a href="space-uid-$thing[uid].html" target="_blank">$thing[username]</a></td>
                                                    <td>$q2[total]</td>
                                                    {eval $q2=$db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE uid='$discuz_uid' and dateline > ".strtotime(date("Ym")."01")));}
                                                    <td>$q2[num]</td>
                                                    <td>{echo date("Y-m-d H:i",$thing[dateline]);}</td>
                                                    <td></td>
                                                    <td>$thing[bonus].$extcredits[$bonus[v1]][unit]</td><td>
                                                    <font color="green"></font></td>
                                                    </tr><tr class="colplural">
                                                    <td align="left" colspan="9">
                                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid=".$thing[moodid]));}
                                                    我今天最想说: <img src="$q2[src]"> $thing[content] </td>
                                                    </tr><!--{/loop}--></tbody></table></div>
                                                    <!--{if $pagemax > 1}-->
                                                                    <!--{if $_GET[page] > 1}-->
                                                                                    {eval $q2=$_GET[page]-1;}
                                                                                    <a href="faq.php?gt=sign&pai=month&page=$q2">上一页</a>
                                                                    <!--{/if}-->
                                                                    <!--{if $_GET[page] >= 0 && $_GET[page] < $pagemax}-->
                                                                                    <!--{if $_GET[page] == 0}-->
                                                                                                    {eval $q2=$_GET[page]=2;}
                                                                                    <!--{else}-->
                                                                                                    {eval $q2=$_GET[page]+1;}
                                                                                    <!--{/if}-->
                                                                                    <a  href="faq.php?gt=sign&pai=month&page=$q2">下一页</a>
                                                                    <!--{/if}-->
                                                    <!--{/if}-->
                                    <!--{else}-->
                                                    还没有人签过到的!
                                    <!--{/if}-->
                    <!--{/if}-->
                    </div><div class="sd">
                    <!--{if $discuz_uid > 0}-->
                                    <div class="sign_div">
                                    <div class="date-week">
                                    <div class="date">{echo date("m.d",$timestamp);}</div>
                                    {eval $q2=date("w",$timestamp);}
                                    {eval $zhou=array("日","一","二","三","四","五","六");}
                                    <div class="week">周$zhou[$q2]</div>
                                    </div>
                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=$discuz_uid"));}
                                    <div title="您已经累计签到$q2[total]天" class="sign-num">$q2[total]</div>
                                    <!--{if $sign_count['lastsign'] < $today}-->
                                                    <a class="xg1">未签到</a>
                                    <!--{else}-->
                                                    <a href="javascript:;" onclick="gtsigns();" class="xg1">已签到</a>
                                    <!--{/if}-->
                                    </div>
                    <!--{/if}-->
                    <div class="bm">
                    <div class="bm_h cl bbs">
                    <label class="wx xs3">签到中心公告</label>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='show'"));}
                    </div><div><div class="bm_c">$q2[v1]</div></div></div>
                    <div class="bm">
                    <div class="bm_h cl bbs">
                    <label class="wx xs3">今日心情TOP5</label>
                    {eval $q2=$db->query("SELECT moodid, count( * ) AS count FROM gt_sign WHERE dateline>$today GROUP BY moodid ORDER BY count DESC LIMIT 5");}
                    {eval $q3=Array();}
                    {eval $i=0;}
                    {eval while ($asdfghf=$db->fetch_array($q2)) $q3[$i++] = $asdfghf ; }
                    </div><div><div class="bm_c"><ul class="xl">
                    <!--{loop $q3 $thing}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid='".$thing[moodid]."'"));}
                                    <li><span class="y xi2 xg1">$thing[count] 人</span>$q2[title]</li>
                    <!--{/loop}--></ul></div></div></div>
                    <div class="bm"><div class="bm_h cl bbs"><label class="wx xs3">签到统计</label>
                    </div><div><div class="bm_c"><ul class="xl">
                    {eval $q2=$db->fetch_array($db->query("SELECT count( * ) AS count FROM gt_sign WHERE dateline>$today"));}
                    <li><span class="y xi2 xg1">$q2[count] 人</span>今日签到</li>
                    {eval $q2=$db->fetch_array($db->query("SELECT count( * ) AS count FROM gt_sign WHERE dateline<$today and dateline>".($today-(3600 * 24))));}
                    <li><span class="y xi2 xg1">$q2[count] 人</span>昨日签到</li>
                    {eval $history = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='history'"));}
                    <li><span class="y xi2 xg1">$history[v1] 人</span>历史最高</li>
                    </ul></div></div></div>
                    <div class="bm"><div class="bm_h cl bbs"><label class="wx xs3">版权信息</label>
                    </div><div><div class="bm_c">骨头签到 For Sclub! Ver 1.00<br><a href="http://csdiy.66rt.com/">Copyright by 骨头</a>&nbsp;&nbsp;<!--{if $discuz_uid == 1}--><a href="faq.php?gt=sign&act=config">进入管理中心</a><!--{/if}--></div></div></div>
                    </div></div></div></div></div>
                    {template footer}
                    {eval die;}
    <!--{/if}-->
    <!--{if $_GET['act'] == config && $discuz_uid == 1}-->
                    {subtemplate header}
                    <div id="nav"><a href="index.php">$bbname</a> » 骨头签到管理中心</div>
                    <div id="wrap" class="wrap s_clear"><div class="main"><div class="content">
                    <form method="post">
                    <!--{if $_POST['gtsignok'] == true}-->
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['gtsignop']."' WHERE name='open'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['show']."' WHERE name='show'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['bonusop']."' WHERE name='bonusop'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['bonustype']."', v2='".$_POST['bonusmin']."', v3='".$_POST['bonusmax']."' WHERE name='bonus'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['top1type']."', v2='".$_POST['top1min']."', v3='".$_POST['top1max']."' WHERE name='top1'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['top2type']."', v2='".$_POST['top2min']."', v3='".$_POST['top2max']."' WHERE name='top2'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['top3type']."', v2='".$_POST['top3min']."', v3='".$_POST['top3max']."' WHERE name='top3'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['ftforumop']."' WHERE name='ftforumop'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['ftforumfid']."' WHERE name='ftforum'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['cant']."' WHERE name='cant'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['zhuan']."' WHERE name='zhuan'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['pagemax']."' WHERE name='pagemax'");}
                    {eval $db->query("UPDATE gt_sign_config SET v1='".$_POST['sub']."' WHERE name='sub'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood1src']."', title='".$_POST['mood1title']."', content='".$_POST['mood1c']."' WHERE moodid='1'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood2src']."', title='".$_POST['mood2title']."', content='".$_POST['mood2c']."' WHERE moodid='2'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood3src']."', title='".$_POST['mood3title']."', content='".$_POST['mood3c']."' WHERE moodid='3'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood4src']."', title='".$_POST['mood4title']."', content='".$_POST['mood4c']."' WHERE moodid='4'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood5src']."', title='".$_POST['mood5title']."', content='".$_POST['mood5c']."' WHERE moodid='5'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood6src']."', title='".$_POST['mood6title']."', content='".$_POST['mood6c']."' WHERE moodid='6'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood7src']."', title='".$_POST['mood7title']."', content='".$_POST['mood7c']."' WHERE moodid='7'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood8src']."', title='".$_POST['mood8title']."', content='".$_POST['mood8c']."' WHERE moodid='8'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood9src']."', title='".$_POST['mood9title']."', content='".$_POST['mood9c']."' WHERE moodid='9'");}
                    {eval $db->query("UPDATE gt_sign_mood SET src='".$_POST['mood10src']."', title='".$_POST['mood10title']."', content='".$_POST['mood10c']."' WHERE moodid='10'");}
                    <a style="font-size: 17px;border: 1px solid;background-color: #9BFF9C;">保存成功</a><br><!--{/if}-->
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='open'"));}
                    是否开启签到插件:<br><input type="radio" name="gtsignop" value="1"{if $q2[v1] == 1} checked{/if}/>开<input type="radio" name="gtsignop" value="0"{if $q2[v1] != 1} checked{/if}/>关<hr class="solidline">
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='show'"));}
                    签到中心公告:<br><textarea name="show">$q2[v1]</textarea>支持HTMl代码<hr class="solidline">
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonusop'"));}
                    签到奖励开关:<br><input type="radio" name="bonusop" value="1"{if $q2[v1] == 1} checked{/if}/>开<input type="radio" name="bonusop" value="0"{if $q2[v1] != 1} checked{/if}/>关<br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonus'"));}
                    默认奖励设置:<br>类型:<select name="bonustype">
                    <!--{loop $extcredits $id $thing}-->
                                    <option{if $q2[v1] == $id} selected{/if}>$id</option>
                    <!--{/loop}--></select>(
                    <!--{loop $extcredits $id $thing}-->
                                    $id:$thing[title]  
                    <!--{/loop}-->) 最小奖励:<input type="text" name="bonusmin" value="$q2[v2]"> 最大奖励:<input type="text" name="bonusmax" value="$q2[v3]"><br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top1'"));}
                    第一名奖励设置:<br>类型:<select name="top1type">
                    <option{if ($q2[v1] == 0)} selected{/if}>0</option>
                    <!--{loop $extcredits $id $thing}-->
                                    <option{if $q2[v1] == $id} selected{/if}>$id</option>
                    <!--{/loop}--></select>(0:关闭  
                    <!--{loop $extcredits $id $thing}-->
                                    $id:$thing[title]  
                    <!--{/loop}-->) 最小奖励:<input type="text" name="top1min" value="$q2[v2]"> 最大奖励:<input type="text" name="top1max" value="$q2[v3]"><br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top2'"));}
                    第二名奖励设置:<br>类型:<select name="top2type">
                    <option{if ($q2[v1] == 0)} selected{/if}>0</option>
                    <!--{loop $extcredits $id $thing}-->
                                    <option{if $q2[v1] == $id} selected{/if}>$id</option>
                    <!--{/loop}--></select>(0:关闭  
                    <!--{loop $extcredits $id $thing}-->
                                    $id:$thing[title]  
                    <!--{/loop}-->) 最小奖励:<input type="text" name="top2min" value="$q2[v2]"> 最大奖励:<input type="text" name="top2max" value="$q2[v3]"><br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top3'"));}
                    第三名奖励设置:<br>类型:<select name="top3type">
                    <option{if ($q2[v1] == 0)} selected{/if}>0</option>
                    <!--{loop $extcredits $id $thing}-->
                                    <option{if $q2[v1] == $id} selected{/if}>$id</option>
                    <!--{/loop}--></select>(0:关闭
                    <!--{loop $extcredits $id $thing}-->
                                    $id:$thing[title]  
                    <!--{/loop}-->) 最小奖励:<input type="text" name="top3min" value="$q2[v2]"> 最大奖励:<input type="text" name="top3max" value="$q2[v3]"><hr class="solidline">
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='ftforumop'"));}
                    签到发帖开关:<br><input type="radio" name="ftforumop" value="1"{if $q2[v1] == 1} checked{/if}/>开<input type="radio" name="ftforumop" value="0"{if $q2[v1] != 1} checked{/if}/>关<br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='ftforum'"));}
                    自动发帖版块:<br><input type="text" name="ftforumfid" value="$q2[v1]">填写版块fid(只能写一个)<hr class="solidline">
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='cant'"));}
                    禁用的用户组:<br><input type="text" name="cant" value="$q2[v1]">填写用户组id,用+隔开<br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='zhuan'"));}
                    签到后跳转地址:<br><input type="text" name="zhuan" value="$q2[v1]">不填便不会跳转<br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='pagemax'"));}
                    签到排行每页最大显示条数:<br><input type="text" name="pagemax" value="$q2[v1]"><br>
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='sub'"));}
                    签到排行每页最大显示条数:<br><input type="text" name="sub" value="$q2[v1]">Y是年m是月d是日<hr class="solidline">
    
                    {eval $q2=$db->query("SELECT * FROM gt_sign_mood");}
                    {eval $moods=Array();}
                    {eval $i=0;}
                    {eval while ($asdfghf=$db->fetch_array($q2)) $moods[$i++] = $asdfghf ; }
                    <!--{loop $moods $thing}-->
                                    表情$thing[moodid]<br>名称:<input type="text" name="mood$thing[moodid]title" value="$thing[title]">图片地址:<input type="text" name="mood$thing[moodid]src" value="$thing[src]">心情语:<input type="text" name="mood$thing[moodid]c" value="$thing[content]"><br>
                    <!--{/loop}-->
                    <button type="submit" name="gtsignok" value="true"><strong>提交</strong></button></form>
                    </div></div></div>
                    {subtemplate footer}
                    {eval die;}
    <!--{/if}-->
    <!--{if (!$discuz_uid) || ($gtsignopen[v1] !=1) || ($gtsigncant != false)}-->
                    非法操作
                    {eval die;}
    <!--{/if}-->
    <!--{if ($_GET['act'] == sign)}-->
                    {eval $sign_count=$db->fetch_array($db->query("SELECT * FROM gt_sign_count WHERE uid=$discuz_uid"));}
                    <!--{if $sign_count['lastsign'] > $today}-->
                                    你今天已经签到了
                                    {eval die;}
                    <!--{/if}-->
                    <!--{if !$_GET['moodid']}-->
                                    你还没有选择心情
                                    {eval die;}
                    <!--{/if}-->
                    <!--{if !$_GET['content']}-->
                                    你还没有写想说内容
                                    {eval die;}
                    <!--{/if}-->
                    {eval $bonusop = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonusop'"));}
                    <!--{if ($bonusop[v1] == 1)}-->
                                    {eval $bonus=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='bonus'"));}
                                    {eval $rbonus=rand($bonus[v2],$bonus[v3]);}
                                    {eval $db->query("INSERT INTO gt_sign VALUES (NULL, '".$discuz_uid."', '".$discuz_user."', '".$_GET['moodid']."', '".$_GET['content']."', '$rbonus', '0', '".$timestamp."')");}
                                    {eval $db->query("UPDATE cdb_members SET extcredits".$bonus[v1]."=extcredits".$bonus[v1]."+$rbonus WHERE uid=$discuz_uid");}
                                    签到成功, 获得随机奖励 $extcredits[$bonus[v1]][title].$rbonus.$extcredits[$bonus[v1]][unit]
                                    {eval $qdnum = $db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE dateline > $today"));}
                                    {eval $top1 = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top1'"));}
                                    {eval $top2 = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top2'"));}
                                    {eval $top3 = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='top3'"));}
                                     你是今天第$qdnum[num]个签到的
                                    <!--{if ($qdnum[num] == 1) && ($top1[v1])}-->
                                            {eval $top1RBonus = rand($top1[v2],$top1[v3]);}
                                            还额外获得了 $extcredits[$top1[v1]][title].$top1RBonus.$extcredits[$top1[v1]][unit]
                                            {eval $db->query("UPDATE cdb_members SET extcredits".$top1[v1]."=extcredits".$top1[v1]."+$top1RBonus WHERE uid=$discuz_uid");}
                                    <!--{elseif ($qdnum[num] == 2) && ($top2[v1])}-->
                                            {eval $top2RBonus = rand($top2[v2],$top2[v3]);}
                                            还额外获得了 $extcredits[$top2[v1]][title].$top2RBonus.$extcredits[$top2[v1]][unit]
                                            {eval $db->query("UPDATE cdb_members SET extcredits".$top2[v1]."=extcredits".$top2[v1]."+$top2RBonus WHERE uid=$discuz_uid");}
                                    <!--{elseif ($qdnum[num] == 3) && ($top3[v1])}-->
                                            {eval $top3RBonus = rand($top3[v2],$top3[v3]);}
                                            还额外获得了 $extcredits[$top3[v1]][title].$top3RBonus.$extcredits[$top3[v1]][unit]
                                            {eval $db->query("UPDATE cdb_members SET extcredits".$top3[v1]."=extcredits".$top3[v1]."+$top3RBonus WHERE uid=$discuz_uid");}
                                    <!--{/if}-->
                    <!--{else}-->
                                    {eval $db->query("INSERT INTO gt_sign VALUES (NULL, '".$discuz_uid."', '".$discuz_user."', '".$_GET['moodid']."', '".$_GET['content']."', '0', '0', '".$timestamp."')");}
                                    签到成功
                                    {eval $qdnum = $db->fetch_array($db->query("SELECT COUNT(*) AS num FROM gt_sign WHERE dateline > $today"));}
                                     你是今天第$qdnum[num]个签到的
                    <!--{/if}-->
                    {eval $history = $db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='history'"));}
                    <!--{if ($history[v1] < $qdnum[num])}-->
                            {eval $db->query("UPDATE gt_sign_config SET v1 = '".$qdnum[num]."' WHERE name = 'history'");}
                    <!--{/if}-->
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='zhuan'"));}
                    |<!--{if $q2[v1]}--><script>window.setTimeout("window.location.href='$q2[v1]'; ",3000); </script><!--{/if}-->
                    <!--{if $sign_count}-->
                                    {eval $q2=$db->query("UPDATE gt_sign_count SET total = '".($sign_count['total'] + 1)."', lastsign='".$timestamp."' WHERE uid = '".$discuz_uid."'");}
                    <!--{else}-->
                                    {eval $q2=$db->query("INSERT INTO gt_sign_count VALUES ('".$discuz_uid."', '1', '".$timestamp."')");}
                    <!--{/if}-->
                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='ftforumop'"));}
                    <!--{if ($q2[v1] != 1)}-->
                                    {eval die;}
                    <!--{/if}-->
                    <!--{if ($qdnum[num] == 1)}-->
                                    {eval $message1="[quote][size=2][color=dimgray]本贴是论坛每日签到系统在每天的第一位签到者签到时所自动生成的[/color][/size][/quote][quote][size=2][color=gray][color=gray]我在[/color] [color=darkorange]".gmdate("Y-m-d H:i", $timestamp + $_DCACHE['settings']['timeoffset'] * 3600)."[/color] 完成签到,是[color=red]今天[/color][color=darkorange]第".$qdnum[num]."个签到的用户[/color]";}
                                    {eval $message2=",获得随机奖励 [/color][color=gray]".$extcredits[$bonus[v1]][title]."[/color][color=darkorange]".$rbonus."[/color][color=gray]".$extcredits[$bonus[v1]][unit];}
                                    {eval $message3="[/color][/size][/quote][size=3][color=dimgray]我今天最想说:「[color=red]".$_GET['content']."[/color]」.[/color][/size]";}
                                    <!--{if $bonusop[v1]==1}-->
                                                    {eval $message=$message1.$message2.$message3;}
                                    <!--{else}-->
                                                    {eval $message=$message1.$message3;}
                                    <!--{/if}-->
                                    {eval $ftforum=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='ftforum'"));}
                                    {eval $fidnumber=$ftforum[v1];}
                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='sub'"));}
                                    {eval $subject=date($q2[v1],time());}
                                    {eval $db->query("INSERT INTO cdb_threads (fid, readperm, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, special, attachment, moderated, highlight, closed) VALUES ('$fidnumber', '0', '0', '0', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '0', '0', '0', '0', '1', '1', '1')");}
                                    {eval $tidnumber = $db->insert_id();}
                                    {eval $db->query("UPDATE gt_sign_config SET v2 = '$tidnumber' WHERE name='ftforum'");}
                                    {eval $db->query("INSERT INTO cdb_posts (fid, tid, first, author, authorid, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment, subject) VALUES ('$fidnumber', '$tidnumber', '1', '$discuz_user', '$discuz_uid', '$timestamp', '$message', '$onlineip', '$pinvisible', '1', '0', '0', '0', '0', '0', '$subject')");}
                                    {eval $expiration = $timestamp + 86400;}
                                    {eval $db->query("INSERT INTO cdb_threadsmod (tid, uid, username, dateline, action, expiration, status) VALUES ('$tidnumber', '$discuz_uid', '$discuz_userss', '$timestamp', 'EHL', '$expiration', '1')");}
                                    {eval $db->query("INSERT INTO cdb_threadsmod (tid, uid, username, dateline, action, expiration, status) VALUES ('$tidnumber', '$discuz_uid', '$discuz_userss', '$timestamp', 'CLS', '0', '1')");}
                                    {eval $lastpost = "$tidnumber\t$subject\t$timestamp\t$discuz_userss";}
                                    {eval $db->query("UPDATE cdb_forums SET lastpost='$lastpost', threads=threads+1, posts=posts+1, todayposts=todayposts+1 WHERE fid='$fidnumber'", 'UNBUFFERED');}
                    <!--{else}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT v1,v2 FROM gt_sign_config WHERE name='ftforum'"));}
                                    {eval $fidnumber=$q2[v1];}
                                    {eval $tidnumber=$q2[v2];}
                                    {eval $message1="[quote][size=2][color=gray][color=gray]我在[/color] [color=darkorange]".gmdate("Y-m-d H:i", $timestamp + $_DCACHE['settings']['timeoffset'] * 3600)."[/color] 完成签到,是[color=red]今天[/color][color=darkorange]第".$qdnum[num]."个签到的用户[/color]";}
                                    {eval $message2=",获得随机奖励 [/color][color=gray]".$extcredits[$bonus[v1]][title]."[/color][color=darkorange]".$rbonus."[/color][color=gray]".$extcredits[$bonus[v1]][unit];}
                                    {eval $message3="[/color][/size][/quote][size=3][color=dimgray]我今天最想说:「[color=red]".$_GET['content']."[/color]」.[/color][/size]";}
                                    <!--{if $bonusop[v1]==1}-->
                                                    {eval $message=$message1.$message2.$message3;}
                                    <!--{else}-->
                                                    {eval $message=$message1.$message3;}
                                    <!--{/if}-->
                                    {eval $q2=$db->fetch_array($db->query("SELECT * FROM gt_sign_config WHERE name='sub'"));}
                                    {eval $subject=date($q2[v1],time());}
                                    {eval $db->query("INSERT INTO cdb_posts (fid, tid, first, author, authorid, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment) VALUES ('$fidnumber', '$tidnumber', '0', '$discuz_userss', '$discuz_uid', '$timestamp', '$message', '$onlineip', '$pinvisible', '1', '0', '0', '0', '0', '0')");}
                                    {eval $db->query("UPDATE cdb_threads SET replies=replies+1,lastposter='" . $discuz_userss . "' WHERE tid=" . $tidnumber);}
                                    {eval $lastpost = "$tidnumber\t$subject\t$timestamp\t$discuz_userss";}
                                    {eval $db->query("UPDATE cdb_forums SET lastpost='$lastpost', posts=posts+1, todayposts=todayposts+1 WHERE fid='$fidnumber'", 'UNBUFFERED');}
                    <!--{/if}-->
    <!--{/if}-->
    <!--{if $_GET['act'] == ago && $_GET['year'] && $_GET['month']}-->
                    <!--{if strlen($_GET['month']) == 1}-->
                                    {eval $monthg = ("0".$_GET['month']);}
                    <!--{else}-->
                                    {eval $monthg = $_GET['month'];}
                    <!--{/if}-->
                    {eval $timesa=strtotime($_GET['year'].$monthg."01");}
                    {eval $oneweekday=date("w",$timesa);}
                    {eval $monthday=date("t",$timesa);}
                    {eval $loneweekday=date("t",$timesa-(3600*24*$monthday));}
                    {eval $startlow=$oneweekday;}
                    {eval $q2=($startlow+$monthday)/7;}
                    <!--{if is_int($q2)}-->
                                    {eval for($a=(1-$startlow),$b=$startlow;$a<=$monthday;$a++,$b++) $months[$b]=$a;}
                    <!--{else}-->
                                    {eval for($a=(1-$startlow),$b=$startlow;$a<=((ceil($monthday/7)*7)-$startlow);$a++,$b++) $months[$b]=$a;}
                    <!--{/if}-->
                    <!--{if $timesa<$today}-->
                                    {eval $q2=$db->query("SELECT * FROM gt_sign WHERE uid=$discuz_uid and dateline>$timesa and dateline<".($timesa+(3600*24*$monthday)));}
                    <!--{else}-->
                                    {eval $q2=$db->query("SELECT * FROM gt_sign WHERE uid=$discuz_uid and dateline>$timesa");}
                    <!--{/if}-->
                    {eval $q3=Array();}
                    {eval $i=0;}
                    {eval while ($asdfghf=$db->fetch_array($q2)) $q3[$i++] = $asdfghf ; }
                    <!--{loop $q3 $thing}-->
                                    {eval $key=date('j', $thing['dateline']);}
                                    {eval $mood=$db->fetch_array($db->query("SELECT * FROM gt_sign_mood WHERE moodid='".$thing['moodid']."'"));}
                                    {eval $list[$key] = '<img src="'.$mood['src'].'" title="'.$thing['content'].'" alt="'.$mood['title'].'" />';}
                    <!--{/loop}-->
                    <div id="gtsignw" class="dialog" style="position:fixed;top:25%;left:35%;">
                    <div class="dialog-title"></div>
                    <table class="fwin_1" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                    <td class="t_l"></td>
                    <td class="t_c"></td>
                    <td class="t_r"></td>
                    </tr>
                    <tr>
                    <td class="m_l">&nbsp;&nbsp;</td>
                    <td class="m_c" id="fwin_content_register" fwin="register">
                    <h3 class="float_ctrl" style="margin: 5px;">
                    <em id="returnmessage3">每日签到</em>
                    <span><b href="javascript:;" class="float_close" id="gfqqqgb" onclick="display('gtsignw');" title="关闭">关闭</b></span>
                    </h3>
                    <div class="layer_mood">
                   
                            <div class="succeed_tips"></div>
                   
                            <ul class="succeed_tab">
                   
                                    <li class=" current"><a href="javascript:void(0)">我的心情</a></li>
                   
                            </ul>
                   
                            <div class="addition cl">
                   
                                    <div class="mood_calendar">
                   
                                            <div class="moon_select">
                   
                                                    <a class="arrow_l" onclick="gtsignwago('up');" href="javascript:;"></a>
                   
                                                    <span>{echo date('Y年m月', $timesa);}</span>
                   
                                                    <a class="arrow_r" onclick="gtsignwago('down');" href="javascript:;"></a>
                   
                                            </div>
                   
                                            <div class="calendar S_line2 S_bg1">
                   
                                            <ul class="week cl">
                   
                                                    <li>日</li>
                   
                                                    <li>一</li>
                   
                                                    <li>二</li>
                   
                                                    <li>三</li>
                   
                                                    <li>四</li>
                   
                                                    <li>五</li>
                   
                                                    <li>六</li>
                   
                                            </ul>
                   
                                            <ul class="day cl">
                   
                                                    <!--{loop $months $key $day}-->
                   
                                                    <li class="S_line1"><span><!--{if $day>$monthday}-->{echo $day-$monthday;}<!--{elseif $day>=1}-->$day<!--{else}-->{echo $loneweekday+$day;}<!--{/if}--></span>$list[$day]</li>
                   
                                                    <!--{/loop}-->
    
                                            </ul>
                   
                                            </div>
                   
                                    </div>
                   
                            </div>
                   
                    </div>
                   
                    <p class="o pns">
                   
                            <button type="button" value="true" class="pn pnc" onclick="display('gtsignw');"><strong>确定</strong></button>
                   
                    </p>
                    </td>
                    <td class="m_r"></td>
                    </tr>
                    <tr>
                    <td class="b_l"></td>
                    <td class="b_c"></td>
                    <td class="b_r"></td>
                    </tr>
                    </tbody>
                    </table>
                    </div>
    <!--{/if}-->
    {eval die;}
    回复

    使用道具 举报

  • TA的每日心情

    2023-7-25 17:56
  • 签到天数: 24 天

    连续签到: 23 天

    [LV.4]偶尔看看III

    文強已获得官方认证 2023-6-25 12:18
    10、最后升级数据库,内容:

    [CSS] 纯文本查看 复制代码
    INSERT INTO `gt_sign_config` VALUES ('top1', '0', '20', '30');
    INSERT INTO `gt_sign_config` VALUES ('top2', '0', '20', '30');
    INSERT INTO `gt_sign_config` VALUES ('top3', '0', '20', '30');
    INSERT INTO `gt_sign_config` VALUES ('history', '0', '', '');


    签到中心的地址是http://你论坛地址/faq.php?gt=sign

    如果你是管理员你会看到该页面右下角的“进入管理中心”,第一次使用请务必进入并进行设置, 如果插件关闭了,就直接进入这个地址管理http://你论坛地址/faq.php?gt=sign&act=config

    附上骨头签到插件v1.2.zip :

    骨头签到插件v1.2.zip (86.39 KB, 下载次数: 15)
    回复

    使用道具 举报

  • TA的每日心情

    2023-7-25 17:56
  • 签到天数: 24 天

    连续签到: 23 天

    [LV.4]偶尔看看III

    您需要登录后才可以回帖 登录 | 立即注册

    您还未登录

    随手拍~~:

    热门推荐~~:

    Instagram 播放器代码...

    首先進入後台 → 界面 → 编辑器设置 →Discuz! 代码 新增一个 ig 的“标签”,然后点击“详 ...

    2023年谷歌浏览器依然能够使用Flash的方法...

    1、首先需要安装 Clean Flash Player:[/colorT] 下载解压后鼠标右键“以管理员身份运行”Clean Flas ...

    论坛表情分享...

    1、洋葱头 ...

    Discuz! X3.5 解决小图标不显示的方法...

    我发现大多数使用Discuz! X3.5 都有小图标不能显示的问题,提问的时候大家给的回答都是说跨域的问题, ...

    如何在 discuz 帖子里添加 APlayer 音乐播...

    1、首先将下边的 APlayer.css 和 APlayer.js 代码下载然后解压上传到服务器。 2、单曲音乐的代 ...

    热度会员~~:

    文強bkboonkiongadmin老谟深虑huaekinTaC彤彤aachi55688dongerlaoreninception小白龙

    免责声明~~:


    本站内容来源于合作伙伴及网络搜集,版权归原作者所有。如有侵犯版权,请立刻和本站联系,我们将在三个工作日内予以改正。
    Email:hsbk@hotmail.com

    手机App~~:

    服务与条款|隐私政策|免责声明|手机版|友链申请|小黑屋|网站地图| 文强阁

    Powered by Discuz! X3.5|© 2001-2024 Discuz! Team. |距离砂拉越自治日还有: