$sqladd = "WHERE descrip LIKE " . pwEscape("%{$keyword}%"); } else { $sqladd = ''; } if (!is_numeric($page) || $page < 1) { $page = 1; } $limit = pwLimit(($page - 1) * $db_perpage, $db_perpage); $rt = $db->get_one("SELECT COUNT(*) AS sum FROM pw_toollog {$sqladd}"); $sum = $rt['sum']; $total = ceil($sum / $db_perpage); $pages = numofpage($sum, $page, $total, "{$basename}&keyword=" . rawurlencode($keyword) . "&"); $logdb = array(); $query = $db->query("SELECT * FROM pw_toollog {$sqladd} ORDER BY time DESC {$limit}"); while ($rt = $db->fetch_array($query)) { $rt['time'] = get_date($rt['time']); $rt['descrip'] = convert($rt['descrip'], array()); $logdb[] = $rt; } } elseif ($action == 'del') { InitGP(array('selid')); if (!($selid = checkselid($selid))) { $basename = "javascript:history.go(-1);"; adminmsg('operate_error'); } $db->update("DELETE FROM pw_toollog WHERE id IN({$selid})"); adminmsg('operate_success'); } include PrintHack('admin'); exit; }
<?php !function_exists('readover') && exit('Forbidden'); /**** @name:加亮道具 @type:帖子类 @effect:可以将自己的帖子标题加亮显示 ****/ if ($tooldb['type'] != 1) { Showmsg('tooluse_type_error'); // 判断道具类型是否设置错误 } if (!$_POST['step']) { require_once PrintHack('index'); footer(); } else { if ($tpcdb['authorid'] != $winduid) { Showmsg('tool_authorlimit'); } InitGP(array('title1', 'title2', 'title3', 'title4', 'title5', 'title6')); $titlefont = "{$title1}~{$title2}~{$title3}~{$title4}~{$title5}~{$title6}~"; $db->update("UPDATE pw_threads SET titlefont=" . pwEscape($titlefont) . ",toolinfo=" . pwEscape($tooldb['name'], false) . "WHERE tid=" . pwEscape($tid)); $db->update("UPDATE pw_usertool SET nums=nums-1 WHERE uid=" . pwEscape($winduid) . "AND toolid=" . pwEscape($toolid)); $logdata = array('type' => 'use', 'nums' => '', 'money' => '', 'descrip' => 'tool_3_descrip', 'uid' => $winduid, 'username' => $windid, 'ip' => $onlineip, 'time' => $timestamp, 'toolname' => $tooldb['name'], 'subject' => substrs($tpcdb['subject'], 15), 'tid' => $tid); writetoollog($logdata); Showmsg('toolmsg_success'); }
<?php !function_exists('readover') && exit('Forbidden'); //* include_once pwCache::getPath(D_P.'data/bbscache/bg_config.php'); pwCache::getData(D_P . 'data/bbscache/bg_config.php'); $groupid == 'guest' && Showmsg('not_login'); !$bg_ifopen && Showmsg('blog_close'); if (!$action) { include PrintHack('index'); footer(); } elseif ($action == 'activation') { ObHeader("{$bg_blogurl}/login.php"); }
$notes .= "{$detail['0']} 于 {$detail['1']} 探宝一夜,引起了大白鲨的注意,身受重伤,治疗花费 {$detail['3']} 元,并且必须休息 {$vtime} 分钟<br/>"; } elseif ($detail[2] == 3) { $notes .= "{$detail['0']} 于 {$detail['1']} 捕获到一条驼背鲸,赚取 {$detail['3']} 元,开心的不得了!<br/>"; } elseif ($detail[2] == 4) { $notes .= "{$detail['0']} 于 {$detail['1']} 抓到一条金鱼,赚取 {$detail['3']} 元,因为钱太少了而闷闷不乐<br/>"; } elseif ($detail[2] == 5) { $notes .= "亚马逊热带雨林的食人鱼居然被 {$detail['0']} 于 {$detail['1']} 在海里发现了,身受重伤,花费 {$detail['3']} 元治疗,时间为 {$vtime} 分钟<br/>"; } elseif ($detail[2] == 6) { $notes .= "{$detail['0']} 于 {$detail['1']} 探宝一夜,只抓到1条比目鱼,卖给海边小孩,赚取 {$detail['3']} 元<br/>"; } elseif ($detail[2] == 7) { $notes .= "{$detail['0']} 于 {$detail['1']} 在海底居然发现了鳄鱼,身上装备损坏花费 {$detail['3']} 金币修补,并且已经受伤必须休息 {$vtime} 分钟<br/>"; } elseif ($detail[2] == 8) { $notes .= "{$detail['0']} 于 {$detail['1']} 找到了宝船南海II号,财产瞬间增加了 {$detail['3']} 金币,大家快去打劫他啊!"; } elseif ($detail[2] == 9) { $notes .= "{$detail['0']} 于 {$detail['1']} 看到了传说中的美人鱼,得到出版社的 {$detail['3']} 金币写成传记!"; } elseif ($detail[2] == 10) { $notes .= "{$detail['0']} 于 {$detail['1']} 遇到深海乌贼,没有受伤,但是装备都坏了,维修花费 {$detail['3']} 金币,并且决定休假 {$vtime} 分钟<br/>"; } elseif ($detail[2] == 11) { $notes .= "{$detail['0']} 于 {$detail['1']} 被剧毒海蜇攻击,治疗花费 {$detail['3']} 金币,必须住院休息 {$vtime} 分钟<br/>"; } elseif ($detail[2] == 12) { $notes .= "{$detail['0']} 于 {$detail['1']} 什么也没找到,顺手拿了点珊瑚礁出来卖,增加 {$detail['3']} 金币"; } elseif ($detail[2] == 13) { $notes .= "{$detail['0']} 于 {$detail['1']} 找到了一颗大珍珠,增加 {$detail['3']} 金币"; } elseif ($detail[2] == 14) { $notes .= "{$detail['0']} 于 {$detail['1']} 遇到了传说中的海怪!损失 {$detail['3']} 金币治疗过度惊吓,并且已经受伤必须休息 {$vtime} 分钟<br/>"; } } } setcookie(click, ''); require_once PrintHack(click); footer();
!$fish10 && ($fish10 = 0); !$fish11 && ($fish11 = 0); !$fish12 && ($fish12 = 0); !$fish13 && ($fish13 = 0); !$fish14 && ($fish14 = 0); @writeover($dayfile, "<?php\r\n\$fish1=\"{$fish1}\";\r\n\$fish2=\"{$fish2}\";\r\n\$fish3=\"{$fish3}\";\r\n\$fish4=\"{$fish4}\";\r\n\$fish5=\"{$fish5}\";\r\n\$fish6=\"{$fish6}\";\r\n\$fish7=\"{$fish7}\";\r\n\$fish8=\"{$fish8}\";\r\n\$fish9=\"{$fish9}\";\r\n\$fish10=\"{$fish10}\";\r\n\$fish11=\"{$fish11}\";\r\n\$fish12=\"{$fish12}\";\r\n\$fish13=\"{$fish13}\";\r\n\$fish14=\"{$fish14}\";\r\n?>"); } else { @(include $dayfile); } $hotpostsfile = D_P . "data/bbscache/fish/hotpost.php"; $uptime = get_date(filemtime($hotpostsfile) + 60, 'A:H:i:s'); $uptime = '下次统计时间 ' . $uptime; $hotposts = ""; if ($timestamp - @filemtime($hotpostsfile) >= 60) { $query = $db->query("SELECT * FROM pw_fish ORDER BY statistics DESC LIMIT 0,10"); while ($loop = $db->fetch_array($query)) { $hotposts .= "<tr align=center>\r\n <td><a href=profile.php?action=show&uid={$loop['uid']}>{$loop['username']}</a></td>\r\n <td>{$loop['fish1']}</td>\r\n <td>{$loop['fish3']}</td>\r\n <td>{$loop['fish4']}</td>\r\n <td>{$loop['fish6']}</td>\r\n <td>{$loop['fish8']}</td>\r\n <td>{$loop['fish9']}</td>\r\n <td>{$loop['fish12']}</td>\r\n\t\t\t\t\t\t <td>{$loop['fish13']}</td>\r\n <td>{$loop['statistics']}</td>\r\n </tr>\r\n"; } unset($loop); $db->free_result($query); !$hotposts && ($hotposts = "<tr align=center><td colspan=9>无记录</td></tr>"); @writeover($hotpostsfile, "<?php\r\n\$hotposts=\"{$hotposts}\";\r\n?>"); } else { @(include $hotpostsfile); } @extract($db->get_one("SELECT * FROM pw_bbsinfo WHERE id=1")); if ($tdtcontrol != $tdtime) { @writeover(D_P . "data/bbscache/fish/fishlog{$tddays}.php", ""); } require_once PrintHack(index); footer();
updatecache_mddb(); adminmsg('operate_success'); } } elseif ($action == 'del') { InitGP(array('id')); $db->update("DELETE FROM pw_medalinfo WHERE id=" . pwEscape($id)); $basename = "{$admin_file}?adminjob=hack&hackset=medal&action=edit"; updatecache_mddb(); adminmsg('operate_success'); } elseif ($action == 'selectimg') { require_once D_P . 'data/bbscache/medaldb.php'; InitGP(array('thisid')); $medalimgdir = H_P . "/image/"; $medalimgs = $haveused = array(); foreach ($_MEDALDB as $value) { $haveused[] = $value['picurl']; } $d = opendir($medalimgdir); while ($filename = readdir($d)) { if ($filename == '.' || $filename == '..') { continue; } $fileext = end(explode('.', $filename)); if (!in_array($fileext, array('gif', 'jpg', 'jpeg', 'png'))) { continue; } $isused = in_array($filename, $haveused) ? 1 : 0; $medalimgs[] = array('filename' => $filename, 'isused' => $isused); } require_once PrintHack('selectimg'); }
$content .= "\$fish6money=\"{$fish6money}\";\r\n"; $content .= "\$fish7money=\"{$fish7money}\";\r\n"; $content .= "\$fish8money=\"{$fish8money}\";\r\n"; $content .= "\$fish9money=\"{$fish9money}\";\r\n"; $content .= "\$fish10money=\"{$fish10money}\";\r\n"; $content .= "\$fish11money=\"{$fish11money}\";\r\n"; $content .= "\$fish12money=\"{$fish12money}\";\r\n"; $content .= "\$fish13money=\"{$fish13money}\";\r\n"; $content .= "\$fish14money=\"{$fish14money}\";\r\n"; $content .= "\$vtime=\"{$vtime}\";\r\n"; $content .= "\$cview=\"{$cview}\";\r\n"; $content .= "\$cutime=\"{$cutime}\";"; writeover(D_P . "data/bbscache/fish/config.php", "<?php\r\n" . $content . "\r\n?>"); adminmsg("设置保存完成", $basename); } require_once PrintHack('admin'); function config() { global $db, $imgpath, $db_bbsurl; $content .= "\$cheatopen=\"0\";\r\n"; $content .= "\$cheatopenmsg=\"管理员把去探宝的地图弄丢啦,快去找他要\";\r\n"; $content .= "\$fish_groups=\",3,4,5,8,16,9,10,11,12,13,14,15,\";\r\n"; $content .= "\$guestview=\"0\";\r\n"; $content .= "\$fish1money=\"10\";\r\n"; $content .= "\$fish2money=\"50\";\r\n"; $content .= "\$fish3money=\"50\";\r\n"; $content .= "\$fish4money=\"30\";\r\n"; $content .= "\$fish5money=\"30\";\r\n"; $content .= "\$fish6money=\"20\";\r\n"; $content .= "\$fish7money=\"20\";\r\n"; $content .= "\$fish8money=\"20\";\r\n";