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 // This file is protected by copyright law & provided under license. Copyright(C) 20..
Decoded Output download
require_once('pub.php');
require_once('adodb.php');
require_once('ckauth.php');
require_once('geturl.php');
require_once('pub_unit.php');
include("fckeditor/fckeditor.php");
header('Content-Type:text/html;charset=GB2312');
if($_GET['job'] == 'add'){
$smarty->display('judge_help_add.html');
}else if($_GET['action'] == 'add'){
$aname=sqli($_POST['aname']);
$acontent=sqli($_POST['acontent']);
$atype=sqli($_POST['atype']);
$sql="INSERT INTO `judge_helps` (`aname`, `acontent`, `atype`) VALUES ('".$aname."', '".$acontent."', '".$atype."')";
$conn->Execute($sql);
write_log($conn,$_SESSION['j_account'],'',$_SESSION['usertype']);
alert('','judge_help.php');
}else if($_GET['action'] == 'edit'){
$aid=sqli($_POST['aid']);
$aname=sqli($_POST['aname']);
$acontent=sqli($_POST['acontent']);
$atype=sqli($_POST['atype']);
$sql="UPDATE judge_helps SET aname='".$aname."', acontent='".$acontent."',atype='".$atype."' where aid=".$aid;
$conn->Execute($sql);
write_log($conn,$_SESSION['j_account'],'-'.$id,$_SESSION['usertype']);
alert('','judge_help.php');
exit;
}else if($_GET['job'] == 'edit'){
$aid=intval(sqls($_GET['aid']));
$sql="select * from judge_helps where aid=".$aid;
$result=$conn->Execute($sql);
$info=array(
'aid'=>sqlv($result->fields['aid']),
'aname'=>sqlv($result->fields['aname']),
'acontent'=>sqlv($result->fields['acontent']),
'atype'=>sqlv($result->fields['atype'])
);
$smarty->assign('info',$info);
$smarty->display('judge_help_edit.html');
}else if($_GET['job'] == 'del'){
$aid=intval(sqls($_GET['aid']));
$sql="delete from judge_helps where aid=".$aid;
if ($conn->Execute($sql)){
write_log($conn,$_SESSION['j_account'],'-'.$id,$_SESSION['usertype']);
alert('','judge_help.php');
exit;
}
}else{
$pageno=$_GET['pageno'];
if (!isset($pageno) ||empty($pageno)){
$pageno=1;
}
else{
$pageno=intval($pageno);
}
$pagesize=20;
$sql="select count(aid) as total from judge_helps";
$record=$conn->Execute($sql);
$recordnum=$record->fields['total'];
$cpage= ceil($recordnum / $pagesize);
$s=$pageno-3;
if($s<1){
$s=1;
}
$b=$s;
for($ii=0;$ii<6;$ii++){
$b++;
}
if($b>$cpage){
$b=$cpage;
}
for($j=$s;$j<=$b;$j++){
if($j==$pageno){
if($cpage<=1){
$spage.="";
}else{
$spage.=" <font color=red>$j</font>";
}
}else{
$spage.=" <a href=\"?".$php_self_url."pageno=$j\" title=\"{$j}\">$j</a>";
}
}
if ($recordnum){
if ($recordnum<$pagesize){
$pagecount=1;
}
if ($recordnum %$pagesize){
$pagecount=(int)($recordnum / $pagesize) +1;
}
else {
$pagecount=intval($recordnum / $pagesize);
}
}
else{
$pagecount=1;
}
if ($pageno==1){
$prelink='';
}
else{
$prelink="<a href=".$_SERVER['PHP_SELF']."?".$php_self_url."pageno=".($pageno-1)."></a>";
}
if ($pageno==$pagecount){
$nextlink='';
}
else{
$nextlink="<a href=".$_SERVER['PHP_SELF']."?".$php_self_url."pageno=".($pageno+1)."></a>";
}
if ($pageno==1){
$firstlink='';
}
else{
$firstlink="<a href=".$_SERVER['PHP_SELF']."?".$php_self_url."pageno=1></a>";
}
if ($pageno==$pagecount){
$lastlink='';
}
else{
$lastlink="<a href=".$_SERVER['PHP_SELF']."?".$php_self_url."pageno=".$pagecount."></a>";
}
$p_select="<select name='pid' onchange=\"window.location.href='".$_SERVER['PHP_SELF']."?".$php_self_url."pageno='+this.options[this.selectedIndex].value\">";
for($i=1;$i<=$cpage;$i++){
if($i==$pageno){
$p_option.="<option value='".$i."' selected>".$i."</option>";
}else{
$p_option.="<option value='".$i."'>".$i."</option>";
}
}
$page_select=$p_select.$p_option.'</select>';
$pageurl="".$recordnum.",".$firstlink ." | ".$prelink." | ".$spage." | ".$page_select." | ".$nextlink." | ".$lastlink;
$pagesz=array();
for ($i=1;$i<=$pagecount;$i++){
array_push($pagesz,$i);
}
$sql="select * from judge_helps";
try{
$result=$conn->SelectLimit($sql,$pagesize,($pageno-1)*$pagesize);
if (!$result){
echo $conn->ErrorMsg();
}
else{
while (!$result->EOF){
$info[]=array(
'aid'=>sqlv($result->fields['aid']),
'aname'=>sqlv($result->fields['aname']),
'atype'=>sqlv($result->fields['atype']),
'acontent'=>mb_substr(sqlv($result->fields['acontent']),0,60,'gb2312')
);
$result->MoveNext();
}
}
}
catch (Exception $e){
echo $e->getMessage();
}
$currenturl=$_SERVER['PHP_SELF'];
$smarty->assign('pageno',$pageno);
$smarty->assign('currenturl',$currenturl);
$smarty->assign('pagesz',$pagesz);
$smarty->assign('pageurl',$pageurl);
$smarty->assign('info',$info);
$smarty->display('judge_help.html');
}
Did this file decode correctly?
Original Code
<?php // This file is protected by copyright law & provided under license. Copyright(C) 2009-2018 www.nuohe.cc, All rights reserved.
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72');$OO00O0000=6180;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMH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69IMPe9YTRNhOl9CbxEFnl3Fn3LYHj9cOqIMPevMP8qYyQ70oQrjBQ7+MAqnW3kX9FkX9aEXiRPnW3kbiYEnba3O4lL+Hk7jBqJGokL0T9E+4dE0UkEFHxN27uq0UkEFHxNcba3O4lL+Hk7jBqJGokL0T9E+4dEYyQ70oQrjBQ7+O0a2U3W0E29+ElW0ouesuAc2B3JYn2Ap6AzYn3LKHjrcOjuYHj90y8ECOluYHj90y8esuAc2B3JYn2Ap6AzYn3LKHjrcOjuYHj9jn2a27uq0UkEFnQ7+OqIMP8q0TWR0ElxCbxR0y3eFT582T9rFoDECOle+oFNcba3O4lL+Hk7jBqJGole0y/aYnq82TeWFUj9nTR9+BgrKBlJ+O0esuAc1PAc
Function Calls
fread | 3 |
strtr | 2 |
fclose | 1 |
OOO0000O0 | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | 5383b9e7d6bbcf7a6350fc7d6323ec36 |
Eval Count | 3 |
Decode Time | 120 ms |