با ionCube کد شده و decode هزینه داره.
کد PHP:
<?php
include( 'functions.php' );
include( 'paths.php' );
$delimeter = '$?^?$';
session_start( );
$username_session = $_SESSION['username'];
$password_session = $_SESSION['password'];
$ref = $_SERVER['HTTP_REFERER'];
$chngemailurl = $root . '/' . $builderfldr . '/changeemail.php';
if (( $username_session == '' || $password_session == '' )) {
header( 'Location: index.php' );
}
else {
$logininfotxt = ioncube_read_file( $logininfofile );
$logininfoarry = explode( $delimeter, $logininfotxt );
$username_txt = $logininfoarry[0];
$password_txt = $logininfoarry[1];
$email_txt = $logininfoarry[2];
$update = $_POST['update'];
if (( $update == 'true' && $ref == $chngemailurl )) {
$newemail = $_POST['newemail'];
if ($newemail !== '') {
$logininfo = $username_txt . $delimeter . $password_txt . $delimeter . $newemail;
$createflag = ioncube_write_file( $logininfofile, $logininfo );
$licenseinfotxt = ioncube_read_file( $licensefilepath );
$licenseinfoarry = explode( $delimeter, $licenseinfotxt );
$username_license = $licenseinfoarry[0];
$password_license = $licenseinfoarry[1];
$email = $licenseinfoarry[2];
$domainname = $licenseinfoarry[3];
$producttype = $licenseinfoarry[4];
$product = $licenseinfoarry[5];
$status = $licenseinfoarry[6];
$creationdate = $licenseinfoarry[7];
$orderid = $licenseinfoarry[8];
$root_license = $licenseinfoarry[9];
$licenseinfo = $username_license . $delimeter . $password_license . $delimeter . $newemail . $delimeter;
$licenseinfo .= $domainname . $delimeter . $producttype . $delimeter . $product . $delimeter;
$licenseinfo .= $status . $delimeter . $creationdate . $delimeter . $orderid . $delimeter . $root_license;
$createflag = ioncube_write_file( $licensefilepath, $licenseinfo );
$email_txt = $newemail;
$errormsg = 'Email has changed successfully';
}
else {
$errormsg = 'Email is Empty';
}
}
else {
if (( $update == 'true' && $ref != $chngemailurl )) {
$errormsg = 'Invalid update!';
}
}
echo '
<!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=iso-8859-1" />
<title>Trendy Site Builder :: Change Email</title>
';
echo '<s';
echo 'tyle type="text/css">
body { margin:0; padding:0; font:12px Arial, Helvetica, sans-serif; background:url(include/maintfbg.jpg) no-repeat left top; }
#topheader { width:100%; height:120px;}
#topheader p { text-align:right; padding:10px 30px 0 0; font:20px Arial, Helvetica, sans-serif; font-weight:normal; color:#666}
#authentication { width:600px; height:200px; margin:0 auto; padding:0; marg';
echo 'in-top:150px;}
#authentication form { padding-top:30px;}
.hdtxt { padding:5px 0; padding-left:10px; text-align:left; color:#2CB9E2; font:30px Arial, Helvetica, sans-serif; font-weight:normal }
p.err { text-align:center; padding:12px; font:18px Arial, Helvetica, sans-serif; font-weight:normal; color:#FF3300; padding-top:30px;}
.loginbx { padding:10px; border:0; border-top:1px #CCCCCC solid;';
echo ' height:180px;}
.frow { width:90%; margin:0 auto; clear:both; height:52px;}
.leftcl { width:32%; text-align:right; padding-right:10px; float:left; height:52px; font:16px Arial, Helvetica, sans-serif; color:#999999; font-weight:bold}
.rightcl { width:66%; text-align:left; float:left; height:52px; font:16px Arial, Helvetica, sans-serif; color:#999999; font-weight:bold}
.err { color:#FF3300; tex';
echo 't-align:center}
.rightcl2 { width:66%; text-align:left; float:left; height:52px; text-align:right}
.btn { padding:3px; border:1px #666 solid; color:#666; font:16px Arial, Helvetica, sans-serif; font-weight:bold}
#footer { padding:30px; margin:0 auto; text-align:center; padding-top:150px; font:12px Arial, Helvetica, sans-serif; color:#666666}
#topmenu
{ margin: 0;
padding: 0;
z-i';
echo 'ndex: 30; position:absolute; right:125px; top:122px}
#topmenu li
{ margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 12px arial}
#topmenu li a
{ display: block;
margin: 0 1px 0 0;
padding: 4px 10px;
width: 90px;
background: transparent;
color: #333;
text-align: center;
text-decoration: none;
border:0;
border-right:1px #2CB9E2 solid}
#topmenu li a';
echo ':hover
{ background: /*#49A3FF*/transparent}
#topmenu div
{ position: absolute;
visibility: hidden;
margin: 0;
padding: 0;
background: #DEF6F9;
border: 1px solid #D5E9EC}
#topmenu div a
{ position: relative;
display: block;
margin: 0;
padding: 5px 10px;
width: auto;
white-space: nowrap;
text-align: left;
text-decoration: none;
background: #2CB9E2;
co';
echo 'lor: #FFF;
font: 12px arial;
border:0;
border-bottom:1px #99CCCC solid}
#topmenu div a:hover
{ background: #222;
color: #2CB9E2}
</style>
';
echo '<s';
echo 'cript language="javascript">
// Copyright 2006-2007 javascript-array.com
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuite';
echo 'm.style.visibility = \'visible\';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close la';
echo 'yer when click-out
document.onclick = mclose
</script>
</head>
<body>
<div align="center">
<div id="topheader">
<ul id="topmenu" name="topmenu">
<li><a href="panel.php">Home</a></li>
<li><a href="#"
onmouseover="mopen(\'m1\')"
onmouseout="mclosetime()">My Info</a>
<div id="m1"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
';
echo ' <a href="changepassword.php">Change Password</a>
<a href="changeemail.php">Change Email</a>
</div>
</li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div id="authentication">
<div class="hdtxt">Change Email :</div>
<div class="loginbx">
<form action="changeemail.php" method="post">
';
if ($errormsg != '') {
echo ' <div class="frow">
<div class="leftcl"></div>
<div class="rightcl err"><p>';
echo $errormsg;
echo '</p>
</div>
</div>
';
}
echo '
<div class="frow">
<div class="leftcl">Old Email :</div>
<div class="rightcl"><input name="email" value="';
echo $email_txt;
echo '" type="text" class="btn" size="38" />
</div>
</div>
<div class="frow">
<div class="leftcl">New Email :</div>
<div class="rightcl"><input name="newemail" type="text" class="btn" size="38" />
</div>
</div>
<input type="hidden" name="update" value="true">
<div class="frow">
<div class="leftcl"></div>
<div class="rightcl2"><input type="image" src="incl';
echo 'ude/changebtn.jpg" value="Change" />
</div>
</div>
</form>
</div>
</div>
';
}
echo '
<div id="footer">Copyright © 2010 TrendyFlash.com. All rights Reserved.</div>
</div>
</body>
</html>';
?>