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 Pagekit\System\Controller; use Pagekit\Application as App; use Pagekit\A..
Decoded Output download
<?php
namespace Pagekit\System\Controller;
use Pagekit\Application as App;
use Pagekit\Auth\Auth;
use Pagekit\User\Model\User;
class AdminController
{
/**
* @Access(admin=true)
*/
public function indexAction()
{
return App::redirect('@dashboard');
}
/**
* @Route("/admin/login", defaults={"_maintenance"=true})
* @Request({"redirect": "string", "message": "string"})
*/
public function loginAction($redirect = '', $message = '')
{
if (App::user()->isAuthenticated()) {
return App::redirect('@system');
}
return [
'$view' => [
'title' => __('Login'),
'name' => 'system/theme:views/login.php',
'layout' => false
],
'last_username' => App::session()->get(Auth::LAST_USERNAME),
'redirect' => $redirect ?: App::url('@system'),
'message' => $message
];
}
/**
* @Access(admin=true)
* @Request({"order": "array"})
*/
public function adminMenuAction($order)
{
if (!$order) {
App::abort(400, __('Missing order data.'));
}
$user = User::find(App::user()->id);
$user->set('admin.menu', $order);
$user->save();
return ['message' => __('Order saved.')];
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\System\Controller;
use Pagekit\Application as App;
use Pagekit\Auth\Auth;
use Pagekit\User\Model\User;
class AdminController
{
/**
* @Access(admin=true)
*/
public function indexAction()
{
return App::redirect('@dashboard');
}
/**
* @Route("/admin/login", defaults={"_maintenance"=true})
* @Request({"redirect": "string", "message": "string"})
*/
public function loginAction($redirect = '', $message = '')
{
if (App::user()->isAuthenticated()) {
return App::redirect('@system');
}
return [
'$view' => [
'title' => __('Login'),
'name' => 'system/theme:views/login.php',
'layout' => false
],
'last_username' => App::session()->get(Auth::LAST_USERNAME),
'redirect' => $redirect ?: App::url('@system'),
'message' => $message
];
}
/**
* @Access(admin=true)
* @Request({"order": "array"})
*/
public function adminMenuAction($order)
{
if (!$order) {
App::abort(400, __('Missing order data.'));
}
$user = User::find(App::user()->id);
$user->set('admin.menu', $order);
$user->save();
return ['message' => __('Order saved.')];
}
}
Function Calls
None |
Stats
MD5 | c7372bb20852cac63280c0d05697b158 |
Eval Count | 0 |
Decode Time | 97 ms |