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 $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1; // Check user..

Decoded Output download

<?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;

// Check user to ensure they are admin
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
  header("HTTP/1.1 404 Page not found");
  die("404 Page not found");
}

// Some defaults
$iLimit = 10;
$smarty->assign('LIMIT', $iLimit);
empty($_REQUEST['invitersstart']) ? $invitersstart = 0 : $invitersstart = $_REQUEST['invitersstart'];

// Fetching invitation Informations
if (!$setting->getValue('disable_invitations')) {
  // get last 10 Inviters
  $aTopInviters = $user->getTopInviters($iLimit, $invitersstart);
  $smarty->assign("TOPINVITERS", $aTopInviters);
}

// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
 ?>

Did this file decode correctly?

Original Code

<?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;

// Check user to ensure they are admin
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
  header("HTTP/1.1 404 Page not found");
  die("404 Page not found");
}

// Some defaults
$iLimit = 10;
$smarty->assign('LIMIT', $iLimit);
empty($_REQUEST['invitersstart']) ? $invitersstart = 0 : $invitersstart = $_REQUEST['invitersstart'];

// Fetching invitation Informations
if (!$setting->getValue('disable_invitations')) {
  // get last 10 Inviters
  $aTopInviters = $user->getTopInviters($iLimit, $invitersstart);
  $smarty->assign("TOPINVITERS", $aTopInviters);
}

// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");

Function Calls

cfip 1

Variables

None

Stats

MD5 c5c5c30aeb039e4c8c60cec325af49f2
Eval Count 0
Decode Time 105 ms