本文整理汇总了PHP中log_admin_action函数的典型用法代码示例。如果您正苦于以下问题:PHP log_admin_action函数的具体用法?PHP log_admin_action怎么用?PHP log_admin_action使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了log_admin_action函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: output_onpost_table_areas
function output_onpost_table_areas()
{
global $db, $main;
$ret = TRUE;
foreach ((array) $_POST['id'] as $key => $value) {
$ret = $ret && $db->del("areas", "id = '" . $value . "'");
}
if ($ret) {
log_admin_action(get('area'), "areas#" . get('id'), "delete_success");
#@#
$main->message->set_fromlang('info', 'delete_success', makelink("", TRUE));
} else {
$main->message->set_fromlang('error', 'generic');
}
}
示例2: output_onpost_form_area
function output_onpost_form_area()
{
global $construct, $main, $db;
$form_area = $this->form_area();
$area = get('area');
$ret = TRUE;
$_POST['areas__ip_start'] = ip2long($_POST['areas__ip_start']);
$_POST['areas__ip_end'] = ip2long($_POST['areas__ip_end']);
$ret = $form_area->db_set(array(), "areas", "id", get('area'));
if ($ret) {
#$#ip_ranges
log_admin_action(get('area'), "areas#" . get('id'), "insert_success");
#$#
$main->message->set_fromlang('info', 'insert_success', makelink(array("page" => "admin", "subpage" => "areas")));
} else {
$main->message->set_fromlang('error', 'generic');
}
}
示例3: output_onpost_form_nodesettingschanges
function output_onpost_form_nodesettingschanges()
{
global $construct, $main, $db;
$form_nodesettingschanges = $this->form_nodesettingschanges();
#$nameserver = get('nameserver');
#if (get('nameserver') == 'add') {
# $_POST['dns_nameservers__ip'] = ip2long($_POST['dns_nameservers__ip']);
#}
$f['node_id'] = intval(get('node'));
$ret = TRUE;
$ret = $form_nodesettingschanges->db_set(array(), "nodesettingschanges", "entryid", $nodesettingschanges);
#$ret = $form_nameserver->db_set($f,
# "dns_nameservers", "id", $nameserver);
if ($ret) {
$main->message->set_fromlang('info', 'insert_success', makelink(array("page" => "mynodes", "node" => get('node'))));
log_admin_action($nodes, "#nodesetttingschange#" . get('node'), get('entryid'), "nodesetttingschanges", "insert_success");
#@#
} else {
$main->message->set_fromlang('error', 'generic');
}
}
示例4: foreach
$new_tool['type'] = 'p';
$new_tool['threadoptions'] = $db->escape_string(serialize($thread_options));
$new_tool['postoptions'] = $db->escape_string(serialize($post_options));
$new_tool['name'] = $db->escape_string($mybb->input['title']);
$new_tool['description'] = $db->escape_string($mybb->input['description']);
$new_tool['forums'] = '';
if (is_array($mybb->input['forum_1_forums'])) {
foreach ($mybb->input['forum_1_forums'] as $fid) {
$checked[] = intval($fid);
}
$new_tool['forums'] = implode(',', $checked);
}
$tid = $db->insert_query("modtools", $new_tool);
$plugins->run_hooks("admin_config_mod_tools_add_post_tool_commit");
// Log admin action
log_admin_action($tid, $mybb->input['title']);
$cache->update_forumsdisplay();
flash_message($lang->success_mod_tool_created, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");
}
}
$page->add_breadcrumb_item($lang->add_new_post_tool);
$page->output_header($lang->mod_tools . " - " . $lang->add_new_post_tool);
$sub_tabs['thread_tools'] = array('title' => $lang->thread_tools, 'link' => "index.php?module=config-mod_tools");
$sub_tabs['add_thread_tool'] = array('title' => $lang->add_new_thread_tool, 'link' => "index.php?module=config-mod_tools&action=add_thread_tool");
$sub_tabs['post_tools'] = array('title' => $lang->post_tools, 'link' => "index.php?module=config-mod_tools&action=post_tools");
$sub_tabs['add_post_tool'] = array('title' => $lang->add_new_post_tool, 'link' => "index.php?module=config-mod_tools&action=add_post_tool", 'description' => $lang->add_post_tool_desc);
$page->output_nav_tabs($sub_tabs, 'add_post_tool');
$form = new Form("index.php?module=config-mod_tools&action=add_post_tool", 'post');
if ($errors) {
$page->output_inline_error($errors);
示例5: intval
}
if ($mybb->request_method == 'post') {
$where = 'dateline < ' . (TIME_NOW - intval($mybb->input['older_than']) * 86400);
// Searching for entries by a particular user
if ($mybb->input['uid']) {
$where .= " AND uid='" . intval($mybb->input['uid']) . "'";
}
// Searching for entries in a specific module
if ($mybb->input['filter_module']) {
$where .= " AND module='" . $db->escape_string($mybb->input['filter_module']) . "'";
}
$query = $db->delete_query("adminlog", $where);
$num_deleted = $db->affected_rows();
$plugins->run_hooks("admin_tools_adminlog_prune_commit");
// Log admin action
log_admin_action($mybb->input['older_than'], $mybb->input['uid'], $mybb->input['filter_module'], $num_deleted);
flash_message($lang->success_pruned_admin_logs, 'success');
admin_redirect("index.php?module=tools-adminlog");
}
$page->add_breadcrumb_item($lang->prune_admin_logs, "index.php?module=tools-adminlog&action=prune");
$page->output_header($lang->prune_admin_logs);
$page->output_nav_tabs($sub_tabs, 'prune_admin_logs');
// Fetch filter options
$sortbysel[$mybb->input['sortby']] = 'selected="selected"';
$ordersel[$mybb->input['order']] = 'selected="selected"';
$user_options[''] = $lang->all_administrators;
$user_options['0'] = '----------';
$query = $db->query("\n\t\tSELECT DISTINCT l.uid, u.username\n\t\tFROM " . TABLE_PREFIX . "adminlog l\n\t\tLEFT JOIN " . TABLE_PREFIX . "users u ON (l.uid=u.uid)\n\t\tORDER BY u.username ASC\n\t");
while ($user = $db->fetch_array($query)) {
$user_options[$user['uid']] = $user['username'];
}
示例6: require_once
require_once(DIR . '/includes/functions_misc.php');
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminforums'))
{
print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'usergroupid' => TYPE_INT,
'forumid' => TYPE_INT,
));
// ############################# LOG ACTION ###############################
log_admin_action(iif($vbulletin->GPC['userid'], "user id = " . $vbulletin->GPC['userid'], iif($vbulletin->GPC['usergroupid'], "usergroup id = " . $vbulletin->GPC['usergroupid'], iif($vbulletin->GPC['forumid'], "forum id = " . $vbulletin->GPC['forumid']))));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['view_permissions']);
$perm_phrase = array(
'canview' => $vbphrase['can_view_forum'],
'canviewthreads' => $vbphrase['can_view_threads'],
'canviewothers' => $vbphrase['can_view_others_threads'],
'cansearch' => $vbphrase['can_search_forum'],
'canemail' => $vbphrase['can_use_email_to_friend'],
'canpostnew' => $vbphrase['can_post_threads'],
'canreplyown' => $vbphrase['can_reply_to_own_threads'],
示例7: array
$db->delete_query("smilies", "sid = '{$sid}'", 1);
} else {
$smilie = array("name" => $db->escape_string($mybb->input['name'][$sid]), "find" => $db->escape_string($mybb->input['find'][$sid]), "showclickable" => $db->escape_string($mybb->input['showclickable'][$sid]));
// $test contains all disporders except the actual one so we can check whether we have multiple disporders
$test = $mybb->input['disporder'];
unset($test[$sid]);
if (!in_array($disporder, $test)) {
$smilie['disporder'] = $disporder;
}
$db->update_query("smilies", $smilie, "sid = '{$sid}'");
}
}
$cache->update_smilies();
$plugins->run_hooks("admin_config_smilies_mass_edit_commit");
// Log admin action
log_admin_action();
flash_message($lang->success_multiple_smilies_updated, 'success');
admin_redirect("index.php?module=config-smilies");
}
$page->add_breadcrumb_item($lang->mass_edit);
$page->output_header($lang->smilies . " - " . $lang->mass_edit);
$sub_tabs['manage_smilies'] = array('title' => $lang->manage_smilies, 'link' => "index.php?module=config-smilies");
$sub_tabs['add_smilie'] = array('title' => $lang->add_smilie, 'link' => "index.php?module=config-smilies&action=add");
$sub_tabs['add_multiple_smilies'] = array('title' => $lang->add_multiple_smilies, 'link' => "index.php?module=config-smilies&action=add_multiple");
$sub_tabs['mass_edit'] = array('title' => $lang->mass_edit, 'link' => "index.php?module=config-smilies&action=mass_edit", 'description' => $lang->mass_edit_desc);
$page->output_nav_tabs($sub_tabs, 'mass_edit');
$form = new Form("index.php?module=config-smilies&action=mass_edit", "post", "mass_edit");
if ($errors) {
$page->output_inline_error($errors);
} else {
$mybb->input['path'] = 'images/smilies/';
示例8: error_reporting
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile$ - $Revision: 37230 $');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('sql', 'user', 'cpuser');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
$vbulletin->input->clean_array_gpc('r', array('query' => TYPE_STR));
// ############################# LOG ACTION ###############################
log_admin_action(!empty($vbulletin->GPC['query']) ? "query = '" . htmlspecialchars_uni($vbulletin->GPC['query']) . "'" : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['execute_sql_query']);
if (!$vbulletin->debug) {
$userids = explode(',', str_replace(' ', '', $vbulletin->config['SpecialUsers']['canrunqueries']));
if (!in_array($vbulletin->userinfo['userid'], $userids)) {
print_stop_message('no_permission_queries');
}
}
if (empty($_REQUEST['do'])) {
$_REQUEST['do'] = 'modify';
}
// define auto queries
$queryoptions = array('-1' => '', $vbphrase['all_users'] => array('10' => $vbphrase['yes'] . ' - ' . $vbphrase['invisible_mode'], '80' => $vbphrase['no'] . ' - ' . $vbphrase['invisible_mode'], '20' => $vbphrase['yes'] . ' - ' . $vbphrase['allow_vcard_download'], '90' => $vbphrase['no'] . ' - ' . $vbphrase['allow_vcard_download'], '30' => $vbphrase['yes'] . ' - ' . $vbphrase['receive_admin_emails'], '100' => $vbphrase['no'] . ' - ' . $vbphrase['receive_admin_emails'], '40' => $vbphrase['yes'] . ' - ' . $vbphrase['display_email'], '110' => $vbphrase['no'] . ' - ' . $vbphrase['display_email'], '50' => $vbphrase['yes'] . ' - ' . $vbphrase['receive_private_messages'], '120' => $vbphrase['no'] . ' - ' . $vbphrase['receive_private_messages'], '60' => $vbphrase['yes'] . ' - ' . $vbphrase['send_notification_email_when_a_private_message_is_received'], '130' => $vbphrase['no'] . ' - ' . $vbphrase['send_notification_email_when_a_private_message_is_received'], '70' => $vbphrase['yes'] . ' - ' . $vbphrase['pop_up_notification_box_when_a_private_message_is_received'], '140' => $vbphrase['no'] . ' - ' . $vbphrase['pop_up_notification_box_when_a_private_message_is_received'], '150' => $vbphrase['on'] . ' - ' . $vbphrase['display_signatures'], '180' => $vbphrase['off'] . ' - ' . $vbphrase['display_signatures'], '160' => $vbphrase['on'] . ' - ' . $vbphrase['display_avatars'], '190' => $vbphrase['off'] . ' - ' . $vbphrase['display_avatars'], '170' => $vbphrase['on'] . ' - ' . $vbphrase['display_images'], '200' => $vbphrase['off'] . ' - ' . $vbphrase['display_images'], '175' => $vbphrase['on'] . ' - ' . $vbphrase['display_reputation'], '205' => $vbphrase['off'] . ' - ' . $vbphrase['display_reputation'], '176' => $vbphrase['on'] . ' - ' . $vbphrase['enahnced_attachment_uploading'], '206' => $vbphrase['off'] . ' - ' . $vbphrase['enahnced_attachment_uploading'], 'blank1' => '', '210' => $vbphrase['subscribe_choice_none'], '220' => $vbphrase['subscribe_choice_0'], '230' => $vbphrase['subscribe_choice_1'], '240' => $vbphrase['subscribe_choice_2'], '250' => $vbphrase['subscribe_choice_3'], 'blank2' => '', '270' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['linear'], '280' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['threaded'], '290' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['hybrid'], 'blank3' => '', '260' => $vbphrase['posts'] . ' - ' . $vbphrase['oldest_first'], '265' => $vbphrase['posts'] . ' - ' . $vbphrase['newest_first'], 'blank4' => '', '300' => $vbphrase['do_not_show_editor_toolbar'], '310' => $vbphrase['show_standard_editor_toolbar'], '320' => $vbphrase['show_enhanced_editor_toolbar']), $vbphrase['all_forums'] => array('400' => $vbphrase['show_threads_from_last_day'], '405' => $vbphrase['show_threads_from_last_week'], '410' => $vbphrase['show_threads_from_last_month'], '415' => $vbphrase['show_threads_from_last_year'], '420' => $vbphrase['show_all_threads']));
示例9: array
DELETE FROM " . TABLE_PREFIX . "userban
WHERE userid = $user[userid]
");
}
else
{
$userdm->set('usergroupid', 2);
$user['usergroupid'] = 2;
$userdm->set('displaygroupid', 0);
$user['displaygroupid'] = 0;
}
$userdm->save();
unset($userdm);
log_admin_action(!empty($user['username']) ? 'username = ' . $user['username'] : 'userid = ' . $vbulletin->GPC['userid']);
define('CP_REDIRECT', 'banning.php');
print_stop_message('lifted_ban_on_user_x_successfully', "<b>$user[username]</b>");
}
// #############################################################################
// ban a user
if ($_POST['do'] == 'dobanuser')
{
$vbulletin->input->clean_array_gpc('p', array(
'usergroupid' => TYPE_INT,
'period' => TYPE_STR,
'reason' => TYPE_NOHTML
));
示例10: print_stop_message
}
print_stop_message('saved_moderator_x_successfully', implode('; ', $successnames));
}
// ###################### Start Remove moderator #######################
if ($_REQUEST['do'] == 'remove') {
$vbulletin->input->clean_array_gpc('r', array('redir' => TYPE_STR));
$hidden = array('redir' => $vbulletin->GPC['redir']);
print_delete_confirmation('moderator', $vbulletin->GPC['moderatorid'], 'moderator', 'kill', 'moderator', $hidden);
}
// ###################### Start Kill moderator #######################
if ($_POST['do'] == 'kill') {
$mod = $db->query_first("\n\t\tSELECT moderator.*, user.username\n\t\tFROM " . TABLE_PREFIX . "moderator AS moderator\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid)\n\t\tWHERE moderatorid = " . $vbulletin->GPC['moderatorid']);
if (!$mod) {
print_stop_message('invalid_moderator_specified');
}
log_admin_action('username = ' . $mod['username'] . ', userid = ' . $mod['userid']);
$moddata =& datamanager_init('Moderator', $vbulletin, ERRTYPE_CP);
$moddata->set_existing($mod);
$moddata->delete(true);
$vbulletin->input->clean_array_gpc('p', array('redir' => TYPE_STR));
if ($vbulletin->GPC['redir'] == 'modlist') {
define('CP_REDIRECT', 'moderator.php?do=showlist');
} else {
if ($vbulletin->GPC['redir'] == 'showmods') {
define('CP_REDIRECT', 'moderator.php?do=showmods&f=' . $mod['forumid']);
} else {
define('CP_REDIRECT', 'forum.php');
}
}
print_stop_message('deleted_moderator_successfully');
}
示例11: intval
// Searching for entries by a particular user
if ($mybb->input['uid']) {
$where .= " AND uid='" . intval($mybb->input['uid']) . "'";
}
// Searching for entries in a specific module
if ($mybb->input['fid'] > 0) {
$where .= " AND fid='" . $db->escape_string($mybb->input['fid']) . "'";
}
$db->delete_query("moderatorlog", $where);
$num_deleted = $db->affected_rows();
$plugins->run_hooks("admin_tools_modlog_prune_commit");
if (!is_array($forum_cache)) {
$forum_cache = cache_forums();
}
// Log admin action
log_admin_action($mybb->input['older_than'], $mybb->input['uid'], $mybb->input['fid'], $num_deleted, $forum_cache[$mybb->input['fid']]['name']);
flash_message($lang->success_pruned_mod_logs, 'success');
admin_redirect("index.php?module=tools/modlog");
}
$page->add_breadcrumb_item($lang->prune_mod_logs, "index.php?module=tools/modlog&action=prune");
$page->output_header($lang->prune_mod_logs);
$page->output_nav_tabs($sub_tabs, 'prune_mod_logs');
// Fetch filter options
$sortbysel[$mybb->input['sortby']] = 'selected="selected"';
$ordersel[$mybb->input['order']] = 'selected="selected"';
$user_options[''] = $lang->all_moderators;
$user_options['0'] = '----------';
$query = $db->query("\n\t\tSELECT DISTINCT l.uid, u.username\n\t\tFROM " . TABLE_PREFIX . "moderatorlog l\n\t\tLEFT JOIN " . TABLE_PREFIX . "users u ON (l.uid=u.uid)\n\t\tORDER BY u.username ASC\n\t");
while ($user = $db->fetch_array($query)) {
$user_options[$user['uid']] = $user['username'];
}
示例12: print_r
if (vB_Bitfield_Builder::build(false) !== false) {
$myobj =& vB_Bitfield_Builder::init();
} else {
echo "<strong>error</strong>\n";
print_r(vB_Bitfield_Builder::fetch_errors());
}
foreach ($myobj->data['ugp']['adminpermissions'] as $title => $values) {
// don't show settings that have a group for the usergroup page
if (empty($values['group'])) {
$ADMINPERMISSIONS["{$title}"] = $values['value'];
$permsphrase["{$title}"] = $vbphrase["{$values['phrase']}"];
}
}
$vbulletin->input->clean_array_gpc('p', array('oldpermissions' => TYPE_INT, 'adminpermissions' => TYPE_ARRAY_INT));
require_once DIR . '/includes/functions_misc.php';
log_admin_action(iif($user, "user id = {$user['userid']} ({$user['username']})" . iif($_POST['do'] == 'update', " (" . $vbulletin->GPC['oldpermissions'] . " » " . convert_array_to_bits($vbulletin->GPC['adminpermissions'], $ADMINPERMISSIONS) . ")")));
// #############################################################################
if (empty($_REQUEST['do'])) {
$_REQUEST['do'] = 'modify';
}
// #############################################################################
if ($_POST['do'] == 'update') {
$vbulletin->input->clean_array_gpc('p', array('cssprefs' => TYPE_STR, 'dismissednews' => TYPE_STR));
foreach ($vbulletin->GPC['adminpermissions'] as $key => $value) {
$admindm->set_bitfield('adminpermissions', $key, $value);
}
($hook = vBulletinHook::fetch_hook('admin_permissions_process')) ? eval($hook) : false;
$admindm->set('cssprefs', $vbulletin->GPC['cssprefs']);
$admindm->set('dismissednews', $vbulletin->GPC['dismissednews']);
$admindm->save();
define('CP_REDIRECT', "adminpermissions.php?" . $vbulletin->session->vars['sessionurl'] . "#user{$user['userid']}");
示例13: DEFINE
// double output buffering does some weird things, so turn it off in these three cases
DEFINE('NOZIP', 1);
}
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('style');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/adminfunctions_template.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminstyles')) {
print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('templateid' => TYPE_INT, 'dostyleid' => TYPE_INT));
// ############################# LOG ACTION ###############################
log_admin_action(!empty($vbulletin->GPC['templateid']) ? 'template id = ' . $vbulletin->GPC['templateid'] : !empty($vbulletin->GPC['dostyleid']) ? 'style id = ' . $vbulletin->GPC['dostyleid'] : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
if (empty($_REQUEST['do'])) {
$_REQUEST['do'] = 'modify';
} else {
$nozipDos = array('inserttemplate', 'rebuild', 'kill', 'insertstyle', 'killstyle', 'updatestyle');
if (in_array($_REQUEST['do'], $nozipDos)) {
$vbulletin->nozip = true;
}
}
$full_product_info = fetch_product_list(true);
if ($_REQUEST['do'] != 'download') {
print_cp_header($vbphrase['style_manager'], iif($_REQUEST['do'] == 'files', 'js_fetch_style_title()'));
?>
示例14: error_reporting
\*======================================================================*/
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile$ - $Revision: 35402 $');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('advertising', 'notice');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
// ############################# LOG ACTION ###############################
if (!can_administer('canadminads')) {
print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('adid' => TYPE_UINT));
log_admin_action($vbulletin->GPC['adid'] != 0 ? "ad id = " . $vbulletin->GPC['adid'] : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['advertising']);
if (!in_array($_REQUEST['do'], array('add', 'edit', 'update', 'delete', 'remove', 'locate', 'flipcoin'))) {
if (!empty($_REQUEST['adid'])) {
$_REQUEST['do'] = 'edit';
} else {
$_REQUEST['do'] = 'modify';
}
}
// initialize some data storage
$ad_locations = array();
// $ad_locations[group_displayorder][group_key][location_displayorder][location_key][option(IE: cp_width, cp_height, etc.)] = value;
$ad_cache = array();
示例15: elseif
}
$plugins->run_hooks("newpoints_admin_maintenance_reset_start");
} elseif ($mybb->input['action'] == 'reconstruct') {
$plugins->run_hooks("newpoints_admin_maintenance_reconstruct_start");
if ($mybb->input['no']) {
admin_redirect("index.php?module=newpoints-maintenance");
}
if ($mybb->request_method == "post") {
if (!isset($mybb->input['my_post_key']) || $mybb->post_code != $mybb->input['my_post_key']) {
$mybb->request_method = "get";
flash_message($lang->newpoints_error, 'error');
admin_redirect("index.php?module=newpoints-maintenance");
}
newpoints_undo_template_edits();
newpoints_do_template_edits();
log_admin_action($lang->newpoints_reconstruct_done);
flash_message($lang->newpoints_reconstructed, 'success');
admin_redirect('index.php?module=newpoints-maintenance');
} else {
$mybb->input['per_page'] = intval($mybb->input['per_page']);
$form = new Form("index.php?module=newpoints-maintenance&action=reconstruct&my_post_key={$mybb->post_code}", 'post');
echo "<div class=\"confirm_action\">\n";
echo "<p>{$lang->newpoints_reconstructconfirm}</p>\n";
echo "<br />\n";
echo "<p class=\"buttons\">\n";
echo $form->generate_submit_button($lang->yes, array('class' => 'button_yes'));
echo $form->generate_submit_button($lang->no, array("name" => "no", 'class' => 'button_no'));
echo "</p>\n";
echo "</div>\n";
$form->end();
}