Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 104 lines (77 sloc) 4.421 kb
b674e7a @chrismeller Add a die() to the top of all the main admin files. This prevents the pa...
chrismeller authored
1 <?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
70a9f0a set eol-style = native
Matt Read authored
2 <?php include_once( 'header.php' ); ?>
3
5f3dc1a Put duplicated code into its own file. Let's call it the navigator. Also...
Richard Cockrum authored
4 <?php include( 'navigator.php' ); ?>
70a9f0a set eol-style = native
Matt Read authored
5
6 <form method="post" action="<?php URL::out('admin', array( 'page' => 'logs' ) ); ?>" class="buttonform">
7
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
8 <div class="container transparent item controls">
9
10 <input type="hidden" name="nonce" id="nonce" value="<?php echo $wsse['nonce']; ?>">
11 <input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>">
da278fc @lildude Renamed PasswordDigest to password_digest to comply with coding standard...
lildude authored
12 <input type="hidden" name="password_digest" id="password_digest" value="<?php echo $wsse['digest']; ?>">
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
13 <span class="checkboxandselected pct30">
14 <input type="checkbox" id="master_checkbox" name="master_checkbox">
15 <label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label>
16 </span>
17 <ul class="dropbutton">
18 <?php $page_actions = array(
19 'delete' => array('action' => 'itemManage.update(\'delete\');return false;', 'title' => _t('Delete Selected'), 'label' => _t('Delete Selected') ),
bd1f96d @lildude Added option to purge all log entries with a single click
lildude authored
20 'purge' => array('action' => 'itemManage.update(\'purge\');return false;', 'title' => _t('Purge Logs'), 'label' => _t('Purge Logs') ),
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
21 );
22 $page_actions = Plugins::filter('logs_manage_actions', $page_actions);
23 foreach( $page_actions as $page_action ) : ?>
24 <li><a href="*" onclick="<?php echo $page_action['action']; ?>" title="<?php echo $page_action['title']; ?>"><?php echo $page_action['label']; ?></a></li>
25 <?php endforeach; ?>
26 </ul>
27
28 </div>
29
70a9f0a set eol-style = native
Matt Read authored
30 <div class="container">
31
32 <div class="head clear">
33
34 <span class="checkbox pct5">&nbsp;</span>
35 <span class="time pct15"><?php _e('Date &amp; Time'); ?></span>
36 <span class="user pct15"><?php _e('User'); ?></span>
37 <span class="ip pct10"><?php _e('IP'); ?></span>
38 <span class="module pct10"><?php _e('Module'); ?></span>
39 <span class="type pct10"><?php _e('Type'); ?></span>
af1d7de @michaeltwofish On the admin logs page, change the width of the severity and message col...
michaeltwofish authored
40 <span class="severity pct10"><?php _e('Severity'); ?></span>
41 <span class="message pct25"><?php _e('Message'); ?></span>
70a9f0a set eol-style = native
Matt Read authored
42
43 </div>
44
45 <div class="item clear">
46 <span class="pct5">&nbsp;</span>
47 <span class="pct15"><?php echo Utils::html_select('date', $dates, $date, array( 'class'=>'pct90')); ?></span>
48 <span class="pct15"><?php echo Utils::html_select('user', $users, $user, array( 'class'=>'pct90')); ?></span>
49 <span class="pct10"><?php echo Utils::html_select('address', $addresses, $address, array( 'class'=>'pct90')); ?></span>
50 <span class="pct10"><?php echo Utils::html_select('module', $modules, $module, array( 'class'=>'pct90')); ?></span>
51 <span class="pct10"><?php echo Utils::html_select('type', $types, $type, array( 'class'=>'pct90')); ?></span>
af1d7de @michaeltwofish On the admin logs page, change the width of the severity and message col...
michaeltwofish authored
52 <span class="pct10"><?php echo Utils::html_select('severity', $severities, $severity, array( 'class'=>'pct90')); ?></span>
53 <span class="pct25"><input type="submit" name="filter" value="<?php _e('Filter'); ?>"></span>
70a9f0a set eol-style = native
Matt Read authored
54 </div>
55
87a124c @lildude Coding standards: placed space after control keyword
lildude authored
56 <?php if (isset($years)) { ?>
70a9f0a set eol-style = native
Matt Read authored
57 <div class="manage logs">
58
59 <?php $theme->display('logs_items'); ?>
60
61 </div>
62
63 <?php } else { ?>
64
65 <div class="item clear">
66
67 <span class="pct5">&nbsp;</span><span class="pct90"><?php _e('There are no logs to be displayed at this time.'); ?></span><span class="pct5">&nbsp;</span>
68
69 </div>
70 <?php } ?>
71
72 </div>
73
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
74 <div class="container transparent item controls">
75
76 <span class="checkboxandselected pct30">
77 <input type="checkbox" id="master_checkbox_2" name="master_checkbox_2">
78 <label class="selectedtext minor none" for="master_checkbox_2"><?php _e('None selected'); ?></label>
79 </span>
80 <ul class="dropbutton">
81 <?php $page_actions = array(
82 'delete' => array('action' => 'itemManage.update(\'delete\');return false;', 'title' => _t('Delete Selected'), 'label' => _t('Delete Selected') ),
bd1f96d @lildude Added option to purge all log entries with a single click
lildude authored
83 'purge' => array('action' => 'itemManage.update(\'purge\');return false;', 'title' => _t('Purge Logs'), 'label' => _t('Purge Logs') ),
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
84 );
85 $page_actions = Plugins::filter('logs_manage_actions', $page_actions);
86 foreach( $page_actions as $page_action ) : ?>
87 <li><a href="*" onclick="<?php echo $page_action['action']; ?>" title="<?php echo $page_action['title']; ?>"><?php echo $page_action['label']; ?></a></li>
88 <?php endforeach; ?>
89 </ul>
70a9f0a set eol-style = native
Matt Read authored
90
868aa47 @lildude Modified logs "Delete" button and behaviour to be extensible via plugins...
lildude authored
91 </div>
70a9f0a set eol-style = native
Matt Read authored
92
93 </form>
94
95 <script type="text/javascript">
96
97 itemManage.updateURL = habari.url.ajaxLogDelete;
98 itemManage.fetchURL = "<?php echo URL::get('admin_ajax', array('context' => 'logs')) ?>";
99 itemManage.fetchReplace = $('.logs');
100
101 </script>
102
103 <?php include('footer.php'); ?>
Something went wrong with that request. Please try again.