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 include("mycode/newsconf.php"); require_once("mycode/funcnews.php"); $viewnews..

Decoded Output download

<?php  
 
include("mycode/newsconf.php"); 
require_once("mycode/funcnews.php"); 
$viewnews = (isset ($_GET['view']))? intval($_GET['view']) : "-1"; 
 
if(file_exists("$newsdbfilename")){ 
	$news=file("$newsdbfilename"); 
	$countallnews = count($news); 
	if ($viewnews=="-1") { 
	if(!isset($_REQUEST["newspage"])) {$_REQUEST["newspage"]=1; 
	} else {$_REQUEST["newspage"] = (int)$_REQUEST["newspage"];} 
	$j = ($countallnews-1)-(($_REQUEST["newspage"]-1)*$newsperpage); 
	$i = $j-$newsperpage; 
		for($j;(($i<$j)&&($j>=0));$j--)  { 
		$new=unserialize($news[$j]); 
		if ($new=="") {continue;} 
		@$newsmarkers=array( 
		@$head = $new['head'], 
		@$startnews = $new['mess'], 
		@$adminemail = $new['admmail'], 
		@$adminname = $new['aname'], 
		@$date = $new['pubdate'], 
		@$time = $new['pubtime'] 
		); 
		$p = $j+1; 
echo '    <hr class="hr-horizontal-gradient">';	 
		print " <a target=_blank href=\"news-$p.html\"><h2>$head</h2></a>"; 
		echo stripslashes($startnews); 
		print "<br><b>$date</b> &nbsp;| &nbsp; <a target=_blank href=\"news-$p.html\"><strong><u><kbd1> &#8594;</kbd1></u></strong></a><br><br>" ; 
 
 
 
		} 
	print "<b>/b>&nbsp;"; 
	$all = ceil($countallnews/$newsperpage);  
	for($i=1;$i<=$all;$i++) { 
		if($_REQUEST["newspage"]==$i) { 
		print "&laquo;<b>$i</b>&raquo; "; 
		} 
		else { 
		print "<a href=\"news-page-$i.html\">$i</a> "; 
		} 
	} 
	print "<br><div align=\"right\">&nbsp;nbsp;:&nbsp;<b>$countallnews</b></div>"; 
	} else { 
		$new=unserialize($news[$viewnews-1]); 
		if ($new=="") {continue;} 
		@$newsmarkers=array( 
		@$head = $new['head'], 
		@$startnews = $new['mess'], 
		@$adminemail = $new['admmail'], 
		@$adminname = $new['aname'], 
		@$date = $new['pubdate'], 
		@$time = $new['pubtime'], 
		@$fullnews = $new['extra'] 
		); 
		 
		 
		print "<h2>$head</h2>"; 
		echo stripslashes($startnews); 
		print "<br><br>"; 
		echo stripslashes($fullnews); 
		print "<br><br><b>$date</b> | $adminname<br><br>$back" ; 
		} 
} else {print("<center><font color=\"red\" size=\"2\">!</font></center>");} 
  
?> 

Did this file decode correctly?

Original Code

<?php 

include("mycode/newsconf.php");
require_once("mycode/funcnews.php");
$viewnews = (isset ($_GET['view']))? intval($_GET['view']) : "-1";

if(file_exists("$newsdbfilename")){
	$news=file("$newsdbfilename");
	$countallnews = count($news);
	if ($viewnews=="-1") {
	if(!isset($_REQUEST["newspage"])) {$_REQUEST["newspage"]=1;
	} else {$_REQUEST["newspage"] = (int)$_REQUEST["newspage"];}
	$j = ($countallnews-1)-(($_REQUEST["newspage"]-1)*$newsperpage);
	$i = $j-$newsperpage;
		for($j;(($i<$j)&&($j>=0));$j--)  {
		$new=unserialize($news[$j]);
		if ($new=="") {continue;}
		@$newsmarkers=array(
		@$head = $new['head'],
		@$startnews = $new['mess'],
		@$adminemail = $new['admmail'],
		@$adminname = $new['aname'],
		@$date = $new['pubdate'],
		@$time = $new['pubtime']
		);
		$p = $j+1;
echo '    <hr class="hr-horizontal-gradient">';	
		print " <a target=_blank href=\"news-$p.html\"><h2>$head</h2></a>";
		echo stripslashes($startnews);
		print "<br><b>$date</b> &nbsp;| &nbsp; <a target=_blank href=\"news-$p.html\"><strong><u><kbd1> &#8594;</kbd1></u></strong></a><br><br>" ;



		}
	print "<b>/b>&nbsp;";
	$all = ceil($countallnews/$newsperpage); 
	for($i=1;$i<=$all;$i++) {
		if($_REQUEST["newspage"]==$i) {
		print "&laquo;<b>$i</b>&raquo; ";
		}
		else {
		print "<a href=\"news-page-$i.html\">$i</a> ";
		}
	}
	print "<br><div align=\"right\">&nbsp;nbsp;:&nbsp;<b>$countallnews</b></div>";
	} else {
		$new=unserialize($news[$viewnews-1]);
		if ($new=="") {continue;}
		@$newsmarkers=array(
		@$head = $new['head'],
		@$startnews = $new['mess'],
		@$adminemail = $new['admmail'],
		@$adminname = $new['aname'],
		@$date = $new['pubdate'],
		@$time = $new['pubtime'],
		@$fullnews = $new['extra']
		);
		
		
		print "<h2>$head</h2>";
		echo stripslashes($startnews);
		print "<br><br>";
		echo stripslashes($fullnews);
		print "<br><br><b>$date</b> | $adminname<br><br>$back" ;
		}
} else {print("<center><font color=\"red\" size=\"2\">!</font></center>");}
 
?>

Function Calls

None

Variables

None

Stats

MD5 cae326db2fb90f692b1cc001c0b9c28f
Eval Count 0
Decode Time 89 ms