policies.php 438 B

123456789101112131415
  1. <?php
  2. if (($_SESSION['userContext'] === 'user') && ($panel[$user]['SUSPENDED'] === 'yes') && ($_SESSION['POLICY_USER_VIEW_SUSPENDED'] === 'yes')) {
  3. $read_only='true';
  4. }
  5. if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['POLICY_SYSTEM_PROTECTED_ADMIN'] === 'yes')) {
  6. $read_only='true';
  7. }
  8. if ($read_only === 'true') {
  9. $display_mode='disabled';
  10. }
  11. ?>