ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-17 17:22:31
Editing: Result.php
Cancel
Save Changes
<?php /** * Class holds authentication results * @package Am_Auth */ class Am_Auth_Result { const SUCCESS = 1; const INVALID_INPUT = -1; const WRONG_CREDENTIALS = -2; const INTERNAL_ERROR = -3; const FAILURE_ATTEMPTS_VIOLATION = -4; const LOCKED = -5; const USER_NOT_FOUND = -6; const NOT_APPROVED = 7; protected $code; protected $message; function __construct($code, $message = null, $params = array()){ $this->code = $code; if ($message === null) $message = $this->_getMessage($code); $this->message = $message; $this->params = $params; foreach ($params as $k => $v) $this->$k = $v; } public function getCode() { return $this->code; } protected function _getMessage($code) { switch ($code) { case self::SUCCESS: return null; case self::INVALID_INPUT: return ___('Please login'); case self::INTERNAL_ERROR: return ___('Internal Error'); case self::FAILURE_ATTEMPTS_VIOLATION: return ___('Please wait %d seconds before next login attempt', 90); case self::LOCKED: return ___("Authentication problem, please contact website administator"); case self::NOT_APPROVED: return ___('Your account is not approved yet. You will be notified by email when site administrator review your account and enable access.'); case self::USER_NOT_FOUND: case self::WRONG_CREDENTIALS: default: return ___('The user name or password is incorrect'); } } public function getMessage() { return $this->message; } /** * @return bool */ public function isValid() { return $this->code == self::SUCCESS; } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete