Пример #1
0
<?php

theme::header_start('Cache', 'Manage "' . $current_cache . '" cache.');
Plugin_search_sort::field();
o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Cached Entries', 'Do you want to delete all cached entries?', ['redirect' => 'true']);
theme::header_end();
theme::table_start(['Name', 'Size' => 'text-center', 'Created', 'Expires', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    $record = (object) $record;
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row('text-center');
    theme::e(byte_format($record->size));
    $total_bytes += $record->size;
    theme::table_row();
    theme::e(date('m/d/y g:ia', $record->date));
    theme::table_row();
    theme::e(date('m/d/y g:ia', $record->date + $ttl_txt));
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . urlencode($record->name));
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
if ($total_bytes > 0) {
    echo '<p><strong>Total Size <span class="badge">' . byte_format($total_bytes) . '</span></strong></p>';
}
if ($ttl_txt > 0) {
    echo '<p><strong>Time to live <span class="badge">~' . seconds2human($ttl_txt) . '</span></strong></p>';
}
Пример #2
0
<?php

theme::header_start('Lockouts', 'Login Max Attempts <span class="badge badge-info">' . $attempts . '</span> Login Attempts Expire After <span class="badge badge-info">' . seconds2human($expire) . '</span>');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Login Attempts', 'Do you want to remove all login attempts?', ['redirect' => 'true']);
}
theme::header_end();
theme::table_start(['IP Address', 'Login', 'Time', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->ip_address);
    theme::table_row();
    theme::e($record->login);
    theme::table_row();
    theme::date($record->time);
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
Пример #3
0
<?php

theme::header_start('Failed Logins', 'View failed logins');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/flush/90', '90 Days+', 'trash', 'Failed Logins', 'Do you want to delete failed logins greater then 90 days', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/flush/30', '30 Days+', 'trash', 'Failed Logins', 'Do you want to delete failed logins greater then 30 days?', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Failed Logins', 'Do you want to delete all failed logins?', ['redirect' => 'true']);
}
theme::header_end();
theme::table_start(['IP Address', 'Login', 'Time'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->ip_address);
    theme::table_row();
    theme::e($record->login);
    theme::table_row();
    theme::date($record->time);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
Пример #4
0
<?php

theme::header_start('Successful Logins', 'View successful logins');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/flush/90', '90 Days+', 'trash', 'Successful Logins', 'Do you want to delete successful logins greater then 90 days', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/flush/30', '30 Days+', 'trash', 'Successful Logins', 'Do you want to delete successful logins greater then 30 days?', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Successful Logins', 'Do you want to delete all successful logins?', ['redirect' => 'true']);
}
theme::header_end();
theme::table_start(['On', 'By', 'Email'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row();
    theme::smart_model('o_user_model', $record->created_by, 'username');
    theme::table_row();
    theme::e($record->email);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
Пример #5
0
<?php

theme::header_start('Auto Logins', 'View saved auto logins.');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Auto Logins', 'Do you want to remove all saved auto logins?');
}
theme::header_end();
theme::table_start(['Key Id', 'User Id', 'User Agent', 'Last IP', 'Last Login', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->key_id);
    theme::table_row();
    theme::e($record->user_id);
    theme::table_row();
    theme::e($record->user_agent);
    theme::table_row();
    theme::e($record->last_ip);
    theme::table_row();
    theme::date($record->last_login);
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();