  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: $ |
| |
| 3 | + | $Id: administrators_log.php 1857 2009-03-01 02:41:14Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2007 osCommerce |
| |
| 8 | + | Copyright (c) 2009 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | This program is free software; you can redistribute it and/or modify |
| |
11 | 11 | | it under the terms of the GNU General Public License v2 (1991) |
| |
12 | 12 | | as published by the Free Software Foundation. |
| |
13 | 13 | | */ |
| |
14 | 14 | | |
  |
15 | | - | class osC_AdministratorsLog { |
| |
16 | | - | function getData($id) { |
| |
| 15 | + | class osC_AdministratorsLog_Admin { |
| |
| 16 | + | public static function getData($id) { |
|
17 | 17 | | global $osC_Database; |
| |
18 | 18 | | |
| |
19 | 19 | | $Qlog = $osC_Database->query('select al.id, al.module, al.module_action, al.module_id, al.action, a.user_name, unix_timestamp(al.datestamp) as datestamp from :table_administrators_log al, :table_administrators a where al.id = :id and al.administrators_id = a.id limit 1'); |
| |
|
|
 |
… |
|
29 | 29 | | return $data; |
| |
30 | 30 | | } |
| |
31 | 31 | | |
  |
32 | | - | function insert($module, $module_action, $module_id, $action, $log, $transaction_id) { |
| |
| 32 | + | public static function insert($module, $module_action, $module_id, $action, $log, $transaction_id) { |
|
33 | 33 | | global $osC_Database; |
| |
34 | 34 | | |
| |
35 | 35 | | if ( is_numeric($transaction_id) ) { |
| |
|
|
 |
… |
|
62 | 62 | | } |
| |
63 | 63 | | } |
| |
64 | 64 | | |
  |
65 | | - | function delete($id) { |
| |
| 65 | + | public static function delete($id) { |
  |
66 | 66 | | global $osC_Database; |
| |
67 | 67 | | |
| |
68 | 68 | | $Qlog = $osC_Database->query('delete from :table_administrators_log where id = :id'); |