Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Encore\Admin\Form\Field; use Encore\Admin\Form; class Captcha extends T..
Decoded Output download
<?php
namespace Encore\Admin\Form\Field;
use Encore\Admin\Form;
class Captcha extends Text
{
protected $rules = 'required|captcha';
protected $view = 'admin::form.captcha';
public function __construct($column, $arguments = [])
{
if (!class_exists(\Mews\Captcha\Captcha::class)) {
throw new \Exception('To use captcha field, please install [mews/captcha] first.');
}
$this->column = '__captcha__';
$this->label = trans('admin.captcha');
}
public function setForm(Form $form = null)
{
$this->form = $form;
$this->form->ignore($this->column);
return $this;
}
public function render()
{
$this->script = <<<EOT
$('#{$this->column}-captcha').click(function () {
$(this).attr('src', $(this).attr('src')+'?'+Math.random());
});
EOT;
return parent::render();
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Encore\Admin\Form\Field;
use Encore\Admin\Form;
class Captcha extends Text
{
protected $rules = 'required|captcha';
protected $view = 'admin::form.captcha';
public function __construct($column, $arguments = [])
{
if (!class_exists(\Mews\Captcha\Captcha::class)) {
throw new \Exception('To use captcha field, please install [mews/captcha] first.');
}
$this->column = '__captcha__';
$this->label = trans('admin.captcha');
}
public function setForm(Form $form = null)
{
$this->form = $form;
$this->form->ignore($this->column);
return $this;
}
public function render()
{
$this->script = <<<EOT
$('#{$this->column}-captcha').click(function () {
$(this).attr('src', $(this).attr('src')+'?'+Math.random());
});
EOT;
return parent::render();
}
}
Function Calls
None |
Stats
MD5 | d8f96f046deefa37f0cde38cf607ccae |
Eval Count | 0 |
Decode Time | 97 ms |