Example #1
0
            echo "<div class=\"costmsg\"><span>资金信息:</span><span class=\"cost\">你支出了 {$this->money} {$creditdb['name']}</span>";
        } else {
            echo "无法提交数据";
        }
    }
}
$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;