本文整理汇总了PHP中slog::GlobalPermissions方法的典型用法代码示例。如果您正苦于以下问题:PHP slog::GlobalPermissions方法的具体用法?PHP slog::GlobalPermissions怎么用?PHP slog::GlobalPermissions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类slog
的用法示例。
在下文中一共展示了slog::GlobalPermissions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$votes = $db->query("SELECT id FROM {$db->pre}vote WHERE tid = '{$info['id']}'", __LINE__, __FILE__);
$voteaids = array();
while ($row = $db->fetch_num($votes)) {
$voteaids[] = $row[0];
}
if (count($voteaids) > 0) {
$db->query("DELETE FROM {$db->pre}votes WHERE id IN (" . implode(',', $voteaids) . ")", __LINE__, __FILE__);
$anz += $db->affected_rows();
}
$db->query("DELETE FROM {$db->pre}vote WHERE tid = '{$info['id']}'", __LINE__, __FILE__);
$anz += $db->affected_rows();
($code = $plugins->load('managetopic_delete2_end')) ? eval($code) : null;
UpdateBoardStats($info['board']);
ok($lang->phrase('x_entries_deleted'), "showforum.php?id=" . $info['board'] . SID2URL_x);
} elseif ($action == "move") {
$my->pb = $slog->GlobalPermissions();
if ($my->mp[0] == 1 && $my->mp[5] == 0) {
errorLogin($lang->phrase('not_allowed'), 'showtopic.php?id=' . $info['id'] . SID2URL_x);
}
$forums = BoardSubs();
echo $tpl->parse("menu");
echo $tpl->parse("admin/topic/move");
} elseif ($action == "move2") {
if ($my->mp[0] == 1 && $my->mp[5] == 0) {
errorLogin($lang->phrase('not_allowed'), 'showtopic.php?id=' . $info['id'] . SID2URL_x);
}
$result = $db->query("SELECT r.date, r.topic, r.name, r.email, r.guest, u.name AS uname, u.mail AS uemail FROM {$db->pre}replies AS r LEFT JOIN {$db->pre}user AS u ON u.id = r.name WHERE topic_id = '{$info['id']}' AND tstart = '1'", __LINE__, __FILE__);
$old = $db->fetch_assoc($result);
$board = $gpc->get('board', int);
$db->query("UPDATE {$db->pre}topics SET board = '{$board}' WHERE id = '{$info['id']}' LIMIT 1", __LINE__, __FILE__);
$anz = $db->affected_rows();