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 error_reporting(0); ini_set('session.cookie_httponly', true); include("includes..
Decoded Output download
<?php
error_reporting(0);
ini_set('session.cookie_httponly', true);
include("includes/proxycheck.php");
include("includes/core.php");
include("includes/storedsettings.php");
include("includes/logging.php");
if ($_POST) {
$ggyt = "true";
if ($_GET[go] == "payment-successful") { $ggyt = "false"; }
if ($_GET[go] == "payment-cancelled") { $ggyt = "false"; }
if ($_GET[go] == "mailsupport") { $ggyt = "false"; }
if ($access == "1") { $ggyt = "false"; }
if ($ggyt == "true") {
include("includes/formprotect.php");
include("includes/sqlprevent.php");
} }
//if ($_GET) { include("includes/formprotect.php"); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/favicon.ico" >
<link rel="icon" type="image/gif" href="images/animated_favicon1.gif" >
<?php include("includes/header_includes.php"); ?>
<title><?php echo $sitename; ?></title>
</head>
<?php
$ip = getenv("REMOTE_ADDR");
$SQLtext = "SELECT * FROM bannedips WHERE ipaddr='$ip'";
$result = mysql_query($SQLtext) or die(mysql_error());;
while($row = mysql_fetch_row($result)) {
die("Your ip address has been banned from accessing our system!!!!<br><b>REASON:</b> $row[2]");
}
// check user is logged in
if ($logged == "no") {
include("login.php");
die();
}
ini_set(session.gc_maxlifetime,30);
ini_set(session.gc_probability,1);
ini_set(session.gc_divisor,1);
?>
<body>
<div align="center">
<table width="80%" border="0" bgcolor="#FFFFFF" >
<tr>
<td bgcolor="#FFFFFF" align="center">
<?php if ($autologo) { ?>
<img src="<?php echo $autologo; ?>" height="70">
<?php } ?>
<table width="90%" border="0" align="center" class="accountinfo">
<tr>
<td><h2 id="logo"><?php echo $sitename; ?> .:. <?php echo $slogan; ?></h2></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><?php include("includes/menu_files/menu.php"); ?></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center" class="accountinfo">
<tr>
<td width="31%" align="left"><h2 id="AccountInfo">Account Infomation</h2></td>
<td width="35%" align="center"><h2 id="ServerInfo">Server Status</h2></td>
<td width="34%" align="right"><h2 id="AccountOver">Account Overview</h2></td>
</tr>
<tr>
<td align="left"><b><?php echo $uname; ?></b><br />
<b><?php echo $email; ?></b><br />
<b><?php echo $ip; ?></b></td>
<td align="center">
<?php
$bbserv = 0;
$SQLtxt = "SELECT * FROM cspservers ORDER BY host LIMIT 3";
$resut = mysql_query($SQLtxt) or die(mysql_error());;
while($rw = mysql_fetch_row($resut)) {
$bbserv ++;
$site = $rw[1];
$port = $rw[2];
$fp = @fsockopen($site,$port,$errno,$errstr,10);
if(!$fp)
{
echo "<font color='red'><b>Server $bbserv is Currently DOWN</b></font><br>";
}
else{
echo "Server $bbserv is Currently UP<br>";
} }
?>
</td>
<td align="right">You have
<?php
$chkpay = $row[0];
$resu2lt = mysql_query("SELECT * FROM skylines WHERE ownerid=$myid");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
Line(s) on your account<br />
You have made
<?php
$chkpay = $row[0];
$resu2lt = mysql_query("SELECT * FROM payments WHERE ownerid=$myid");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
Payment(s) to us<br />
you have
<?php
$chkpay = $row[0];
$stat = "0";
$resu2lt = mysql_query("SELECT * FROM skylines WHERE ownerid=$myid AND state=$stat");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
disabled line(s)</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center">
<tr>
<td>
<?php
echo $bbberror;
if (!$myid) { die("No Access"); }
$page = mysql_real_escape_string($page);
$pagepath = "incpages/";
if (file_exists("$pagepath$page.$ext")) {
include("$pagepath$page.$ext");
} else {
include("incpages/error.php");
}
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<br />
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center" class="foot">
<tr>
<td align="center">Automated CSP V0.2 RC2 - © <a href="mailto:[email protected]">mrsmokin</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<?php include("includes/footer_includes.php"); ?>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
error_reporting(0);
ini_set('session.cookie_httponly', true);
include("includes/proxycheck.php");
include("includes/core.php");
include("includes/storedsettings.php");
include("includes/logging.php");
if ($_POST) {
$ggyt = "true";
if ($_GET[go] == "payment-successful") { $ggyt = "false"; }
if ($_GET[go] == "payment-cancelled") { $ggyt = "false"; }
if ($_GET[go] == "mailsupport") { $ggyt = "false"; }
if ($access == "1") { $ggyt = "false"; }
if ($ggyt == "true") {
include("includes/formprotect.php");
include("includes/sqlprevent.php");
} }
//if ($_GET) { include("includes/formprotect.php"); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/favicon.ico" >
<link rel="icon" type="image/gif" href="images/animated_favicon1.gif" >
<?php include("includes/header_includes.php"); ?>
<title><?php echo $sitename; ?></title>
</head>
<?php
$ip = getenv("REMOTE_ADDR");
$SQLtext = "SELECT * FROM bannedips WHERE ipaddr='$ip'";
$result = mysql_query($SQLtext) or die(mysql_error());;
while($row = mysql_fetch_row($result)) {
die("Your ip address has been banned from accessing our system!!!!<br><b>REASON:</b> $row[2]");
}
// check user is logged in
if ($logged == "no") {
include("login.php");
die();
}
ini_set(session.gc_maxlifetime,30);
ini_set(session.gc_probability,1);
ini_set(session.gc_divisor,1);
?>
<body>
<div align="center">
<table width="80%" border="0" bgcolor="#FFFFFF" >
<tr>
<td bgcolor="#FFFFFF" align="center">
<?php if ($autologo) { ?>
<img src="<?php echo $autologo; ?>" height="70">
<?php } ?>
<table width="90%" border="0" align="center" class="accountinfo">
<tr>
<td><h2 id="logo"><?php echo $sitename; ?> .:. <?php echo $slogan; ?></h2></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><?php include("includes/menu_files/menu.php"); ?></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center" class="accountinfo">
<tr>
<td width="31%" align="left"><h2 id="AccountInfo">Account Infomation</h2></td>
<td width="35%" align="center"><h2 id="ServerInfo">Server Status</h2></td>
<td width="34%" align="right"><h2 id="AccountOver">Account Overview</h2></td>
</tr>
<tr>
<td align="left"><b><?php echo $uname; ?></b><br />
<b><?php echo $email; ?></b><br />
<b><?php echo $ip; ?></b></td>
<td align="center">
<?php
$bbserv = 0;
$SQLtxt = "SELECT * FROM cspservers ORDER BY host LIMIT 3";
$resut = mysql_query($SQLtxt) or die(mysql_error());;
while($rw = mysql_fetch_row($resut)) {
$bbserv ++;
$site = $rw[1];
$port = $rw[2];
$fp = @fsockopen($site,$port,$errno,$errstr,10);
if(!$fp)
{
echo "<font color='red'><b>Server $bbserv is Currently DOWN</b></font><br>";
}
else{
echo "Server $bbserv is Currently UP<br>";
} }
?>
</td>
<td align="right">You have
<?php
$chkpay = $row[0];
$resu2lt = mysql_query("SELECT * FROM skylines WHERE ownerid=$myid");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
Line(s) on your account<br />
You have made
<?php
$chkpay = $row[0];
$resu2lt = mysql_query("SELECT * FROM payments WHERE ownerid=$myid");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
Payment(s) to us<br />
you have
<?php
$chkpay = $row[0];
$stat = "0";
$resu2lt = mysql_query("SELECT * FROM skylines WHERE ownerid=$myid AND state=$stat");
$num_rows = mysql_num_rows($resu2lt);
echo $num_rows; ?>
disabled line(s)</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center">
<tr>
<td>
<?php
echo $bbberror;
if (!$myid) { die("No Access"); }
$page = mysql_real_escape_string($page);
$pagepath = "incpages/";
if (file_exists("$pagepath$page.$ext")) {
include("$pagepath$page.$ext");
} else {
include("incpages/error.php");
}
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<br />
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="90%" border="0" align="center" class="foot">
<tr>
<td align="center">Automated CSP V0.2 RC2 - © <a href="mailto:[email protected]">mrsmokin</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<?php include("includes/footer_includes.php"); ?>
</body>
</html>
Function Calls
ini_set | 1 |
error_reporting | 1 |
Stats
MD5 | 847626d88702a66b57fb10cc84818aa8 |
Eval Count | 0 |
Decode Time | 95 ms |