Changeset 8126 for trunk/include
- Timestamp:
- Dec 14, 2010, 2:47:24 PM (14 years ago)
- Location:
- trunk/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r7501 r8126 208 208 } 209 209 210 if (is_adviser())211 {212 $header_msgs[] = l10n('Adviser mode enabled');213 }214 215 210 if (count($header_msgs) > 0) 216 211 { -
trunk/include/functions_user.inc.php
r6660 r8126 1320 1320 1321 1321 /* 1322 * Return if current user is an adviser1323 * @return bool1322 * Adviser status is depreciated from piwigo 2.2 1323 * @return false 1324 1324 */ 1325 1325 function is_adviser() 1326 1326 { 1327 global $user; 1328 1329 return ($user['adviser'] == 'true'); 1327 return false; 1330 1328 } 1331 1329 … … 1385 1383 else 1386 1384 { 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; 1395 1386 } 1396 1387 } -
trunk/include/template.class.php
r8075 r8126 354 354 355 355 $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', ''); 358 357 359 358 $save_compile_id = $this->smarty->compile_id; -
trunk/include/ws_functions.inc.php
r7782 r8126 893 893 function ws_images_setPrivacyLevel($params, &$service) 894 894 { 895 if (!is_admin() || is_adviser())895 if (!is_admin()) 896 896 { 897 897 return new PwgError(401, 'Access denied'); … … 936 936 // position 937 937 938 if (!is_admin() || is_adviser())938 if (!is_admin()) 939 939 { 940 940 return new PwgError(401, 'Access denied'); … … 1140 1140 1141 1141 global $conf; 1142 if (!is_admin() || is_adviser())1142 if (!is_admin()) 1143 1143 { 1144 1144 return new PwgError(401, 'Access denied'); … … 1209 1209 { 1210 1210 global $conf; 1211 if (!is_admin() || is_adviser())1211 if (!is_admin()) 1212 1212 { 1213 1213 return new PwgError(401, 'Access denied'); … … 1585 1585 function ws_categories_add($params, &$service) 1586 1586 { 1587 if (!is_admin() or is_adviser())1587 if (!is_admin()) 1588 1588 { 1589 1589 return new PwgError(401, 'Access denied'); … … 1609 1609 function ws_tags_add($params, &$service) 1610 1610 { 1611 if (!is_admin() or is_adviser())1611 if (!is_admin()) 1612 1612 { 1613 1613 return new PwgError(401, 'Access denied'); … … 1630 1630 global $conf; 1631 1631 1632 if (!is_admin() or is_adviser())1632 if (!is_admin()) 1633 1633 { 1634 1634 return new PwgError(401, 'Access denied'); … … 1706 1706 function ws_images_checkFiles($params, &$service) 1707 1707 { 1708 if (!is_admin() or is_adviser())1708 if (!is_admin()) 1709 1709 { 1710 1710 return new PwgError(401, 'Access denied'); … … 1791 1791 { 1792 1792 global $conf; 1793 if (!is_admin() || is_adviser())1793 if (!is_admin()) 1794 1794 { 1795 1795 return new PwgError(401, 'Access denied'); … … 2074 2074 { 2075 2075 global $conf; 2076 if (!is_admin() || is_adviser())2076 if (!is_admin()) 2077 2077 { 2078 2078 return new PwgError(401, 'Access denied'); … … 2148 2148 global $conf; 2149 2149 2150 if (!is_admin() or is_adviser())2150 if (!is_admin()) 2151 2151 { 2152 2152 return new PwgError(401, 'Access denied');
Note: See TracChangeset
for help on using the changeset viewer.