Ejemplo n.º 1
0
        }
    }
}
$ch = new tool($tname, $tgid, $gettool, $getchangegold, $getmsg, $repairid, $help, $db);
$tcid = $ch->getcid();
$creditdb = $db->get_one("SELECT * FROM pw_credits WHERE cid=" . pwEscape($tcid));
$ch->oc == 0 && showmsg('插件已关闭');
if ($gss == $ss) {
    if ($getchangegold != '') {
        $ch->chggold($creditdb);
    }
    if ($gettool != '') {
        $ch->updatatool();
    }
}
$ch->getscore();
$ch->getmsg();
if ($repair == $tgid) {
    showmsg('你不能请自己吃饭或帮自己修理工具,快请你的朋友帮忙吧!');
} elseif ($getmsg != '' or $help != '') {
    $ch->updatamsg();
}
//$ch->updatamsg();
$showvalue = $ch->showvalue;
$showallscore = $ch->showallscore;
$showtool = $ch->showtool;
$tool = $ch->gtool;
$showfood = $ch->showfood;
$showhealth = $ch->showhealth;
echo "<div class=\"msg\"><span>你的食物:{$showfood} </span><span>体力:{$showhealth} </span><span>你的工具:{$showtool} </span><span>耐久:{$tool} </span><span>金矿:{$showallscore} 公斤</span><span>{$creditdb['name']}:{$showvalue} {$creditdb['unit']}</span></div><div class=\"topmsg\">小买部公益广告:请珍惜慎重消费自己的劳动成果!!!不然要去论坛发帖赚取积分换{$creditdb['name']}了。</div><div class=\"topmsg1\">公告栏:(要帮助人请直接点他的名字)<br><marquee direction=up height=100 scrollamount=1 onmouseover='this.stop()' onmouseout='this.start()'>";
$query = "SELECT id,name,msg,health,tool FROM pw_gold ORDER BY time DESC LIMIT 0 , 30 ";