Ignore:
Timestamp:
12/05/13 20:36:36 (6 years ago)
Author:
mistic100
Message:

fix security problem, fix sql fatal error, try to fix display on smartpocket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/main.inc.php

    r25655 r25791  
    1010 
    1111defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 
     12 
    1213 
    1314// +-----------------------------------------------------------------------+ 
     
    3132add_event_handler('init', 'admintools_init'); 
    3233 
    33 if (!defined('IN_ADMIN')) 
    34 { 
    35   add_event_handler('loc_after_page_header', 'admintools_add_public_controller'); 
    36   add_event_handler('loc_begin_picture', 'admintools_save_picture'); 
    37   add_event_handler('loc_begin_index', 'admintools_save_category'); 
    38 } 
    39  
    4034add_event_handler('user_init', array(&$MultiView, 'user_init')); 
    4135add_event_handler('init', array(&$MultiView, 'init')); 
     
    4741function admintools_init() 
    4842{ 
     43  global $MultiView; 
     44   
     45  if (!defined('IN_ADMIN') && $MultiView->is_admin()) 
     46  { 
     47    add_event_handler('loc_after_page_header', 'admintools_add_public_controller'); 
     48    add_event_handler('loc_begin_picture', 'admintools_save_picture'); 
     49    add_event_handler('loc_begin_index', 'admintools_save_category'); 
     50  } 
     51   
     52  load_language('plugin.lang', ADMINTOOLS_PATH); 
     53 
    4954  // global $conf; 
    5055 
     
    5257  // $maintain = new AdminTools_maintain(ADMINTOOLS_ID); 
    5358  // $maintain->autoUpdate(ADMINTOOLS_VERSION, 'install'); 
    54  
    55   load_language('plugin.lang', ADMINTOOLS_PATH); 
    56  
     59   
    5760  // $conf['AdminTools'] = unserialize($conf['AdminTools']); 
    5861} 
Note: See TracChangeset for help on using the changeset viewer.