$shopid_query = DB::query("select * from " . DB::table($mname . 'items') . " where " . $wheresql); while ($__item = DB::fetch($shopid_query)) { shop::update_item_num($mname, $__item['shopid'], -1); } if ($mname == 'album') { $innerjoinsql = ''; $frombbs = ' and i.frombbs = 0'; } else { $innerjoinsql = "INNER JOIN " . tname($mname . 'message') . " m ON i.itemid=m.itemid"; $frombbs = ''; } } delmitems($wheresql, $mname); //刪除信息 if ($mname == 'shop') { updatememberstats(); } //刪除完信息後更新 $opsql = $wheresql = ''; cpmsg('message_success', $cookie_referer); } break; case 'pass': $opsql .= ' grade=\'3\''; break; case 'refuse': $opsql .= ' grade=\'1\''; break; case 'update_album_info': update_album_info($_POST['subject'], $mname, $wheresql); break;
*/ if (!defined('IN_ADMIN')) { exit('Acess Denied'); } @set_time_limit(0); require_once B_ROOT . './source/adminfunc/tool.func.php'; $checkresults = array(); if (!empty($_GET['operation'])) { switch ($_GET['operation']) { case 'updatesubcatid': shownav('tool', 'tool_updatesubcatid'); cpmsg(updatesubcatid(), 'admin.php?action=tool&operation=updatecache'); break; case 'updatememberstats': shownav('tool', 'tool_updatememberstats'); cpmsg(updatememberstats(), 'admin.php?action=tool&operation=updatecache'); break; case 'changeallowner': shownav('tool', 'tool_updateallowner'); cpmsg(changeallowner(), 'admin.php?action=tool&operation=updatecache'); break; } if ($_GET['operation'] == 'updatecache') { $_GET['step'] = max(1, intval($_GET['step'])); shownav('global', 'tool_updatecache'); showsubmenu('tool_updatecache', array(array('tool_updatecache', 'tool&operation=updatecache', '1'), array('menu_tool_updatesubcatid', 'tool&operation=updatesubcatid', '0'), array('menu_tool_updatememberstats', 'tool&operation=updatememberstats', '0'), array('menu_tool_changeallowner', 'tool&operation=changeallowner', '0'), array('menu_tool_updateshopitemnum', 'tool&operation=updateshopitemnum', '0'))); showsubmenusteps('', array(array('tool_updatecache_confirm', $_GET['step'] == 1), array('tool_updatecache_verify', $_GET['step'] == 2), array('tool_updatecache_completed', $_GET['step'] == 3))); showtips('tools_updatecache_tips'); if ($_GET['step'] == 1) { cpmsg("<input type=\"checkbox\" name=\"type[]\" value=\"data\" id=\"datacache\" class=\"checkbox\" checked /><label for=\"datacache\">" . cplang('tool_updatecache_data') . "</label><input type=\"checkbox\" name=\"type[]\" value=\"tpl\" id=\"tplcache\" class=\"checkbox\" checked /><label for=\"tplcache\">" . cplang('tool_updatecache_tpl') . "</label>", 'admin.php?action=tool&operation=updatecache&step=2', 'form', '', false); } elseif ($_GET['step'] == 2) {