Creed2012 |
Beginner |
|
|
Joined: Nov 10, 2012 |
Posts: 2 |
|
|
|
|
|
|
|
pLaS71k wrote: | Code: |
<?php
function antiject( $str )
{
$str = _obfuscate_DQkSKTUuNyM8ETwLIz8xDSUmCSI5ASIя( $str );
$str = _obfuscate_DQ0CHDcmMA0yMz88HTI3GhQyAwsUMSIя( $str );
$str = _obfuscate_DT45KxgFNDIIWxUBw9bA1w5MBUfHwEя( $str );
$str = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/'/", "''", $str );
$str = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/\"/", "\"\"", $str );
$str = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "`", "", $str );
return $str;
}
function connectuserdb( )
{
global $mssql;
global $user_dbconnect;
global $userdb;
if ( !( $user_dbconnect = @_obfuscate_DSUHA4MBRk7HzAsAzsNNRQbIjc5CQEя( @$mssql['user']['host'], @$mssql['user']['username'], @$mssql['user']['password'] ) ) )
{
exit( "Couldn't connect to user database server. "._obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
if ( !( $userdb = _obfuscate_DQgkOTYkHRMRPR8WFCQaMiEFFSEHAjIя( $mssql['user']['db'], $user_dbconnect ) ) )
{
exit( _obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
}
function connectdatadb( )
{
global $mssql;
global $data_dbconnect;
global $datadb;
if ( !( $data_dbconnect = @_obfuscate_DSUHA4MBRk7HzAsAzsNNRQbIjc5CQEя( @$mssql['data']['host'], @$mssql['data']['username'], @$mssql['data']['password'] ) ) )
{
exit( "Couldn't connect to data database server. "._obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
if ( !( $datadb = @_obfuscate_DQgkOTYkHRMRPR8WFCQaMiEFFSEHAjIя( @$mssql['data']['db'], @$data_dbconnect ) ) )
{
exit( _obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
}
function connectgamecpdb( )
{
global $mssql;
global $gamecp_dbconnect;
global $gamecpdb;
if ( !( $gamecp_dbconnect = @_obfuscate_DSUHA4MBRk7HzAsAzsNNRQbIjc5CQEя( @$mssql['gamecp']['host'], @$mssql['gamecp']['username'], @$mssql['gamecp']['password'] ) ) )
{
exit( "Couldn't connect to the Game CP database server. "._obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
if ( !( $gamecpdb = @_obfuscate_DQgkOTYkHRMRPR8WFCQaMiEFFSEHAjIя( @$mssql['gamecp']['db'], @$gamecp_dbconnect ) ) )
{
exit( _obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
}
function connectitemsdb( )
{
global $mssql;
global $items_dbconnect;
global $itemsdb;
if ( !( $items_dbconnect = @_obfuscate_DSUHA4MBRk7HzAsAzsNNRQbIjc5CQEя( @$mssql['items']['host'], @$mssql['items']['username'], @$mssql['items']['password'] ) ) )
{
exit( "Couldn't connect to items database server. "._obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
if ( !( $itemsdb = @_obfuscate_DQgkOTYkHRMRPR8WFCQaMiEFFSEHAjIя( @$mssql['items']['db'], @$items_dbconnect ) ) )
{
exit( _obfuscate_DQ4jAhUdPRsXWxQoGDQaIjdAAx4GOQEя( ) );
}
}
function getRace( $strrace )
{
$race = "Unknown";
$racechar = _obfuscate_DTgxIT8XASQ3MCMeMzMHPgEJMFwRIzIя( $strrace, 0, 1 );
if ( $racechar == "C" )
{
$race = "Cora";
}
else if ( $racechar == "B" )
{
$race = "Bellato";
}
else if ( $racechar == "A" )
{
$race = "Accretia";
}
return $race;
}
function gamecp_log( $log_level, $log_account, $log_message, $disable_return = 0 )
{
global $userdb;
global $gamecpdb;
global $datadb;
global $user2db;
global $itemsdb;
global $gamecp_dbconnect;
global $data_dbconnect;
global $user_dbconnect;
global $items_dbconnect;
$return_user = false;
$return_gamecp = false;
$return_data = false;
$return_event = false;
$return_user2 = false;
$return_items = false;
if ( $disable_return == 0 )
{
if ( $userdb == 1 )
{
$return_user = true;
_obfuscate_DUABAREeKjg_MR49ISMUHUAVGQoZHCIя( $user_dbconnect );
}
if ( $gamecpdb == 1 )
{
$return_gamecp = true;
_obfuscate_DUABAREeKjg_MR49ISMUHUAVGQoZHCIя( $gamecp_dbconnect );
}
if ( $datadb == 1 )
{
$return_data = true;
_obfuscate_DUABAREeKjg_MR49ISMUHUAVGQoZHCIя( $data_dbconnect );
}
if ( $itemsdb == 1 )
{
$return_items = true;
_obfuscate_DUABAREeKjg_MR49ISMUHUAVGQoZHCIя( $items_dbconnect );
}
}
$log_time = _obfuscate_DSIZDigoWw4qCAQ1DzQpIz4sHiIHJCIя( );
$log_ip = $_SERVER['REMOTE_ADDR'];
$log_browser = antiject( $_SERVER['HTTP_USER_AGENT'] );
$log_page = antiject( $_SERVER['REQUEST_URI'] );
$log_account = _obfuscate_DS4WMgMfOQkrGTMLNAIIMSUVKzQEBTIя( ";\$", "", $log_account );
$log_account = _obfuscate_DS4WMgMfOQkrGTMLNAIIMSUVKzQEBTIя( "\\\\", "", $log_account );
$log_message = _obfuscate_DS4WMgMfOQkrGTMLNAIIMSUVKzQEBTIя( ";\$", "", $log_message );
$log_message = _obfuscate_DS4WMgMfOQkrGTMLNAIIMSUVKzQEBTIя( "\\\\", "", $log_message );
$log_message = _obfuscate_DQEnBDcnJhAwMBMNHhwJBAsKBBELwEя( $log_message );
if ( $log_account != "" && $log_message != "" )
{
connectgamecpdb( );
$gamecploq_query = "INSERT INTO gamecp_log (log_level, log_time, log_account, log_message, log_ip, log_page, log_browser) VALUES ('{$log_level}','{$log_time}','{$log_account}','{$log_message}','{$log_ip}','{$log_page}','{$log_browser}')";
$gamecploq_query = _obfuscate_DRMWERMxEAUOKScOEw4Lg4_AjA_IyIя( $gamecploq_query );
_obfuscate_DUABAREeKjg_MR49ISMUHUAVGQoZHCIя( $gamecp_dbconnect );
if ( $return_user == true )
{
connectuserdb( );
}
if ( $return_data == true )
{
connectdatadb( );
}
if ( $return_event == true )
{
_obfuscate_DSRbFA4aMD0JKDMvFQUKGj8qKDYZLTIя( );
}
if ( $return_gamecp == true )
{
connectgamecpdb( );
}
if ( $return_items == true )
{
connectitemsdb( );
}
}
}
function matheval( $equation )
{
$equation = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/[^0-9+\\-.*\\/()%]/", "", $equation );
$equation = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/([+-])([0-9]+)(%)/", "*(1$1.$2)", $equation );
$equation = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/([0-9]+)(%)/", ".$1", $equation );
if ( $equation == "" )
{
$return = 0;
}
else
{
eval( "\$return=".$equation.";" );
}
return $return;
}
function calculate_credits( $mty = 1, $num_of_payments = 20, $price_value = 5, $credits_value = 25, $check_price = false )
{
global $c_price;
global $c_credits;
global $c_bonus;
global $c_total;
global $config;
$muntiplier = $mty;
$c_price = array( );
$c_credits = array( );
$c_bonus = array( );
$c_total = array( );
$i = 0;
while ( $i < $num_of_payments )
{
$raw_price = $price_value * $i;
$raw_credits = $credits_value * $i * $muntiplier;
$raw_bonus = _obfuscate_DQEMGyQYDRwIHDkEGz0_PggMBS4iLzIя( $raw_credits * 1 + 10 * ( ( $raw_credits - 25 ) / 25 ) - $raw_credits );
if ( isset( $config['gamecp_bonus_formula'] ) )
{
$formula = _obfuscate_DT45KxgFNDIIWxUBw9bA1w5MBUfHwEя( $config['gamecp_bonus_formula'] );
if ( !empty( $formula ) )
{
$formula = antiject( $formula );
$formula = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "\$", "", $formula );
$formula = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "x", $raw_credits, $formula );
$formula = @matheval( @$formula );
if ( _obfuscate_DTQNxQTHBgSLjRANTUjBxUcHVswGiIя( $formula ) && 0 <= $formula )
{
$raw_bonus = $formula;
}
else
{
$raw_bonus = 0;
}
}
}
$c_price[] = $raw_price;
$c_credits[] = $raw_credits;
$c_bonus[] = $raw_bonus;
$c_total[] = $raw_credits + $raw_bonus;
++$i;
}
if ( $check_price === false )
{
return false;
}
$key = _obfuscate_DRkpGTIlGSomCRoFDw1bPhgwHlw_QAEя( $check_price, $c_price );
if ( $key === FALSE )
{
return 0;
}
return $c_total[$key];
}
function error_header( )
{
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">".( "\n" );
echo "<HTML>".( "\n" );
echo "".( "\n" );
echo "<HEAD>".( "\n" );
echo "\t<style type=\"text/css\">".( "\n" );
echo "\t\tbody {".( "\n" );
echo "\t\t\tfont-size: 12px;".( "\n" );
echo "\t\t\tfont-family: Verdana, Arial, Helvetica, sans-serif;".( "\n" );
echo "\t\t\tbackground-color: #FFFFF;".( "\n" );
echo "\t\t}".( "\n" );
echo "\t</style>".( "\n" );
echo "</HEAD>".( "\n" );
echo "".( "\n" );
echo "<BODY>".( "\n" );
}
function error_footer( )
{
echo "</BODY>".( "\n" );
echo "</HTML>".( "\n" );
}
function errorHandler( $errno, $errstr, $errfile, $errline )
{
global $_SERVER;
if ( _obfuscate_DTwhFxYPGzcDHj8HMAQOISIXJAEDEREя( ) == 0 )
{
}
else
{
$errfile = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "\\", "/", $errfile );
$errfile = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( $_SERVER['DOCUMENT_ROOT'], "", $errfile );
switch ( $errno )
{
case E_ERROR :
break;
case E_USER_ERROR :
}
error_header( );
if ( $errstr == "(SQL)" )
{
echo "<b>[GameCP Debug] PHP SQL Error:</b> ".SQLMESSAGE."<br />\n";
echo "Query : ".SQLQUERY."<br />\n";
echo "On line ".SQLERRORLINE." in file ".SQLERRORFILE." ";
echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br /><br />"."\n\n";
echo "Aborting...<br />\n";
}
else
{
echo "<b>[Game CP]</b> PHP Error: {$errstr}<br />\n";
echo " Fatal error on line {$errline} in file {$errfile}";
echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br />\n";
echo "Aborting...<br /><br />".( "\n\n" );
}
error_footer( );
exit( 1 );
break;
switch ( $errno )
{
case E_WARNING :
break;
case E_USER_WARNING :
}
error_header( );
echo "<b>[GameCP Debug] PHP Warning:</b> in file <b>".$errfile."</b> on line <b>".$errline."</b>: <b>".$errstr."</b><br /><br />"."\n\n";
error_footer( );
break;
switch ( $errno )
{
case E_NOTICE :
case E_USER_NOTICE :
error_header( );
echo "<b>[GameCP Debug] PHP Notice:</b> in file <b>".$errfile."</b> on line <b>".$errline."</b>: <b>".$errstr."</b><br /><br />"."\n\n";
error_footer( );
break;
default :
break;
}
return true;
}
}
function writeCache( $content, $filename )
{
global $out;
global $_SERVER;
$absolute_path = _obfuscate_DTcCzUGCwQ4Hi4ECyU0NQMWIwEHAEя( __FILE__ )."/";
if ( DIRECTORY_SEPARATOR == "\\" )
{
$absolute_path = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "\\", "/", $absolute_path );
}
$absolute_path = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "main/", "", $absolute_path );
$fp = _obfuscate_DQI9IRUbJlsXDjMRHQoeEC4PXFwWXDIя( $absolute_path."cache/".$filename, "w" );
_obfuscate_DSsZJDgBBhwVXCoqJTMHBAoXPBc1DREя( $fp, $content );
_obfuscate_DTwMNAssKTEKJw4nNzY3NAoyJS87DCIя( $fp );
}
function readCache( $filename, $expiry )
{
global $out;
global $out;
global $_SERVER;
$absolute_path = _obfuscate_DTcCzUGCwQ4Hi4ECyU0NQMWIwEHAEя( __FILE__ )."/";
if ( DIRECTORY_SEPARATOR == "\\" )
{
$absolute_path = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "\\", "/", $absolute_path );
}
$absolute_path = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( "main/", "", $absolute_path );
if ( _obfuscate_DQgiAhUXIRZAPzUvMjwJPAw1FSQrEjIя( $absolute_path."cache/".$filename ) )
{
if ( _obfuscate_DSIoMR4hMD8zHCY1IQYhBwQWHy0kDjIя( $absolute_path."cache/".$filename ) < _obfuscate_DSIZDigoWw4qCAQ1DzQpIz4sHiIHJCIя( ) - $expiry )
{
return false;
}
$cache = _obfuscate_DRIrAho5Nj4HDCQCOyQNJj8dKRQ9GDIя( $absolute_path."cache/".$filename );
return _obfuscate_DRsUGCU5Fz4GFA4EFS9bIS4CLBobLwEя( "", $cache );
}
return false;
}
function hasPermissions( $page = "" )
{
global $out;
global $config;
global $admin;
global $userdata;
global $isuser;
global $user_access;
$return = 0;
if ( $isuser && ( $userdata != "" || $page == "" ) )
{
if ( isset( $userdata['username'], $userdata['serial'] ) )
{
$super_admin = _obfuscate_DRk0CFsiNQYKGCwQLCpcPSoEOAkoPSIя( ",", $admin['super_admin'] );
$page = _obfuscate_DUAKEi83MwNbEBU7Gxk3Bw00Fw0MLjIя( $page );
if ( _obfuscate_DTBcPSQDNxkKFi43HzEdBAsbIRcNMjIя( $page, ".php" ) )
{
$page = _obfuscate_DTgxIT8XASQ3MCMeMzMHPgEJMFwRIzIя( $page, 0, _obfuscate_DQIQPyMBJAQ_LxoDWzstDBwvBw0wWyIя( $page, "." ) );
}
if ( !_obfuscate_DR0qLhcYPR81Phk9EgEyLw0WMB5AMBEя( $userdata['username'], $super_admin ) )
{
if ( _obfuscate_DTBcPSQDNxkKFi43HzEdBAsbIRcNMjIя( $user_access['admin_permission'], $page ) === FALSE )
{
$return = 0;
}
else
{
$return = 1;
}
}
else
{
$return = 1;
}
}
else
{
$return = 0;
}
}
else
{
$return = 0;
}
if ( $return == 1 )
{
return true;
}
return false;
}
function multiarray_keys( $ar )
{
foreach ( $ar as $k => $v )
{
$keys[] = $k;
if ( _obfuscate_DTwuHig2PTAIDhZbKTY2JwMW0ADHjIя( $ar[$k] ) )
{
$keys = _obfuscate_DR87CgIsGxAOIy0_MggcLAosFx4iEQEя( $keys, multiarray_keys( $ar[$k] ) );
}
}
return $keys;
}
function gamecp_nav( $isuser = false )
{
global $is_superadmin;
global $user_access;
global $admin;
global $userdata;
global $_license_properties;
global $out;
global $gamecp_nav;
global $script_name;
global $program_name;
global $dont_allow;
global $admin;
global $config;
$gamecp_nav = "";
$gamecp_nav = "<table class=\"tborder\" cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"125\">".( "\n" );
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td class=\"tcat\" style=\"padding: 6px;\"><a href=\"".$script_name."\">".$program_name."</a></td>"."\n";
$gamecp_nav .= "</tr>".( "\n" );
if ( $isuser == true )
{
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td nowrap=\"nowrap\" class=\"alt2\"><a class=\"smallfont\" href=\"./gamecp_logout.php\">Logout</a></td>".( "\n" );
$gamecp_nav .= "</tr>".( "\n" );
}
else
{
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td nowrap=\"nowrap\" class=\"alt2\"><a class=\"smallfont\" href=\"./".$script_name."\">Login</a></td>"."\n";
$gamecp_nav .= "</tr>".( "\n" );
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td nowrap=\"nowrap\" class=\"alt2\"><a class=\"smallfont\" href=\"./gamecp_register.php\">Register</a></td>".( "\n" );
$gamecp_nav .= "</tr>".( "\n" );
}
$phpEx = "php";
if ( !( $fileinfo = readcache( "fileinfo.cache", 86400 ) ) )
{
$fileinfo = "";
$dir = @_obfuscate_DSsZByE7Nj4lJD4BLRgNy4TEC8OEwEя( "./includes/" );
$setmodules = 1;
while ( $file = @_obfuscate_DUA_PTE2GBAUFCI3GzY4OUA7Ig0rFjIя( @$dir ) )
{
if ( !_obfuscate_DR4mIgE3MCs5M0A5Oz8hPQQ7Ph8CCBEя( "./includes/".$file ) || !( $file != "main" || $file != "." || $file != ".." ) || _obfuscate_DR0qLhcYPR81Phk9EgEyLw0WMB5AMBEя( $file, $dont_allow ) )
{
$this_script = "";
include( "./includes/".$file );
if ( isset( $module ) )
{
$keys = multiarray_keys( $module );
$fileinfo .= $file.",".$keys[0].",".$keys[1]."\n";
}
unset( $module );
unset( $keys );
}
}
@_obfuscate_DTUkEhsMD84NichJwIQGhUGFxQfKzIя( @$dir );
unset( $setmodules );
writecache( $fileinfo, "fileinfo.cache" );
}
$fileinfo = _obfuscate_DRk0CFsiNQYKGCwQLCpcPSoEOAkoPSIя( "\n", $fileinfo );
$filelist = "";
$module = array( );
foreach ( $fileinfo as $moduleinfo )
{
$info = _obfuscate_DRk0CFsiNQYKGCwQLCpcPSoEOAkoPSIя( ",", $moduleinfo );
$filelist = $info[0].",";
if ( !( !empty( $info[1] ) && !empty( $info[2] ) ) )
{
continue;
}
else if ( _obfuscate_DQk4GgczNT4mGgYRNx0RXB8hQD0VIhEя( "/^superadmin_.*?\\.".$phpEx."$/", $info[0] ) )
{
if ( $isuser == true && $is_superadmin == true )
{
$module[$info[1]][$info[2]] = $info[0];
}
}
else if ( _obfuscate_DQk4GgczNT4mGgYRNx0RXB8hQD0VIhEя( "/^admin_.*?\\.".$phpEx."$/", $info[0] ) || _obfuscate_DQk4GgczNT4mGgYRNx0RXB8hQD0VIhEя( "/^support_.*?\\.".$phpEx."$/", $info[0] ) )
{
if ( $is_superadmin == true )
{
$module[$info[1]][$info[2]] = $info[0];
}
else
{
if ( $isuser == true && $user_access != false )
{
$match = _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( ".php", "", $info[0] );
if ( _obfuscate_DTBcPSQDNxkKFi43HzEdBAsbIRcNMjIя( $user_access['admin_permission'], $match ) !== FALSE )
{
$module[$info[1]][$info[2]] = $info[0];
}
}
}
}
else if ( _obfuscate_DQk4GgczNT4mGgYRNx0RXB8hQD0VIhEя( "/^user_.*?\\.".$phpEx."$/", $info[0] ) )
{
if ( $isuser == true )
{
$module[$info[1]][$info[2]] = $info[0];
}
}
else if ( _obfuscate_DQk4GgczNT4mGgYRNx0RXB8hQD0VIhEя( "/^all_.*?\\.".$phpEx."$/", $info[0] ) )
{
$module[$info[1]][$info[2]] = $info[0];
}
}
_obfuscate_DR5bBCguJSMcMgFcXDgaLgEEHREKBBEя( $module );
$k = 1;
do
{
$action_array = _obfuscate_DQMSQDEKGSEZNDAkIw0EyokMhYqGREя( $module )[1];
$cat = _obfuscate_DQMSQDEKGSEZNDAkIw0EyokMhYqGREя( $module )[0];
$cat = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/_/", " ", $cat );
_obfuscate_DR5bBCguJSMcMgFcXDgaLgEEHREKBBEя( $action_array );
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td class=\"thead\" width=\"100%\" valign=\"top\">".$cat."</td>"."\n";
$gamecp_nav .= "</tr>".( "\n" );
do
{
$file = _obfuscate_DQMSQDEKGSEZNDAkIw0EyokMhYqGREя( $action_array )[1];
$action = _obfuscate_DQMSQDEKGSEZNDAkIw0EyokMhYqGREя( $action_array )[0];
if ( _obfuscate_DQMSQDEKGSEZNDAkIw0EyokMhYqGREя( $action_array ) )
{
$action = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( "/_/", " ", $action );
$gamecp_nav .= "<tr>".( "\n" );
$gamecp_nav .= "\t<td nowrap=\"nowrap\" class=\"alt2\"><a class=\"smallfont\" href=\"./".$script_name."?do="._obfuscate_DTgxIT8XASQ3MCMeMzMHPgEJMFwRIzIя( $file, 0, 0 - 4 )."\">".$action."</a></td>"."\n";
$gamecp_nav .= "</tr>".( "\n" );
}
} while ( 1 );
++$k;
} while ( 1 );
$gamecp_nav .= "</table>";
$out .= "\t\t\t\t</div>".( "\n" );
$out .= "\t\t\t\t</td>".( "\n" );
$out .= "\t\t\t</tr>".( "\n" );
$out .= "\t\t</table>".( "\n" );
$out .= "<table align=\"center\">".( "\n" );
$out .= "<tr>".( "\n" );
$out .= "<td>".( "\n" );
$out .= "<div>".( "\n" );
$year_next = _obfuscate_DRo0PA80PyQLQYMPAgCKyoQMTwWGjIя( "Y" ) + 2;
$_license_properties['version'] = _obfuscate_DTgxIT8XASQ3MCMeMzMHPgEJMFwRIzIя( _obfuscate_DRMPSs1AxkoDgUdODY4WzA7AQIMGgEя( ".", "", $_license_properties['version'] ), 1 );
$_license_properties['version'] = _obfuscate_DTcPD82GDsPAwkSKBoPLwgSDQonJiIя( $_license_properties['version'], 2 );
$_license_properties['version'] = _obfuscate_DRsUGCU5Fz4GFA4EFS9bIS4CLBobLwEя( ".", $_license_properties['version'] );
$a = array( "/^0(\\d+)/", "/\\.0(\\d+)/" );
$b = array( "\\1", ".\\1" );
$_license_properties['version'] = _obfuscate_DTIKGlwDCSQaMDsKJjwIQFwOEgYwGgEя( $a, $b, $_license_properties['version'] );
$license_info = _obfuscate_DQYXLQskJDYCGQQUBiNbIyofN0AmCwEя( );
$license_expire_time = $license_info['FILE_EXPIRY'];
if ( isset( $config['security_show_version'] ) && $config['security_show_version'] == "1" )
{
$version_text = " v".$_license_properties['version'];
}
else
{
$version_text = "";
}
$out .= "<p class=\"smallfont\" style=\"text-align: center; font-weight: bold;\">Game Control Panel".$version_text."<br/>\n\tCopyright ©2008 - ".$year_next.", <a href=\"http://intrepid-web.net/\" target=\"_blank\" title=\"IntrepidWeb\" alt=\"IntrepidWeb\">intrepid-web.net</a></p>"."\n";
if ( $license_expire_time <= _obfuscate_DSIZDigoWw4qCAQ1DzQpIz4sHiIHJCIя( ) + 604800 && $is_superadmin )
{
$extime = _obfuscate_DRULHi0KASkTMScwJCwfKjYaEjsIBREя( $license_expire_time - _obfuscate_DSIZDigoWw4qCAQ1DzQpIz4sHiIHJCIя( ) );
$out .= "<p class=\"smallfont\" style=\"text-align: center; font-weight: bold; color: red; font-size: 15px;\">[WARNING] GAME CP LICENSE EXPIRES IN: ".$extime['hours']." hours ".$extime['minutes']." minutes ".$extime['seconds']." seconds</p>";
}
return true;
}
function generate_menu( $menu_array, $parent, $options = "", $prepend = array( ), $item_cat_id = 0 )
{
global $options;
$prepend[0] = "";
foreach ( $menu_array as $key => $value )
{
if ( $value['parent'] == $parent )
{
$prepend[$value['id']] = $prepend[$parent]." ;; ;;";
if ( $parent == 0 )
{
$add_bg = "style=\"background-color: #E7E7E7; font-weight: bold;\"";
}
else
{
$add_bg = "style=\"background-color: #EBEBEB;\"";
}
if ( $value['id'] == $item_cat_id )
{
$selected = " selected=\"selected\"";
}
else
{
$selected = "";
}
$options .= "<option value=\"".$value['id']."\"".$add_bg.$selected.">".$prepend[$parent].$value['name']."</option>";
generate_menu( $menu_array, $key, $options, $prepend, $item_cat_id );
}
}
}
function print_outputs( $data )
{
unset( $mssql );
echo _obfuscate_DQkSKTUuNyM8ETwLIz8xDSUmCSI5ASIя( $data );
}
function gamecp_template( $template_name )
{
global $config;
global $is_superadmin;
if ( $template_name == "" )
{
return false;
}
$contents = "";
$header = "./includes/templates/header.html";
$footer = "./includes/templates/footer.html";
$filename = "./includes/templates/".$template_name.".html";
if ( _obfuscate_DQgiAhUXIRZAPzUvMjwJPAw1FSQrEjIя( $filename ) )
{
if ( _obfuscate_DQgiAhUXIRZAPzUvMjwJPAw1FSQrEjIя( $header ) )
{
$handle = _obfuscate_DQI9IRUbJlsXDjMRHQoeEC4PXFwWXDIя( $header, "rb" );
$contents .= _obfuscate_DQU7JS4uKTVbBAwGEQ1bCg0rHD9bFAEя( $handle, _obfuscate_DS43DwVcOUABJR8wCAImKhkuQCoWOxEя( $header ) )."\n";
_obfuscate_DTwMNAssKTEKJw4nNzY3NAoyJS87DCIя( $handle );
}
else
{
return "Unable to load the header.html file";
}
$handle = _obfuscate_DQI9IRUbJlsXDjMRHQoeEC4PXFwWXDIя( $filename, "rb" );
$contents .= _obfuscate_DQU7JS4uKTVbBAwGEQ1bCg0rHD9bFAEя( $handle, _obfuscate_DS43DwVcOUABJR8wCAImKhkuQCoWOxEя( $filename ) )."\n";
_obfuscate_DTwMNAssKTEKJw4nNzY3NAoyJS87DCIя( $handle );
if ( _obfuscate_DQgiAhUXIRZAPzUvMjwJPAw1FSQrEjIя( $footer ) )
{
$handle = _obfuscate_DQI9IRUbJlsXDjMRHQoeEC4PXFwWXDIя( $footer, "rb" );
$contents .= _obfuscate_DQU7JS4uKTVbBAwGEQ1bCg0rHD9bFAEя( $handle, _obfuscate_DS43DwVcOUABJR8wCAImKhkuQCoWOxEя( $footer ) );
_obfuscate_DTwMNAssKTEKJw4nNzY3NAoyJS87DCIя( $handle );
}
else
{
return "Unable to load the footer.html file";
}
return _obfuscate_DR4yEhEcIw4OIgQsKhYPBCs8AT80FhEя( $contents );
}
return "Invalid load of template";
}
$lang['no_permission'] = "<p style=\"text-align: center; font-weight: bold;\">Sorry, you do not have permission to access this page</p>";
$lang['invalid_page_load'] = "<p style=\"text-align: center; font-weight: bold;\">This is an invalid load of this page, please contact the administrator</p>";
$lang['invalid_page_id'] = "<p style=\"text-align: center; font-weight: bold;\">You have entered an invalid page ID</p>";
$lang['page_not_found'] = "<p style=\"text-align: center; font-weight: bold;\">The page you have requested cannot be found</p>";
$lang['must_be_logged_in_view'] = "<p style=\"text-align: center; font-weight: bold;\">You must log in to view this page</p>";
$lang['invalid_serial'] = "<p style=\"text-align: center; font-weight: bold;\">Invalid serial has been provided</p>";
$lang['no_such_item'] = "<p style=\"text-align: center; font-weight: bold;\">No such item found in the database.</p>";
$item_tbl_num = 36;
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_upper", "0" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_lower", "1" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_gauntlet", "2" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_shoe", "3" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_helmet", "4" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_shield", "5" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_weapon", "6" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_cloak", "7" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_ring", "8" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_amulet", "9" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_bullet", "10" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_maketool", "11" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_bag", "12" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_potion", "13" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_face", "14" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_force", "15" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_battery", "16" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_ore", "17" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_resource", "18" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_unitkey", "19" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_booty", "20" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_map", "21" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_town", "22" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_battledungeon", "23" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_animus", "24" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_guardtower", "25" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_trap", "26" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_siegekit", "27" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_ticket", "28" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_event", "29" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_recovery", "30" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_box", "31" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_firecracker", "32" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_miningtool", "33" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_radar", "34" );
_obfuscate_DQ0EJhIwGxowKjYSFSg8Ii4ZKyJAIgEя( "tbl_code_npclink", "35" );
?>
|
It appears this is not a complete decoding, but only what goes through a decoder.
And even those with other _obfuscate_ ...... do not go. |
Does anyone have solution for this Obfuscated code?Please |
|