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 use Pagekit\Auth\Auth; return [ 'name' => 'system/login', 'label' => 'Lo..
Decoded Output download
<?php
use Pagekit\Auth\Auth;
return [
'name' => 'system/login',
'label' => 'Login',
'events' => [
'view.scripts' => function ($event, $scripts) use ($app) {
$scripts->register('widget-login', 'system/user:app/bundle/widget-login.js', ['~widgets', 'input-link']);
}
],
'render' => function ($widget) use ($app) {
$user = $app['user'];
$redirect = $widget->get($user->isAuthenticated() ? 'redirect_logout' : 'redirect_login') ?: $app['url']->current(true);
$last_username = $app['session']->get(Auth::LAST_USERNAME);
return $app['view']('system/user/widget-login.php', compact('widget', 'options', 'user', 'last_username', 'redirect'));
}
];
?>
Did this file decode correctly?
Original Code
<?php
use Pagekit\Auth\Auth;
return [
'name' => 'system/login',
'label' => 'Login',
'events' => [
'view.scripts' => function ($event, $scripts) use ($app) {
$scripts->register('widget-login', 'system/user:app/bundle/widget-login.js', ['~widgets', 'input-link']);
}
],
'render' => function ($widget) use ($app) {
$user = $app['user'];
$redirect = $widget->get($user->isAuthenticated() ? 'redirect_logout' : 'redirect_login') ?: $app['url']->current(true);
$last_username = $app['session']->get(Auth::LAST_USERNAME);
return $app['view']('system/user/widget-login.php', compact('widget', 'options', 'user', 'last_username', 'redirect'));
}
];
Function Calls
None |
Stats
MD5 | eeb18a7c3667580a517e3d4cff574dfa |
Eval Count | 0 |
Decode Time | 84 ms |