Differences

This shows you the differences between the selected revision and the current version of the page.

punbb13:extensions:pun_admin_log 2009/07/15 12:09 punbb13:extensions:pun_admin_log 2020/02/06 11:04 current
Line 1: Line 1:
-====== API for log events (pun_admin_log) ======+====== Logging of events(pun_admin_log) ======
[[punbb13:extensions#Official extensions|PunBB 1.3 official extension]] [[punbb13:extensions#Official extensions|PunBB 1.3 official extension]]
  * Status: **under development**   * Status: **under development**
-  * Current version: **[[http://punbb.informer.com/extensions/pun_admin_log/pun_admin_log.zip|1.0b]]**+  * Current version: **[[https://punbb.informer.com/extensions/pun_admin_log/pun_admin_log.zip|1.0]]**
===== General idea ===== ===== General idea =====
-Adds event logging and a GUI for browsing logs.+Logs a lot of forum's events.
===== Specification ===== ===== Specification =====
Line 13: Line 13:
==== List of actions ==== ==== List of actions ====
-  * Install and uninstall extensions +  * Installation and uninstallation of extensions 
-  * Enable and disable extensions +  * Enabling and disabling extensions 
-  * Change keys of Administration Settings +  * Changing keys of Administration Settings 
-  * Enable and disable keys of Administration Settings +  * Deletion of topics, posts, forums, categories 
-  * Delete topics and posts +  * Sticking, unsticking topics 
-  * Stick and unstick topics +  * Opening, closing topics 
-  * Open and close topics +  * Moving topics 
-  * Move topics +  * Merging topics 
-  * Change topics subject and message+  * Splitting posts 
 +  * Changing topic's subject and message.
==== Interface ==== ==== Interface ====
Line 29: Line 30:
    * Enable logging to database     * Enable logging to database
    * Path to log-file     * Path to log-file
 +  * "Events" page on management tab in administration menu.
==== Database ==== ==== Database ====
-Extension use tables of extension pun_admin_events+Extension uses the table of the extension [[punbb13:extensions:pun_admin_events]].
-==== Examples ====+Additional config values in the “config” table.  
 +^ conf_name ^ conf_value (default) ^ 
 +|  o_pun_admin_path_log_file  | FORUM_ROOT/extensions/pun_admin_log/forum.log | 
 +|  o_pun_admin_log_write_db  |1  | 
 +|  o_pun_admin_log_write_file  |1  |
-== Example 1 ==+==== Feature Requests ====
-The first example shows how to register actions on the page Administration -> Settings. Add this piece of code after line 239 of "<FORUM_ROOT>/admin/settings.php"+====== See also ====== 
 +  * [[extensions#official_extensions|PunBB official extensions]] 
 +====== Links ====== 
 +  * Trac tickets: :?: 
 +  * Browse code: 
 +    * Trac: [[https://punbb.informer.com/trac/browser/additions/punbb-1.3/extensions/pun_admin_log/|Source]], [[https://punbb.informer.com/trac/log/additions/punbb-1.3/extensions/pun_admin_log/|Log]] 
 +    * SVN: [[https://punbb.informer.com/svn/additions/punbb-1.3/extensions/pun_admin_log/|/svn/additions/punbb-1.3/extensions/pun_admin_log/]] 
 +  * Forums topic: :?: 
 +  * [[https://punbb.informer.com/extensions/|PunBB extension repository]]
-<code php> 
-if ($forum_config['o_pun_admin_log_write_db'] == '1' || $forum_config['o_pun_admin_log_write_file'] == '1') 
-{ 
- $action = 'Admin settings'; 
-  
- if (in_array($key, $str_actions)) 
- $comment = sprintf($lang_pun_admin_log['Key changed'], $key, $forum_config['o_'.$key], $input); 
- else if (in_array($key, $chbox_actions)) 
- $comment = sprintf(($input == '1' ? $lang_pun_admin_log['Key enabled'] : $lang_pun_admin_log['Key disabled']), 'o_'.$key); 
- else if (in_array($key, array_keys($radbox_actions))) 
- $comment = sprintf($lang_pun_admin_log['Key changed'], 'o_'.$key, $radbox_actions[$key][ $forum_config['o_'.$key] ], $radbox_actions[$key][ $input ]); 
-  
- if (isset($comment)) 
- { 
- if ($forum_config['o_pun_admin_log_write_db'] == '1') 
- pun_admin_event($action, $comment); 
-  
- if ($forum_config['o_pun_admin_log_write_file'] == '1') 
- $records_file .= record_log_file($action, $comment); 
- } 
-} 
-</code> 
====== Screenshots ====== ====== Screenshots ======
-{{:punbb13:extensions:pun_admin_log.png|}}+{{:punbb13:extensions:ext_pun_admin_log.png|}}

Personal Tools