Changeset 8126 for trunk/include


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

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

Location:
trunk/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r7501 r8126  
    208208}
    209209
    210 if (is_adviser())
    211 {
    212   $header_msgs[] = l10n('Adviser mode enabled');
    213 }
    214 
    215210if (count($header_msgs) > 0)
    216211{
  • trunk/include/functions_user.inc.php

    r6660 r8126  
    13201320
    13211321/*
    1322  * Return if current user is an adviser
    1323  * @return bool
     1322 * Adviser status is depreciated from piwigo 2.2
     1323 * @return false
    13241324*/
    13251325function is_adviser()
    13261326{
    1327   global $user;
    1328 
    1329   return ($user['adviser'] == 'true');
     1327  return false;
    13301328}
    13311329
     
    13851383  else
    13861384  {
    1387     if (defined('IN_ADMIN') and is_adviser())
    1388     {
    1389       return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
    1390     }
    1391     else
    1392     {
    1393       return $email_address;
    1394     }
     1385    return $email_address;
    13951386  }
    13961387}
  • trunk/include/template.class.php

    r8075 r8126  
    354354
    355355    $this->smarty->assign( 'ROOT_URL', get_root_url() );
    356     $this->smarty->assign( 'TAG_INPUT_ENABLED',
    357       ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''));
     356    $this->smarty->assign( 'TAG_INPUT_ENABLED', '');
    358357
    359358    $save_compile_id = $this->smarty->compile_id;
  • trunk/include/ws_functions.inc.php

    r7782 r8126  
    893893function ws_images_setPrivacyLevel($params, &$service)
    894894{
    895   if (!is_admin() || is_adviser() )
     895  if (!is_admin())
    896896  {
    897897    return new PwgError(401, 'Access denied');
     
    936936  // position
    937937
    938   if (!is_admin() || is_adviser() )
     938  if (!is_admin())
    939939  {
    940940    return new PwgError(401, 'Access denied');
     
    11401140
    11411141  global $conf;
    1142   if (!is_admin() || is_adviser() )
     1142  if (!is_admin())
    11431143  {
    11441144    return new PwgError(401, 'Access denied');
     
    12091209{
    12101210  global $conf;
    1211   if (!is_admin() || is_adviser() )
     1211  if (!is_admin())
    12121212  {
    12131213    return new PwgError(401, 'Access denied');
     
    15851585function ws_categories_add($params, &$service)
    15861586{
    1587   if (!is_admin() or is_adviser())
     1587  if (!is_admin())
    15881588  {
    15891589    return new PwgError(401, 'Access denied');
     
    16091609function ws_tags_add($params, &$service)
    16101610{
    1611   if (!is_admin() or is_adviser())
     1611  if (!is_admin())
    16121612  {
    16131613    return new PwgError(401, 'Access denied');
     
    16301630  global $conf;
    16311631 
    1632   if (!is_admin() or is_adviser())
     1632  if (!is_admin())
    16331633  {
    16341634    return new PwgError(401, 'Access denied');
     
    17061706function ws_images_checkFiles($params, &$service)
    17071707{
    1708   if (!is_admin() or is_adviser())
     1708  if (!is_admin())
    17091709  {
    17101710    return new PwgError(401, 'Access denied');
     
    17911791{
    17921792  global $conf;
    1793   if (!is_admin() || is_adviser() )
     1793  if (!is_admin())
    17941794  {
    17951795    return new PwgError(401, 'Access denied');
     
    20742074{
    20752075  global $conf;
    2076   if (!is_admin() || is_adviser() )
     2076  if (!is_admin())
    20772077  {
    20782078    return new PwgError(401, 'Access denied');
     
    21482148  global $conf;
    21492149
    2150   if (!is_admin() or is_adviser())
     2150  if (!is_admin())
    21512151  {
    21522152    return new PwgError(401, 'Access denied');
Note: See TracChangeset for help on using the changeset viewer.