  |
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_Content_Administrators_log extends osC_Template { |
| |
| 15 | + | class osC_Application_Administrators_log extends osC_Template_Admin { |
|
16 | 16 | | |
  |
17 | | - | /* Private variables */ |
| |
| 17 | + | /* Protected variables */ |
|
18 | 18 | | |
  |
19 | | - | var $_module = 'administrators_log', |
| |
20 | | - | $_page_title, |
| |
21 | | - | $_page_contents = 'main.php'; |
| |
| 19 | + | protected $_module = 'administrators_log', |
| |
| 20 | + | $_page_title, |
| |
| 21 | + | $_page_contents = 'main.php'; |
|
22 | 22 | | |
| |
23 | 23 | | /* Class constructor */ |
| |
24 | 24 | | |
  |
25 | | - | function osC_Content_Administrators_log() { |
| |
| 25 | + | function __construct() { |
|
26 | 26 | | global $osC_Language, $osC_MessageStack; |
| |
27 | 27 | | |
| |
28 | 28 | | $this->_page_title = $osC_Language->get('heading_title'); |
| |
|
|
 |
… |
|
54 | 54 | | $this->_page_contents = 'delete.php'; |
| |
55 | 55 | | |
| |
56 | 56 | | if ( isset($_POST['subaction']) && ($_POST['subaction'] == 'confirm') ) { |
  |
57 | | - | if ( osC_AdministratorsLog::delete($_GET['lID']) ) { |
| |
| 57 | + | if ( osC_AdministratorsLog_Admin::delete($_GET['lID']) ) { |
|
58 | 58 | | $osC_MessageStack->add($this->_module, $osC_Language->get('ms_success_action_performed'), 'success'); |
| |
59 | 59 | | } else { |
| |
60 | 60 | | $osC_MessageStack->add($this->_module, $osC_Language->get('ms_error_action_not_performed'), 'error'); |
| |
|
|
 |
… |
|
73 | 73 | | $error = false; |
| |
74 | 74 | | |
| |
75 | 75 | | foreach ($_POST['batch'] as $id) { |
  |
76 | | - | if ( !osC_AdministratorsLog::delete($id) ) { |
| |
| 76 | + | if ( !osC_AdministratorsLog_Admin::delete($id) ) { |
  |
77 | 77 | | $error = true; |
| |
78 | 78 | | break; |
| |
79 | 79 | | } |