Ignore:
Timestamp:
Dec 5, 2013, 8:36:36 PM (10 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/include/MultiView.class.php

    r25655 r25791  
    113113      );
    114114
    115     if ($this->is_admin)
     115    // inactive on ws.php to allow AJAX admin tasks
     116    if ($this->is_admin && script_basename() != 'ws')
    116117    {
    117118      if ($this->data['view_as'] == 0)
     
    201202  public function init()
    202203  {
    203     if (isset($_GET['ato_purge_template']))
    204     {
    205       global $template;
    206       $template->delete_compiled_templates();
    207       FileCombiner::clear_combined_files();
     204    if ($this->is_admin)
     205    {
     206      if (isset($_GET['ato_purge_template']))
     207      {
     208        global $template;
     209        $template->delete_compiled_templates();
     210        FileCombiner::clear_combined_files();
     211      }
    208212    }
    209213  }
Note: See TracChangeset for help on using the changeset viewer.