plugins/admin/UserManager.php
changeset 966 2db0975aa31a
parent 937 b174cdb75bec
child 1081 745200a9cc2a
equal deleted inserted replaced
965:72b37471cce0 966:2db0975aa31a
   197           case 'set_file':
   197           case 'set_file':
   198             // Hackish way to preserve the UNIX philosophy of reusing as much code as possible
   198             // Hackish way to preserve the UNIX philosophy of reusing as much code as possible
   199             if ( $action == 'set_http' )
   199             if ( $action == 'set_http' )
   200             {
   200             {
   201               // Check if this action is enabled
   201               // Check if this action is enabled
   202               if ( getConfig('avatar_upload_http') !== '1' )
   202               if ( getConfig('avatar_upload_http', 1) !== 1 )
   203               {
   203               {
   204                 // non-localized, only appears on hack attempt
   204                 // non-localized, only appears on hack attempt
   205                 $errors[] = 'Uploads over HTTP are disabled.';
   205                 $errors[] = 'Uploads over HTTP are disabled.';
   206                 break;
   206                 break;
   207               }
   207               }
   237               // Response written. Proceed to validation...
   237               // Response written. Proceed to validation...
   238             }
   238             }
   239             else
   239             else
   240             {
   240             {
   241               // Check if this action is enabled
   241               // Check if this action is enabled
   242               if ( getConfig('avatar_upload_file') !== '1' )
   242               if ( getConfig('avatar_upload_file', 1) !== 1 )
   243               {
   243               {
   244                 // non-localized, only appears on hack attempt
   244                 // non-localized, only appears on hack attempt
   245                 $errors[] = 'Uploads from the browser are disabled.';
   245                 $errors[] = 'Uploads from the browser are disabled.';
   246                 break;
   246                 break;
   247               }
   247               }