Пример #1
0
    $userlist = array('no_value' => $vbphrase['all_log_entries']);
    while ($user = $db->fetch_array($users)) {
        $userlist["{$user['userid']}"] = $user['username'];
    }
    print_form_header('modlog', 'view');
    print_table_header($vbphrase['moderator_log_viewer']);
    print_input_row($vbphrase['log_entries_to_show_per_page'], 'perpage', 15);
    print_select_row($vbphrase['show_only_entries_generated_by'], 'userid', $userlist);
    print_time_row($vbphrase['start_date'], 'startdate', 0, 0);
    print_time_row($vbphrase['end_date'], 'enddate', 0, 0);
    if (count($products = fetch_product_list()) > 1) {
        print_select_row($vbphrase['product'], 'product', array('' => $vbphrase['all_products']) + $products);
    }
    print_select_row($vbphrase['order_by'], 'orderby', array('date' => $vbphrase['date'], 'user' => $vbphrase['username']), 'date');
    print_submit_row($vbphrase['view'], 0);
    if (can_access_logs($vbulletin->config['SpecialUsers']['canpruneadminlog'], 0, '')) {
        print_form_header('modlog', 'prunelog');
        print_table_header($vbphrase['prune_moderator_log']);
        print_select_row($vbphrase['remove_entries_logged_by_user'], 'userid', $userlist);
        if (count($products) > 1) {
            print_select_row($vbphrase['product'], 'product', array('' => $vbphrase['all_products']) + $products);
        }
        print_input_row($vbphrase['remove_entries_older_than_days'], 'daysprune', 30);
        print_submit_row($vbphrase['prune_log_entries'], 0);
    }
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
|| # CVS: $RCSfile$ - $Revision: 26275 $
Пример #2
0
        $perpage_options = array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 40 => 40, 50 => 50, 100 => 100);
        if (!$vbulletin->options['enableapilog']) {
            print_warning_table($vbphrase['apilog_disabled_options']);
        }
        print_form_header('apilog', 'view');
        print_table_header($vbphrase['api_log_viewer']);
        print_select_row($vbphrase['log_entries_to_show_per_page'], 'perpage', $perpage_options, 15);
        print_select_row($vbphrase['show_only_entries_generated_by_apiclientname'], 'apiclientname', $clientnamelist, '-1');
        print_select_row($vbphrase['show_only_entries_related_to_remembered_user'], 'userid', $userlist, '-1');
        print_input_row($vbphrase['api_client_id'], 'apiclientid', '', true, 10);
        print_input_row($vbphrase['api_client_uniqueid'], 'apiclientuniqueid', '', true, 30);
        print_time_row($vbphrase['start_date'], 'startdate', 0, 0);
        print_time_row($vbphrase['end_date'], 'enddate', 0, 0);
        print_select_row($vbphrase['order_by_gcpglobal'], 'orderby', array('date' => $vbphrase['date'], 'user' => $vbphrase['user'], 'clientname' => $vbphrase['apiclientname']), 'date');
        print_submit_row($vbphrase['view'], 0);
        if (can_access_logs($vb5_config['SpecialUsers']['canpruneadminlog'], 1)) {
            print_form_header('apilog', 'prunelog');
            print_table_header($vbphrase['prune_api_log']);
            print_input_row($vbphrase['remove_entries_logged_by_apiclientid'], 'apiclientid');
            print_input_row($vbphrase['remove_entries_older_than_days'], 'daysprune', 30);
            print_submit_row($vbphrase['prune_api_log'], 0);
        } else {
            echo '<p>' . $vbphrase['control_panel_log_pruning_permission_restricted'] . '</p>';
        }
    }
}
// ###################### Start view client #######################
if ($_REQUEST['do'] == 'viewclient') {
    $vbulletin->input->clean_array_gpc('r', array('apiclientid' => vB_Cleaner::TYPE_UINT));
    if (!$vbulletin->GPC['apiclientid'] or !($client = vB::getDbAssertor()->getRow('api_fetchclientbyid', array('apiclientid' => $vbulletin->GPC['apiclientid'])))) {
        print_stop_message2(array('invalidid', 'apiclientid'));