Changeset 8126 for trunk/plugins


Ignore:
Timestamp:
Dec 14, 2010, 2:47:24 PM (13 years ago)
Author:
patdenice
Message:

feature 2060: Remove adviser mode.
First commit: only php files.

Location:
trunk/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.php

    r5272 r8126  
    165165  case 'tpl':
    166166    // New file form creation
    167     if ($newfile_page and !is_adviser())
     167    if ($newfile_page)
    168168    {
    169169      $filename = isset($_POST['tpl_name']) ? $_POST['tpl_name'] : '';
     
    281281// |                           Load backup file
    282282// +-----------------------------------------------------------------------+
    283 if (isset($_POST['restore']) and !is_adviser())
     283if (isset($_POST['restore']))
    284284{
    285285  $edited_file = $_POST['edited_file'];
     
    293293// |                            Save file
    294294// +-----------------------------------------------------------------------+
    295 if (isset($_POST['submit']) and !is_adviser())
     295if (isset($_POST['submit']))
    296296{
    297297  if (!is_webmaster())
  • trunk/plugins/admin_multi_view/controller.php

    r8012 r8126  
    3131if ( isset($_GET['view_as']) )
    3232{
    33   if ( is_adviser() and $user['id']!=$_GET['view_as'] and $conf['guest_id']!=$_GET['view_as'])
    34     die('security error');
    3533  if ($user['id']===$_GET['view_as'])
    3634    pwg_unset_session_var( 'multiview_as' );
     
    112110$query = '
    113111SELECT '.$conf['user_fields']['id'].' AS id,'.$conf['user_fields']['username'].' AS username
    114 FROM '.USERS_TABLE;
    115 if (is_adviser())
    116 {
    117   $query .='
    118   WHERE '.$conf['user_fields']['id']. ' IN ('.$user['id'].','.$conf['guest_id'].')
    119 ';
    120 }
    121 $query .='
     112FROM '.USERS_TABLE.'
    122113  ORDER BY CONVERT('.$conf['user_fields']['username'].',CHAR)
    123114;';
Note: See TracChangeset for help on using the changeset viewer.