plugins/SpecialUserPrefs.php
changeset 836 f8199a8d6153
parent 835 146bc1daf498
child 893 b24601274cd2
equal deleted inserted replaced
835:146bc1daf498 836:f8199a8d6153
   757           case 'set_file':
   757           case 'set_file':
   758             // Hackish way to preserve the UNIX philosophy of reusing as much code as possible
   758             // Hackish way to preserve the UNIX philosophy of reusing as much code as possible
   759             if ( $action == 'set_http' )
   759             if ( $action == 'set_http' )
   760             {
   760             {
   761               // Check if this action is enabled
   761               // Check if this action is enabled
   762               if ( getConfig('avatar_upload_http', '1') !== '1' )
   762               if ( getConfig('avatar_upload_http', 1) !== 1 )
   763               {
   763               {
   764                 // non-localized, only appears on hack attempt
   764                 // non-localized, only appears on hack attempt
   765                 echo '<div class="error-box">Uploads over HTTP are disabled.</div>';
   765                 echo '<div class="error-box">Uploads over HTTP are disabled.</div>';
   766                 break;
   766                 break;
   767               }
   767               }
   797               // Response written. Proceed to validation...
   797               // Response written. Proceed to validation...
   798             }
   798             }
   799             else
   799             else
   800             {
   800             {
   801               // Check if this action is enabled
   801               // Check if this action is enabled
   802               if ( getConfig('avatar_upload_file', '1') !== '1' )
   802               if ( getConfig('avatar_upload_file', 1) !== 1 )
   803               {
   803               {
   804                 // non-localized, only appears on hack attempt
   804                 // non-localized, only appears on hack attempt
   805                 echo '<div class="error-box">Uploads from the browser are disabled.</div>';
   805                 echo '<div class="error-box">Uploads from the browser are disabled.</div>';
   806                 break;
   806                 break;
   807               }
   807               }