Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1845
 
1857
 
1857
 
administrators_log.php
_> 11 <?php
  22 /*
<> 3 -  $Id: $
   3+  $Id: administrators_log.php 1857 2009-03-01 02:41:14Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2007 osCommerce
   8+  Copyright (c) 2009 osCommerce
99 
  1010   This program is free software; you can redistribute it and/or modify
  1111   it under the terms of the GNU General Public License v2 (1991)
  1212   as published by the Free Software Foundation.
  1313 */
  1414 
<> 15 -  class osC_Content_Administrators_log extends osC_Template {
   15+  class osC_Application_Administrators_log extends osC_Template_Admin {
1616 
<> 17 -/* Private variables */
   17+/* Protected variables */
1818 
<> 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';
2222 
  2323 /* Class constructor */
  2424 
<> 25 -    function osC_Content_Administrators_log() {
   25+    function __construct() {
2626       global $osC_Language, $osC_MessageStack;
  2727 
  2828       $this->_page_title = $osC_Language->get('heading_title');
     
 !
5454             $this->_page_contents = 'delete.php';
  5555 
  5656             if ( isset($_POST['subaction']) && ($_POST['subaction'] == 'confirm') ) {
<> 57 -              if ( osC_AdministratorsLog::delete($_GET['lID']) ) {
   57+              if ( osC_AdministratorsLog_Admin::delete($_GET['lID']) ) {
5858                 $osC_MessageStack->add($this->_module, $osC_Language->get('ms_success_action_performed'), 'success');
  5959               } else {
  6060                 $osC_MessageStack->add($this->_module, $osC_Language->get('ms_error_action_not_performed'), 'error');
     
 !
7373                 $error = false;
  7474 
  7575                 foreach ($_POST['batch'] as $id) {
<> 76 -                  if ( !osC_AdministratorsLog::delete($id) ) {
   76+                  if ( !osC_AdministratorsLog_Admin::delete($id) ) {
<_ 7777                     $error = true;
  7878                     break;
  7979                   }