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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/app/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App;

use 
Illuminate\Database\Eloquent\Model;

class 
Term extends Model
{
  public function 
meta()
    {
        return     
$this->hasOne('App\Meta','term_id','id');
    }



    public function 
categories()
    {
        return 
$this->belongsToMany('App\Category','postcategories','term_id','category_id')->where('type','category');
    }
    public function 
brands()
    {
        return 
$this->belongsToMany('App\Category','postcategories','term_id','category_id')->where('type','brand');
    }

    public function 
medias()
    {
        return 
$this->belongsToMany('App\Media','postmedia','term_id','media_id');
    }

    public function 
product_categories()
    {
         return 
$this->hasMany('App\Postcategory','term_id')->where('type','product_category')->with('category')->select('id','term_id','category_id','type');
    }

    public function 
post_categories()
    {
        return 
$this->hasMany('App\Postcategory');
    }

    public function 
product_brand()
    {
         return 
$this->hasOne('App\Postcategory','term_id')->where('type','brand')->with('category')->select('id','term_id','category_id','type');
    }

    public function 
postcategory()
    {
        return 
$this->hasMany('App\Postcategory','term_id');
    }
     
    
    public function 
Productcategory()
    {
        return 
$this->hasMany('App\Postcategory','term_id')->where('type','product_category');
    }

    public function 
category()
    {
        return 
$this->hasOne('App\Postcategory')->whereHas('category')->with('category');
    }

    public function 
Brand()
    {
        return 
$this->hasOne('App\Postcategory','term_id')->where('type','brand');
    }

      

    public function 
user()
    {
        return 
$this->belongsTo('App\User')->select('name','id');
    }

    
    
    public function 
seo()
    {
        return 
$this->hasOne('App\Meta','term_id')->where('key','seo');
    }

    public function 
affiliate()
    {
        return 
$this->hasOne('App\Meta','term_id')->where('key','affiliate');
    }



    public function 
content()
    {
        return 
$this->hasOne('App\Meta','term_id')->where('key','content');
    }
    
    public function 
excerpt()
    {
        return 
$this->hasOne('App\Meta','term_id')->where('key','excerpt');
    }

    
    

    public function 
attributes()
    {
        return 
$this->hasMany('App\Attribute','term_id')->with('attribute','variation');
    }
    public function 
attribute()
    {
        return 
$this->hasOne('App\Attribute','term_id')->with('attribute','variation');
    }

    public function 
attributes_relation()
    {
        return 
$this->hasMany('App\Attribute','term_id');
    }

    public function 
files()
    {
        return 
$this->hasMany('App\File','term_id');
    }


    public function 
preview()
    {
        return 
$this->hasOne('App\Postmedia')->with('media');
    }

    public function 
order()
    {
        return 
$this->hasMany('App\Orderitem');
    }

    public function 
reviews()
    {
        return 
$this->hasMany('App\Models\Review');
    }
    
    public function 
price()
    {
        return 
$this->hasOne('App\Models\Price');
    }
    public function 
stock()
    {
        return 
$this->hasOne('App\Stock');
    }
    
    public function 
options()
    {
        return 
$this->hasMany('App\Models\Termoption')->where('type',1)->with('childrenCategories');
    }
    public function 
termoption()
    {
        return 
$this->hasMany('App\Models\Termoption')->where('type',0);
    }
    

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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