!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/ecom1.picotech.app/public_html_ecom1/Modules/CMS/Http/Models/   drwxr-xr-x
Free 24.92 GB of 117.98 GB (21.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Slider.php (1.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package Slider Model
 * @author TechVillage <support@techvill.org>
 * @contributor Kabir Ahmed <[kabir.techvill@gmail.com]>
 * @created 01-05-2022
 */

namespace Modules\CMS\Http\Models;

use 
App\Models\Model;

class 
Slider extends Model
{

    
/**
     * Foreign key with Slider model
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    
public function slides()
    {
        return 
$this->hasMany(Slide::class);
    }

    
/**
     * Store Slider
     *
     * @param array $data
     * @return boolean
     */
    
public function store($data = [])
    {
        
$data['slug'] = \Str::slug($data['name']);
        if (
parent::insertGetId($data)) {
            return 
true;
        }
        return 
false;
    }
   
/**
     * Update Slider
     *
     * @param array $data
     * @return boolean
     */
    
public function updateData($data = [])
    {
        
$result $this->where('id'$data['id']);
        if (
$result->exists()) {
                if ( 
$result->update($data)) {
                return 
true;
            }
        }

        return 
false;
    }
    
/**
     * Delete Slider
     *
     * @param int $id
     * @return array $data
     */
    
public function remove($id null)
    {
        
$result $this->where('id'$id)->first();
        if (empty(
$result)) {
            
$data = ['status' => 'fail''message' => __('Slider does not found.')];
        } else {
            if (
$result->delete()) {
                
$data = ['status' => 'success''message' => __('Slider has been successfully deleted.')];
            } else {
                
$data = ['status' => 'fail''message' => __('Something went wrong.')];
            }
        }
        return 
$data;
    }
}

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