Waraxe IT Security Portal
Login or Register
November 2, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 90
Members: 0
Total: 90
Full disclosure
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
APPLE-SA-10-28-2024-3 macOS Sequoia 15.1
APPLE-SA-10-28-2024-2 iOS 17.7.1 and iPadOS 17.7.1
APPLE-SA-10-28-2024-1 iOS 18.1 and iPadOS 18.1
Open Redirect / Reflected XSS - booked-schedulerv2.8.5
SEC Consult SA-20241024-0 :: Unauthenticated Path Traversal Vulnerability in Lawo AG - vsm LTC Time Sync (vTimeSync) (CVE-2024-6049)
[RESEARCH] DTLS 'ClientHello' Race Conditions in WebRTCImplementations
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Could you please decode CodeLock?
Post new topicReply to topic View previous topic :: View next topic
Could you please decode CodeLock?
PostPosted: Tue Dec 07, 2010 9:30 pm Reply with quote
binochal
Regular user
Regular user
Joined: Dec 07, 2010
Posts: 10




I would like decrypt the code to see all class in cms maximus.

link to download http://www.php-maximus.org/downloads/2010/Maximus_2010.tar.gz


File
Maximus_2010\html\kernel\class.php

Part code of class.php

<?php
/* WARNING: This script is protected. Any attempt to reverse engineer, debug or de-code this file or its dependent files is strictly prohibited */
$codelock_rfiled=dirname(__FILE__);
//if ($codelock_file == '') { echo '<font face="verdana" size="2"><br><b>Error!</b> You cannot run codelock directly...</font>'; } else {}
$codelock_active_key="12uVmD64";
@extract($_REQUEST);
error_reporting(E_ALL ^ E_NOTICE);
if ($codelock_act >= 1)
{
}
else
{
@set_time_limit(240);
}
if ($codelock_enc == "")
{
$codelock_enc="codelock.php";
}
else
{
}
if ($codelock_act >= 1)
{
$codelock_testsize=@filesize($codelock_filed/$codelock_enc);
if($codelock_testsize != $codelock_mastersize)
{
@chmod("$codelock_filed/$codelock_enc", 0777);

if (@copy ("$codelock_rfiled/$codelock_enc","$codelock_filed/$codelock_enc"))
{}
else
{
$codelock_fp2 = @fopen("$codelock_filed/$codelock_enc", "wb");
if ($codelock_fp2)
{ }
else
{ @unlink($codelock_filed/$codelock_enc); $codelock_fp2 = @fopen("$codelock_filed/$codelock_enc", "wb"); }
if ($codelock_fp2)
{ @fwrite($codelock_fp2, $codelock_masterdata); @fclose($codelock_fp2); }
}
@chmod("$codelock_enc", 0777);
}
}
else {}
$codelock_encbrowser="";
$codelock_usezlib="";
$codelock_scname="";
$codelock_coname="";
$codelock_extranotes="";
if (!function_exists('gzdeflate') AND $codelock_usezlib=="^")
{
echo"<font face='verdana' size='2'><br><b>Error!</b> You need to install the ZLIB module for PHP to run this script!</font>";
die();
}
else
{}
if (function_exists('codelock_enc_int'))
{ }
else
{
function codelock_enc_int($codelock_enc_int_code,$codelock_enc_key) {
$codelock_encint_code=base64_encode($codelock_enc_int_code);
if ($codelock_enc_key == "")
{ }
else
{
$codelock_enc_key=base64_encode($codelock_enc_key);
$codelock_k1=substr($codelock_enc_key,0,1);
$codelock_k2=substr($codelock_enc_key,1,1);
$codelock_k3=substr($codelock_enc_key,2,1);
$codelock_encint_code=str_replace("$codelock_k1", "$", $codelock_encint_code);
$codelock_encint_code=str_replace("$codelock_k2", "(", $codelock_encint_code);
$codelock_encint_code=str_replace("$codelock_k3", ")", $codelock_encint_code);
}
return $codelock_encint_code;
}
}
if (function_exists('codelock_dec_int'))
{ }
else
{
function codelock_dec_int($codelock_decint_code,$codelock_calc_key) {
if ($codelock_calc_key == "")
{ }
else
{
$codelock_calc_key=base64_encode($codelock_calc_key);
$codelock_k1=substr($codelock_calc_key,0,1);
$codelock_k2=substr($codelock_calc_key,1,1);
$codelock_k3=substr($codelock_calc_key,2,1);
$codelock_decint_code=str_replace("$", "$codelock_k1", $codelock_decint_code);
$codelock_decint_code=str_replace("(", "$codelock_k2", $codelock_decint_code);
$codelock_decint_code=str_replace(")", "$codelock_k3", $codelock_decint_code);
}
$codelock_decint_code=base64_decode($codelock_decint_code);
return $codelock_decint_code;
}
}
if (function_exists('codelock_dec'))
{ }
else
{
function codelock_dec($codelock_v){
switch($codelock_v){ case "A":$dv=0;break; case "B":$dv=1;break; case "C":$dv=2;break; case "D":$dv=3;break; case "E":$dv=4;break; case "F":$dv=5;break; case "G":$dv=6;break; case "H":$dv=7;break; case "I":$dv=8;break; case "J":$dv=9;break; case "K":$dv=10;break; case "L":$dv=11;break; case "M":$dv=12;break; case "N":$dv=13;break; case "O":$dv=14;break; case "P":$dv=15;break; case "Q":$dv=16;break; case "R":$dv=17;break; case "S":$dv=18;break; case "T":$dv=19;break; case "U":$dv=20;break; case "V":$dv=21;break; case "W":$dv=22;break; case "X":$dv=23;break; case "Y":$dv=24;break; case "Z":$dv=25;break; case "a":$dv=26;break; case "b":$dv=27;break; case "c":$dv=28;break; case "d":$dv=29;break; case "e":$dv=30;break; case "f":$dv=31;break; case "g":$dv=32;break; case "h":$dv=33;break; case "i":$dv=34;break; case "j":$dv=35;break; case "k":$dv=36;break; case "l":$dv=37;break; case "m":$dv=38;break; case "n":$dv=39;break; case "o":$dv=40;break; case "p":$dv=41;break; case "q":$dv=42;break; case "r":$dv=43;break; case "s":$dv=44;break; case "t":$dv=45;break; case "u":$dv=46;break; case "v":$dv=47;break; case "w":$dv=48;break; case "x":$dv=49;break; case "y":$dv=50;break; case "z":$dv=51;break; case "0":$dv=52;break; case "1":$dv=53;break; case "2":$dv=54;break; case "3":$dv=55;break; case "4":$dv=56;break; case "5":$dv=57;break; case "6":$dv=58;break; case "7":$dv=59;break; case "8":$dv=60;break; case "9":$dv=61;break; case "+":$dv=62;break; case "/":$dv=63;break; case "=":$dv=64;break; default: $dv=0;break; }
return $dv;
}
}
if (function_exists('codelock_run'))
{ }
else
{
function codelock_run($ciph,$key){
$m=0; $abc="";
for($i=0;$i<strlen($ciph);$i++){
$c=substr($ciph,$i,1);
$dv=codelock_dec($c);
$dv=($dv-$m)/4;
$fb=decbin($dv);
while(strlen($fb)<4){ $fb="0".$fb; }
$abc=$abc.$fb;
$m++;
if($m>3){ $m=0; }
}
$kl=0; $pd="";
for($j=0;$j<strlen($abc);$j=$j+Cool
{
$c=substr($abc,$j,Cool;
$k=substr($key,$kl,1);
$dc=bindec($c);
$dc=$dc - strlen($key);
$c=chr($dc);
$kl++;
if($kl>=strlen($key)){ $kl=0; }
$dc=ord($c)^ord($k);
$p=chr($dc);
$pd=$pd.$p;
}
return $pd;
}
}
if (substr($codelock_active_key, 0, 15) != "codelock_active")
{
if ($codelock_enc == "") { $codelock_enc="codelock.php"; } else {}
if($codelock_fixpath==""){ $codelock_located_file_temp=$codelock_filed."/".$codelock_enc; }else{ $codelock_located_file_temp=$codelock_fixpath."/".$codelock_enc; }
$codelock_fp3 = @fopen("$codelock_located_file_temp", "rb");
$codelock_skip = fgets($codelock_fp3, 8192);
$codelock_skip2 = fgets($codelock_fp3, 8192);
$codelock_skip3 = fgets($codelock_fp3, 65536);
$codelock_key_data = fread($codelock_fp3, filesize("$codelock_located_file_temp"));
fclose ($codelock_fp3);
if ($codelock_usezlib == "^") { $codelock_key_data=base64_decode($codelock_key_data); $codelock_key_data=gzinflate($codelock_key_data); } else {}
$codelock_key_data=codelock_dec_int($codelock_key_data,$codelock_active_key);
// Print codelock_key_data
echo "Print codelock key DATA";
eval($codelock_key_data);
if ($codelock_act >= 1) { } else { return; }
}
else
{
$codelock_askforkey="n";
if($codelock_askforkey == "y") { } else { $codelock_unlock="12uVmD64"; $codelock_sub="y"; }
if ($codelock_enc == "") { $codelock_enc="codelock.php"; } else {}
if($codelock_fixpath==""){ $codelock_openthisfile2=$codelock_filed."/".$codelock_enc; }else{ $codelock_openthisfile2=$codelock_fixpath."/".$codelock_enc; }
if($codelock_sub == "y")
{
$codelock_fp = @fopen("$codelock_openthisfile2", "rb");
$codelock_skip = fgets($codelock_fp, 8192);
$codelock_skip2 = fgets($codelock_fp, 8192);
$codelock_skip3 = fgets($codelock_fp, 65536);
$codelock_key_data = fread($codelock_fp, filesize("$codelock_openthisfile2"));
fclose ($codelock_fp);
if ($codelock_usezlib == "^") { $codelock_key_data=base64_decode($codelock_key_data); $codelock_key_data=gzinflate($codelock_key_data); } else {}
$codelock_exec=codelock_run($codelock_key_data,$codelock_unlock);
if (eregi("codelock_decrypted", $codelock_exec))
{
if ($codelock_usezlib == "^")
{
$codelock_codeii=$codelock_lock;
for ($codelock_ii=0; $codelock_ii < 11; $codelock_ii++) {
$codelock_codeii=gzinflate(base64_decode($codelock_codeii));
$codelock_codeii=str_replace("eval(gzinf"."late(base64_de"."code('", "",
$codelock_codeii);
$codelock_codeii=str_replace("')));", "", $codelock_codeii);
}
$codelock_lock=$codelock_codeii;
}
else
{
$codelock_lock=base64_decode($codelock_lock);
}
$codelock_skip3=$codelock_lock;
$codelock_skip3=str_replace("codelock_ac"."tive_key_text",
$codelock_unlock, $codelock_skip3);
$pres_codelock_skip3=$codelock_skip3;
if ($codelock_usezlib == "^")
{
$codelock_codeii=$codelock_skip3;
$codelock_codeii=gzdeflate($codelock_codeii);
$codelock_codeii=base64_encode($codelock_codeii);
for ($codelock_ii=0; $codelock_ii < 10; $codelock_ii++) {
$codelock_codeii="eval(gzinflate(base64_decode('".$codelock_codeii."')));";
$codelock_codeii=gzdeflate($codelock_codeii);
$codelock_codeii=base64_encode($codelock_codeii);
}
$codelock_skip3=$codelock_codeii;
} else
{
$codelock_skip3=base64_encode($codelock_skip3);
}
$codelock_nskip3=$codelock_skip3;
$codelock_nnskip3="";
if ($codelock_exp == "") { } else { $codelock_nnskip3.="$"."codelock_exp=\"$codelock_exp\"; "; }
if ($codelock_usezlib == "^") {
$codelock_nnnskip3="if ("."$"."codelock_file == '') { echo \"<font face='verdana' size='2'><br><b>Error!</b> You cannot run codelock directly...</font>\"; die(); } else {} ".$codelock_nnskip3."$"."codelock_lock=\"$codelock_nskip3\"; eval(gzinflate(base64_decode("."$"."codelock_lock))); return; ?".chr(62).chr(13).chr(10);
}
else
{
$codelock_nnnskip3="if ("."$"."codelock_file == '') { echo \"<font face='verdana' size='2'><br><b>Error!</b> You cannot run codelock directly...</font>\"; die(); } else {} ".$codelock_nnskip3."$"."codelock_lock=\"$codelock_nskip3\"; eval(base64_decode("."$"."codelock_lock)); return; ?".chr(62).chr(13).chr(10);
}
$codelock_exec2=codelock_enc_int($codelock_exec,$codelock_unlock);
if ($codelock_usezlib == "^")
{
$codelock_exec2=gzdeflate($codelock_exec2);
$codelock_exec2=base64_encode($codelock_exec2);
}
else
{}
$codelock_fdata=$codelock_skip.$codelock_skip2.'$codelock_rfiled=dirname(__FILE__); '.$codelock_nnnskip3.$codelock_exec2;
$codelock_masterdata=$codelock_fdata;
@chmod("$codelock_enc", 0777);
$codelock_fp2 = @fopen("$codelock_enc", "wb");
if ($codelock_fp2)
{ }
else
{
echo "<br><b>Error!</b> There is a write permission problem. You need to CHMOD the file: <b>$codelock_enc</b> to 777.";
die();
}
@fwrite($codelock_fp2, $codelock_fdata);
@fclose ($codelock_fp2);
@chmod("$codelock_enc", 0777);
$codelock_mastersize=@filesize($codelock_enc);
ob_start();
phpinfo(INFO_GENERAL);
$codelock_op_string = ob_get_contents();
ob_end_clean();
if (strstr($codelock_op_string, "indows")) { $codelock_w_op="y"; } else {}
if ($codelock_w_op == "y") { $codelock_sep_str=";"; } else { $codelock_sep_str=":"; }
$include_curr_dir=$codelock_filed;
$include_dir_write=ini_get('include_path');
$include_dir_write=$include_dir_write.$codelock_sep_str.$include_curr_dir;
ini_set('include_path',
$include_dir_write);
// Print codelock_exec
echo "Print codelock_exec";
print($codelock_exec);
}
else {}
}
else
{}
if ($codelock_act >= 1) { return; } else { echo"";
echo"<br><table width=\"600\" border=\"1\" cellspacing=\"10\" cellpadding=\"10\" bgcolor=\"#E1EAFF\" bordercolor=\"#006699\"><tr><td>";
if($codelock_frun == ""){ $codelock_openthisfile=$codelock_file; }else{ $codelock_openthisfile='http://'.$_SERVER['HTTP_HOST']."/".$codelock_frun."/".$codelock_file; }
echo"<form method=\"post\" action=\"$codelock_openthisfile\"><div align=\"center\">";
if ($codelock_scname == "")
{
echo "<font face=\"arial\" color=\"#006699\" size=\"4\"><b>This script is protected</b></font><br><br>";
}
else { echo "<font face=\"arial\" color=\"#006699\" size=\"4\"><b>$codelock_scname is protected</b></font><br><br>"; }
if ($codelock_sub == "y") { echo "<font face=\"arial\" color=\"#cc0000\" size=\"4\"><b>error </b></font><font face=\"arial\" color=\"#006699\" size=\"2\"><b>wrong unlock key</b></font><br><br>"; }
else {}
echo"<font face=\"Arial\" size=\"2\">Please enter your unlock key to proceed:</font><br><input type=\"text\" name=\"codelock_unlock\" size=\"32\" maxlength=\"64\">";
echo"<input type=\"hidden\" name=\"codelock_sub\" value=\"y\">";
echo"<input type=\"hidden\" name=\"codelock_encbrowser\" value=\"$codelock_encbrowser\">";
echo"<input type=\"hidden\" name=\"codelock_enc\" value=\"$codelock_enc\">";
echo"<br><br><input type=\"submit\" name=\"Submit\" value=\"Unlock Now >>>\">";
if ($codelock_coname == "") { } else { echo "<br><br><font face=\"arial\" color=\"#000000\" size=\"2\">This software is licensed to: $codelock_coname</font>"; }
if ($codelock_extranotes == "") {} else { echo "<br><font face=\"arial\" color=\"#000000\" size=\"2\"><b>Note: </b>$codelock_extranotes</font>"; }
echo"</div></form></td></tr></table>";
}
}
return;
?>

Maximus_2010\html\kernel\class1.php

Maximus_2010\html\install\base.php

Maximus_2010\html\install\class.php

Thanks for your help!
View user's profile Send private message
PostPosted: Wed Dec 08, 2010 4:02 pm Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




base.php
Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # XM Install 4.0.0 pour php-maximus.org # ||
|| # -----------------------------------------------------------------# ||
|| # Auteur : Benoit # ||
|| # Contact : dev@php-maximus.org # ||
|| # Site : www.vos-associations.fr # ||
|| # Date : 10/08/2008 # ||
|| # # ||
|| # Multilangue réalisé par Cyril le 23 04 2006 # ||
|| # # ||
|| # --------------- PHP MAXIMUS EST UN LOGICIEL LIBRE !! ----------- # ||
|| # DISTRIBUÉ SOUS LICENSE GNU/GPL # ||
|| #################################################################### ||
\*======================================================================*/
class database
{
function database($host = 'localhost', $user, $pass, $db, $table_prefix)
{
if (!function_exists('mysql_connect')) {
die('FATAL ERROR: MySQL support not available. Please check your configuration.');
}
if (!($this->_resource = @mysql_connect($host, $user, $pass))) {
die('FATAL ERROR: Connection to database server failed.');
}
if (!mysql_select_db($db)) {
die("FATAL ERROR: Database not found. Operation failed with error: " . mysql_error());
}
$this->_table_prefix = $table_prefix;
}

function getTableList()
{
$this->setQuery('SHOW tables');
$this->query();
return $this->loadResultArray();
}

function setQuery($sql, $prefix = '#__')
{
$this->_sql = $this->replacePrefix($sql, $prefix);
}

function getErrorNum()
{
return $this->_errorNum;
}



function getErrorMsg()
{
return str_replace(array("\n", "'"), array('\n', "\'"), $this->_errorMsg);
}
}
?>
View user's profile Send private message Visit poster's website
PostPosted: Wed Dec 08, 2010 4:05 pm Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




class1.php
Code:
<?php
defined('MAXIMUS') or die('Access denied core kernel MAXIMUS directly...');
define('SECUR_MAX', true);
if (@!is_file(ROOT_PATH . '/kernel/addons/message_box.php')) {
header('location: index.php');
die();
}
if (@!is_file(ROOT_PATH . '/modules/Copyrights/includes/index.php')) {
header('location: index.php');
die();
}
if (@!is_file(ROOT_PATH . '/admin/modules/max_admin_functions.php')) {
header('location: index.php');
die();
}
if (@ is_file(ROOT_PATH . '/includes/javascript.php')) {
header('location: index.php');
die();
}
if (@ is_file(ROOT_PATH . '/includes/meta.php')) {
header('location: index.php');
die();
}

// secure
$ct_rules = array('absolute_path', 'ad_click', 'alert', 'basepath', 'bash_history', '.bash_history', 'cat=http://', 'cgi-', 'chmod', 'chmod(', 'chmod%20', '%20chmod', 'chmod=', 'chown%20', 'chgrp%20', 'chown(', '/chown', 'chgrp(', 'chr(', 'chr=', 'chr%20', '%20chr', 'chunked', 'cookie=', 'cmd', 'cmd=', '%20cmd', 'cmd%20', '.conf', 'config.php', 'cp%20', '%20cp', 'cp(', 'diff%20', 'dat?', 'db_mysql.inc', 'document.location', 'document.cookie', 'drop%20', 'echr(', '%20echr', 'echr%20', 'echr=', '}else{', '.eml', 'esystem(', 'esystem%20', '.exe', 'exploit', 'file\://', 'file=http://', 'file=.http://', '*file=http://*', 'fopen', 'fwrite', '~ftp', 'ftp.exe', 'getenv', '%20getenv', 'getenv%20', 'getenv(', 'grep%20', '_global', 'global_', 'global[', '_globals', 'globals_', 'globals[', 'grep(', 'g\+\+', 'halt%20', '.history', '?hl=', '.htpasswd', 'http_', 'http-equiv', 'http/1.', 'http_php', 'http_user_agent', 'http_host', '&icq', 'if{', 'if%20{', 'img src', 'img%20src', '.inc.php', '.inc', 'insert%20into', 'ISO-8859-1', 'ISO-', 'javascript\://', '.jsp', '.js', 'kill%20', 'kill(', 'killall', '%20like', 'like%20', 'locate%20', 'locate(', 'lsof%20', 'mdir%20', '%20mdir', 'mdir(', 'mcd%20', 'motd%20', 'mrd%20', 'rm%20', '%20mcd', '%20mrd', 'mcd(', 'mrd(', 'mcd=', 'mod_gzip_status', 'modules/', 'mrd=', 'mv%20', 'name=http://', '*name=http://*', 'nc.exe', 'new_password', 'nigga(', '%20nigga', 'nigga%20', '~nobody', 'org.apache', '+outfile+', '%20outfile%20', '*/outfile/*', ' outfile ', 'outfile', 'password=http:', 'passwd%20', '%20passwd', 'passwd(', 'phpadmin', 'perl%20', '/perl', 'phpbb_root_path', '*/phpbb_root_path/*', 'p0hh', 'ping%20', '.pl', 'powerdown%20', 'rm(', '%20rm', 'rmdir%20', 'mv(', 'rmdir(', '_php', 'php_', 'phpinfo()', '<?php', 'reboot%20', '/robot.txt', '~root', 'root_path', 'rush=', '%20rush', 'rush%20', 'secure_site, ok', 'select%20', 'select from', 'select%20from', '_server', 'server_', 'server[', 'server-info', 'server-status', 'servlet', 'sql=', '<script', '<script>', '</script', 'script>', '/script', 'switch{', 'switch%20{', '.system', 'system(', 'telnet%20', 'traceroute%20', '.txt', 'union%20', '%20union', 'union(', 'union=', 'vi(', 'vi%20', 'wget', 'wget%20', '%20wget', 'wget(', 'window.open', 'wwwacl', 'xp_enumdsn', 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', '$_request', '$_get', '$request', '$get', '&aim', '/etc/password', '/etc/shadow', '/etc/groups', '/etc/gshadow', '/bin/ps', 'uname\x20-a', '/usr/bin/id', '/bin/echo', '/bin/kill', '/bin/', '/chgrp', '/usr/bin', 'bin/python', 'bin/tclsh', 'bin/nasm', '/usr/x11r6/bin/xterm', '/bin/mail', '/etc/passwd', '/home/ftp', '/home/www', '/servlet/con', 'http://www.google.de/search', 'google.de/search', 'yahoo.de', 'lycos.de', 'google.com', 'google.fr', 'fireball.de', '?>');

// Now the URL Protection Engine
$check = str_replace($ct_rules, '*', GET_QUERY_STRING);
if (GET_QUERY_STRING != $check) {
block_ip('1');
}

// bots secure
$ct_rules = array('atspider', 'autoemailspider', 'cherrypicker', 'collage', 'custo', 'dsurf', 'dts agent', 'ecatch', 'elitesys', 'emailcollector', 'emailsiphon', 'esirover', 'extrac', 'emailwolf', 'getbot ', 'geturl', 'getweb', 'havindex', 'hulud', 'httrack', 'internet explore', 'infospiders', 'jeeves', 'jpeg hunt', 'kdd explorer', 'lightningdownload', 'memoweb', 'munky', 'pbwf', 'roverbot', 'spiderbot', 'ssearcher100', 'sweeper', 'teleport', 'templeton', 'vobsub', 'w3mir', 'webbandit', 'webcatcher', 'webcopier', 'webcopy', 'webfetcher', 'webmirror', 'webreaper', 'webvac', 'webwalk', 'wget', 'webcopier ', 'webzip', 'wonder', 'xget');
$check = str_replace($ct_rules, '*', strtolower(USER_AGENT));
if (strtolower(USER_AGENT) != $check) {
block_ip($blocker_row);
}

Function Foot()
{
define('CONTROL_END', true);
if (!defined('ADMIN_MAX')) {
if (MAXADV_MESSAGE_BOX == 0 && !defined('NO_MESSAGE_FOOTER')) {
Message_Box('Down');
}
if (MAXADV_BLOCKSFOOTER == 0 && !defined('NO_BLOCKS_FOOTER')) {
global $blocks;
$blocks->blocks('Down');
}
if (MAXADV_CENTERBLOCKSFOOTER == 0) {
if (is_file(INCLUDE_PATH . 'kernel/class/website/class.center-blocks.php')) {
include_once(INCLUDE_PATH . 'kernel/class/website/class.center-blocks.php');
}
defined('HOME_FILE') ? CenterBlocks::Box('3') : CenterBlocks::Box('4');
}
if ((defined('MODULE_FILE') and is_file(ROOT_PATH . '/modules/' . MODULE_NAME . '/copyright.php')) and !defined('HOME_FILE')) {
$cpname = str_replace('_', ' ', MODULE_NAME);
echo '<div align="right"><a href="javascript:openwindow()" title="PHP Maximus CMS and Blog module ' . $cpname . ' &copy;">' . $cpname . ' &copy;</a></div>';
}
if (defined('MODULE_FILE') and (is_file(ROOT_PATH . '/modules/' . MODULE_NAME . '/admin/panel.php') && defined('ADMIN_ALLOW'))) {
br('1');
echo '<div id="panel_admin">';
include_once(ROOT_PATH . '/modules/' . MODULE_NAME . '/admin/panel.php');
echo '</div>';
br('1');
}
}

themefooter();
endmax();
global $rewrite;
if ((!empty($rewrite)) && (!defined('ADMIN_MAX'))) {
GoogleTap_SG::GTv2_footer();
}
echo display_debug();
$GLOBALS['db']->sql_close();
if (MAXADV_COPYRIGHTS_CLOSE_DIV == 1) {
echo '</div>';
}
if (MAXADV_COPYRIGHTS_CLOSE_TABLE == 1) {
echo '</td></tr></table>';
}
echo "</body>\n</html>";
// @ob_end_flush();
die();
}

if (!defined('FORUM_ADMIN')) {
Function Redirect_Url($UrlX)
{
isset($UrlX) ? $UrlX = secure($UrlX, '', 'clean') : $UrlX = 'index.php';
($UrlX != 'none') ? $UrlX = $UrlX : $UrlX = 'index.php';
$UrlX = str_replace('&amp;', '&', $UrlX);
header("Location: $UrlX");
die();
}
}

Function Ramasse_Miette($folder = false, $time = false)
{
$folder = secure($folder, '', 'clean', 'sec');
$time = secure($time, 'num');
if (empty($folder)) {
return;
}
if (!is_dir($folder)) {
return;
}
if (empty($time)) {
$time = 2419200;
}
$dir = @opendir($folder);
while ($filename = @readdir($dir)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'admin')
continue;
$vartime = @filemtime($folder . $filename);
if (($vartime + $time) <= MAX_TIME) {
@unlink($folder . $filename);
}
}
}

Function Kill_Sessions()
{
$dir = ROOT_PATH . '/' . CACHE . '/' . SESSIONS_PATH . '/';
$jpc = @opendir($dir);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
@unlink($dir . $filename);
}
}

Function Empty_Cache_Module($module)
{
if (!defined('ADMIN_ALLOW')) {
return false;
}
if (empty($module)) {
return false;
}
$module = secure($module, '', 'clean', 'xss');
$dir = ROOT_PATH . '/' . CACHE . '/Modules/';
$jpc = @opendir($dir);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
if (strstr($filename, $module)) {
@unlink($dir . $filename);
}
}
}

Function Empty_Cache_Blocks()
{
if (!defined('ADMIN_ALLOW')) {
return false;
}
$dir = ROOT_PATH . '/' . CACHE . '/Blocks/';
$jpc = @opendir($dir);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
if (strstr($filename, $module)) {
@unlink($dir . $filename);
}
}
}

Function OpenCacheb($name_block = false, $var_ext = false, $retention = false, $status = false)
{
$retention = secure($retention, 'num');
if (empty($retention)) {
return;
}
global $cookie;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == 1) {
$cookie[1] = 'Anonyme';
} elseif (($status == 2) && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = ROOT_PATH . '/' . CACHE . '/Blocks/' . $name_block . '_' . PREFIX_CACHE . '_' . $cookie[1] . '.' . $var_ext;
if (@file_exists($path)) {
$vartime = @filemtime($path);
if (($vartime + $retention) <= MAX_TIME) {
@unlink($path);
}
}

if (@file_exists($path)) {
$fp = @fopen($path, 'rb');
$length = @filesize($path);
$data = @fread($fp, $length);
@fclose($fp);
return $data;
} else {
}
}

Function CloseCacheb($content = false, $name_block = false, $var_ext = false, $retention = false, $status = false)
{
$retention = secure($retention, 'num');
if (empty($retention)) {
return;
}
global $cookie, $begin_content, $end_content;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == 1) {
$cookie[1] = 'Anonyme';
} elseif (($status == 2) && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = ROOT_PATH . '/' . CACHE . '/Blocks/' . $name_block . '_' . PREFIX_CACHE . '_' . $cookie[1] . '.' . $var_ext;
$contentu = '';
if ($var_ext == 'php') {
$contentu .= $begin_content;
$contentu .= $end_content;
}
$contentu .= "\n\n<!-- Start Cache block $name_block PHP Maximus CMS v2008 -->\n";
$contentu .= $content;
$contentu .= "\n<!-- End Cache block $name_block PHP Maximus CMS v2008 -->\n\n";
$file = @fopen($path, 'w');
@fwrite($file, $contentu);
@fclose($file);
}

Function MaxCache()
{
if (!defined('CONTROL_END')) {
header('location: ../index.php');
die();
}
define('MAX_CACHE1', true);
define('LOADING', true);
$sigle = $MAXtop = $copyright = $ml = $iws = '';
if (defined('MAX_CACHE')) {
if ((MAXADV_IMAGEMAXCACHE == 1) and !defined('ADMIN_MAX')) {
$sigle = 'Max Cache Active';
} else {
$sigle = '<img src="images/powered/maxcacheon.gif" alt="Max Cache On" title="Max Cache On" />';
}
} else {
if (MAXADV_IMAGEMAXCACHE == 1) {
$sigle = 'Max Cache NoActive';
} else {
$sigle = '<img src="images/powered/maxcacheoff.gif" alt="Max Cache Off" title="Max Cache Off" border="0" />';
}
}
if (MAXADV_IMAGETOP == 1) {
$MAXtop = 'Top';
} else {
$MAXtop = '<img src="images/powered/top.gif" alt="Top" title="Top" border="0" />';
}
if (MAXADV_IMAGECOPY == 1) {
$copyright = 'Copyright';
} else {
$copyright = '<img src="images/powered/copyright.gif" alt="Copyright" title="Copyright" border="0" />';
}
if (MAXADV_IMAGEML == 1) {
$ml = _LEGALSMENTIONS;
} else {
$ml = '<img src="images/powered/mentions-legales.gif" alt="' . _LEGALSMENTIONS . '" title="' . _LEGALSMENTIONS . '" border="0" />';
}
if (MAXADV_IMAGEWEBSITE == 1) {
$iws = 'PHP Maximus CMS';
} else {
$iws = '<img src="images/powered/Maximus.gif" alt="PHP Maximus CMS" title="PHP Maximus CMS" border="0" />';
}
echo ' ;;<a href="#max_top">' . $MAXtop . '</a> ;;<font size="1">' . $sigle . '</font> ;;<a href="modules.php?name=Copyrights">' . $copyright . '</a> ;;<a href="modules.php?name=Copyrights&amp;op=legalsmentions">' . $ml . '</a> ;;<a href="http://www.php-maximus.org" target="new">' . $iws . '</a>' . "\n";
echo affiliations::Marqueur_Xiti();
br('1');
}

Function OpenCache($var_name = false, $var_mod = false, $var_ext = false, $retention = false, $status = false)
{
$retention = secure($retention, 'num');
if (empty($retention)) {
return;
}
global $cookie;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == 1) {
$cookie[1] = 'Anonyme';
} elseif (($status == 2) && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = ROOT_PATH . '/' . CACHE . '/Modules/' . $var_name . '_' . PREFIX_CACHE . '_' . $var_mod . '_' . $cookie[1] . '.' . $var_ext;
if (@file_exists($path)) {
$vartime = @filemtime($path);
if (($vartime + $retention) <= MAX_TIME) {
@unlink($path);
}
}
if (@file_exists($path)) {
@readfile($path);
define('MAX_CACHE', true);
incof();
} else {
@ob_start();
}
}

function CloseCache($var_name = false, $var_mod = false, $var_ext = false, $retention = false, $status = false)
{
$retention = secure($retention, 'num');
if (empty($retention)) {
return;
}
global $begin_content, $end_content, $cookie;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == 1) {
$cookie[1] = 'Anonyme';
} elseif (($status == 2) && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = ROOT_PATH . '/' . CACHE . '/Modules/' . $var_name . '_' . PREFIX_CACHE . '_' . $var_mod . '_' . $cookie[1] . '.' . $var_ext;
$content = '';
if ($var_ext == 'php') {
$content .= $begin_content;
$content .= $end_content;
}
$content .= "\n\n<!-- Start Cache module $var_name $var_mod $retention PHP Maximus CMS/Blog v2009 -->\n";
$content .= @ob_get_contents();
$content .= "\n<!-- End Cache module $var_name $var_mod $retention PHP Maximus CMS/Blog v2009 -->\n\n";
$file = @fopen($path, 'w');
@fwrite($file, $content);
@fclose($file);
}

FUNCTION Delete_Cache_SQL($filename)
{
if (empty($filename)) {
return;
}
if (@is_file(ROOT_PATH . '/' . CACHE . '/Configuration/' . PREFIX_CACHE . '_cache_' . $filename . '.php')) {
@unlink(ROOT_PATH . '/' . CACHE . '/Configuration/' . PREFIX_CACHE . '_cache_' . $filename . '.php');
}
}
FUNCTION cache_sql($filename, $varname, $datas)
{
if (empty($filename)) {
return;
}
if (empty($varname)) {
return;
}
if (empty($datas)) {
return;
}
$file = @fopen(ROOT_PATH . '/' . CACHE . '/Configuration/' . PREFIX_CACHE . '_cache_' . $filename . '.php', 'wb');
if (!$file) {
die('Unable to write configuration cache file to cache directory. Please make sure PHP has write access to the directory \'' . CACHE . '/Configuration/\'');
}
@fwrite($file, '<?php' . "\n\n" . 'defined(\'MAXIMUS\') or Header(\'Location: ../index.php\');' . "\n\n" . '$' . $varname . ' = ' . var_export($datas, true) . ';' . "\n\n" . '');
@fclose($file);
}

Function Incoh($var_mod = false, $var_ext = false, $retention = false, $status = false)
{
if (is_file(ROOT_PATH . '/header.php')) {
include_once(ROOT_PATH . '/header.php');
}
echo "\n\n<!-- Web Site under PHP Maximus CMS/Blog Copyrights v2009 -->\n\n";
if ($retention != false) {
opencache(MODULE_NAME, $var_mod, $var_ext, $retention, $status);
}
}

Function Incof($var_mod = false, $var_ext = false, $retention = false, $status = false)
{
if ($retention != false) {
closecache(MODULE_NAME, $var_mod, $var_ext, $retention, $status);
}
echo "\n\n<!-- Web Site under PHP Maximus CMS/Blog Copyrights v2009 -->\n\n";
if (is_file(ROOT_PATH . '/footer.php')) {
include_once(ROOT_PATH . '/footer.php');
}
}

Function EndMax()
{
global $copyright, $total_time, $start_time;
echo "\n\n<!-- PHP Maximus Start Statistics v2009 -->\n";
if (!defined('ADMIN_MAX')) {
if (MAXADV_STATISTICS == 0) {
if (is_file(ROOT_PATH . '/kernel/counter.php')) {
include_once(ROOT_PATH . '/kernel/counter.php');
}
}
if (MAXADV_MSANALYSIS == 0) {
if (is_file(ROOT_PATH . '/modules/MS_Analysis/mstrack.php')) {
include_once(ROOT_PATH . '/modules/MS_Analysis/mstrack.php');
}
}
}
echo "\n<!-- PHP Maximus End include Statistics v2009 -->\n";
if (MAXADV_CUSTOMFOOTER == 0) {
if (is_file(ROOT_PATH . '/includes/custom_files/custom_footer.php')) {
include_once(ROOT_PATH . '/includes/custom_files/custom_footer.php');
}
}
echo "\n<!-- End Footer by PHP Maximus CMS/Blog v2009 -->\n";
if (Serverload_Status === true) {
$serverload = ServerLoad();
}
$excuted_queries = $GLOBALS['db']->num_queries;
$mtime = @microtime();
$mtime = @explode(' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$total_time = @round(($endtime - $start_time), 4);
$sql_time = @round($GLOBALS['db']->sql_time, 4);
$sql_part = @round($sql_time / $total_time * 100);
$php_part = 100 - $sql_part;
(preg_match('`(left|center|right)`', MAXADV_COPYRIGHTS_PLACE)) ? $place = MAXADV_COPYRIGHTS_PLACE : $place = 'left';
echo "\n\n<div align='$place'><!-- $copyright -->\n\n";
br('1');
if (MAXADV_TIME_GENERATION == 0) {
echo '<font size="1">[ ' . _PAGEGENERATION . ' <strong>' . $total_time . '</strong> sec ]</font>';
}
if (MAXADV_PHPMYSQL == 0) {
if ($sql_part >= 100) {
$sql_part = '99';
$php_part = '1';
}
echo '<font size="1"> [ ' . _TIME_PHP_SQL . ' PHP: <strong>' . $php_part . '%</strong> - SQL: <strong>' . $sql_part . '%</strong> ]</font> ';
}
if (MAXADV_SQLREQUESTS == 0) {
echo '<font size="1"> [ ' . _SQLREQUESTS . ': <strong>' . $excuted_queries . '</strong> ]</font> ';
}
if (MAXADV_MEMORY == 0) {
if (is_file(ROOT_PATH . '/kernel/addons/memory_use.php')) {
include_once(ROOT_PATH . '/kernel/addons/memory_use.php');
}
echo '<font size="1"> [ ' . _MEMORY . ': ' . Memory_Use() . ' ]</font> ';
}
if (MAXADV_VIEWSPAGE == 0 && Serverload_Status === true) {
echo '<font size="1"> [ <strong>' . $serverload . '</strong> ' . _PAGESVIEWSHOUR . ' ]</font> ';
}
br('1');
echo MaxCache();
echo '</div>';
}

Function Copy_Files_Secure($folder)
{
if (@!is_file(INCLUDE_PATH . '' . CACHE . '/' . $folder . '/.htaccess')) {
@ copy(INCLUDE_PATH . 'kernel/securefiles/.htaccess', INCLUDE_PATH . '' . CACHE . '/' . $folder . '/.htaccess');
}
if (@!is_file(INCLUDE_PATH . '' . CACHE . '/' . $folder . '/index.html')) {
@ copy(INCLUDE_PATH . 'kernel/securefiles/index.html', INCLUDE_PATH . '' . CACHE . '/' . $folder . '/index.html');
}
if (@!is_file(INCLUDE_PATH . '' . CACHE . '/' . $folder . '/index.php')) {
@ copy(INCLUDE_PATH . 'kernel/securefiles/index.php', INCLUDE_PATH . '' . CACHE . '/' . $folder . '/index.php');
}
}


if (!isset($lo)) {
$lo = '';
}
switch ($lo) {
case 'mod_debug':
if (defined('ADMIN_ALLOW')) {
$state = secure($state, 'bin');
if ($state == 1) {
@setcookie('mod_debug', $state, time() + 2592000);
} else {
@setcookie('mod_debug', false);
}
}
redirect_url(get_referer());
die();
break;

case 'mod_debug_errors':
if (defined('ADMIN_ALLOW')) {
$state = secure($state, 'bin');
if ($state == 1) {
@ $_SESSION['mod_debug_errors'] = 1;
} else {
@ $_SESSION['mod_debug_errors'] = 0;
}
}
redirect_url(get_referer());
die();
break;

case "newcache":
if (defined('ADMIN_ALLOW')) {
$CACHE_CONFIG['data_dir'] = INCLUDE_PATH . '' . CACHE . '/Modules/';
$jpc = @opendir($CACHE_CONFIG['data_dir']);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
if (@strstr($filename, $name)) {
@unlink($CACHE_CONFIG['data_dir'] . $filename);
}
}
Copy_Files_Secure('Modules');
}
redirect_url(get_referer());
die();
break;

case "newsessions":
if (defined('ADMIN_ALLOW')) {
$CACHE_CONFIG['data_dir'] = INCLUDE_PATH . '' . CACHE . '/' . SESSIONS_PATH . '/';
$jpc = @opendir($CACHE_CONFIG['data_dir']);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
@unlink($CACHE_CONFIG['data_dir'] . $filename);
}
Copy_Files_Secure('sessions');
}
redirect_url(get_referer());
die();
break;

case 'VideCache':
if (!defined('ADMIN_ALLOW')) {
redirect_url(get_referer());
die();
}
if ((empty($folder)) || ($folder != 'Blocks') && ($folder != 'Modules') && ($folder != 'Configuration')) {
redirect_url(get_referer());
die();
}
$CACHE_CONFIG['data_dir'] = INCLUDE_PATH . '' . CACHE . '/' . $folder . '/';
$jpc = @opendir($CACHE_CONFIG['data_dir']);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
@unlink($CACHE_CONFIG['data_dir'] . $filename);
}

Copy_Files_Secure($folder);

if ($folder == 'Modules') {
$CACHE_CONFIG['data_dir'] = INCLUDE_PATH . '' . CACHE . '/Modules/admin/';
$jpc = @opendir($CACHE_CONFIG['data_dir']);
while ($filename = @readdir($jpc)) {
if ($filename === '.' or $filename === '..' or $filename === '.htaccess' or $filename === 'index.html' or $filename === 'index.php')
continue;
@unlink($CACHE_CONFIG['data_dir'] . $filename);
}
@rmdir(INCLUDE_PATH . '' . CACHE . '/Modules/admin');
Copy_Files_Secure('Modules');
}
break;
}

Function get_maximus_update()
{
if (defined('ADMIN_ALLOW')) {
$tab = @parse_ini_file('http://www.php-maximus.org/version.php?num=11');
if (!empty($tab)) {
return $tab;
} else {
return '-';
}
} else {
return false;
}
}

Function get_maximus_update_date()
{
$max_update = maximus_update_get_config();
if (($max_update['xdate'] + 86400) < MAX_TIME) {
$tab = get_maximus_update();
$version = secure($tab['maximus'], '', 'clean', 'xss');
$row = $GLOBALS['db']->query("UPDATE `" . TABLE_MAXUPDATE_CONFIG . "` SET `config_value`='" . MAX_TIME . "' WHERE `config_name`='xdate'");
$row1 = $GLOBALS['db']->query("UPDATE `" . TABLE_MAXUPDATE_CONFIG . "` SET `config_value`='$version' WHERE `config_name`='version'");
}
}

function display_debug()
{
global $admin, $admin2, $user, $wb_query, $lang;

if (defined('ADMIN_ALLOW')) {
$play_debug = $play_debug1 = '';
if (MAXIMUS_DEBUG === true) {
$play_debug = '<a href="?lo=mod_debug&amp;state=0"><img src="images/pause.png" alt="' . _DEBUG_MOD_DEBUG_STOP . '" title="' . _DEBUG_MOD_DEBUG_STOP . '" border="0" /></a>';
} else {
$play_debug = '<a href="?lo=mod_debug&amp;state=1"><img src="images/go.png" alt="' . _DEBUG_MOD_DEBUG_START . '" title="' . _DEBUG_MOD_DEBUG_START . '" border="0" /></a>';
}
if (MAXIMUS_DISPLAY_ERROR === true) {
$play_debug1 = '<a href="?lo=mod_debug_errors&amp;state=0"><img src="images/alert.png" alt="' . _DEBUG_MOD_DEBUG_ERROR_STOP . '" title="' . _DEBUG_MOD_DEBUG_ERROR_STOP . '" border="0" /></a>';
} else {
$play_debug1 = '<a href="?lo=mod_debug_errors&amp;state=1"><img src="images/run.png" alt="' . _DEBUG_MOD_DEBUG_ERROR_START . '" title="' . _DEBUG_MOD_DEBUG_ERROR_START . '" border="0" /></a>';
}
$content_debug1 = '<br/><table style="width:100%;"><tr><td colspan="2"> ' . $play_debug . ' ' . $play_debug1 . ' ' . _MAX_DISTROY . ': <a href="./?lo=VideCache&amp;folder=Modules" title="' . _MAX_DISTROY . ' ' . _EMPTY_CACHE_MODULES . '">' . _EMPTY_CACHE_MODULES . '</a> - <a href="./?lo=VideCache&amp;folder=Blocks" title="' . _MAX_DISTROY . ' ' . _EMPTY_CACHE_BLOCS . '">' . _EMPTY_CACHE_BLOCS . '</a> - ';

if (defined('MODULE_NAME')) {
$content_debug1 .= '<a href="./?lo=newcache&amp;name=' . MODULE_NAME . '" title="' . _MAX_DISTROY . ' ' . _EMPTY_CACHE_MODULE . ' ' . MODULE_NAME . '">' . _EMPTY_CACHE_MODULE . ' ' . MODULE_NAME . '</a> - ';
}

$content_debug1 .= '<a href="./?lo=newsessions" title="' . _MAX_DISTROY . ' ' . _EMPTY_SESSIONS . '">' . _EMPTY_SESSIONS . '</a></td></tr></table>' . "\n";
echo $content_debug1;
}

if (MAXIMUS_DEBUG === true && defined('ADMIN_ALLOW')) {
$content_debug = "<script type='text/javascript'>\n
//<![CDATA[\n
function affiche_debug(div) {\n
var elem = document.getElementById(div);\n
if (elem.style.display=='') {elem.style.display='none'; return;}\n
elem.style.display='';\n
}\n
//]]>\n
</script>\n\n";
if (defined('ADMIN_ALLOW')) {
if (defined('ADMIN_MAX')) {
$admin_cook = $admin[0] . ':' . $admin[1] . ':' . $admin[2];
$admin_cook2 = $admin2[0] . ':' . $admin2[1];
} else {
$admin_cook = base64_decode($admin);
$admin_cook2 = base64_decode($admin2);
}
}
$tablo_content = 'border-bottom: 1px grey dotted; padding-left: 0.5em;';
$tablo_title = 'background: #fef7e6; border-bottom: 1px black solid; font-weight : bold; padding-left: 0.2em;';

$content_debug .= "<table style='width:100%;'><tr><td colspan='2' style='color: red;'>" . _MAX_WARNING_SECURITY . "</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_title'>Type du Cookie</td><td style='$tablo_title'>Données issues des cookies</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_content'><em>Cookie User:</em></td><td style='$tablo_content'> " . base64_decode($user) . "</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_content'><em>Cookie Admin:</em></td><td style='$tablo_content'> $admin_cook</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_content'><em>Cookie Secure Admin:</em></td><td style='$tablo_content'> $admin_cook2</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_content'><em>Cookie Langue:</em></td><td style='$tablo_content'> $lang</td></tr>\n";
$content_debug .= "<tr><td style='$tablo_content'><em>PHP_SELF:</em></td><td style='$tablo_content'> " . $_SERVER['PHP_SELF'] . "</td></tr></table>\n";

$content_debug .= "<br/>\n<br/>\n<div id='debugquery'>\n";
$content_debug .= "<table style='width:100%;'><tr><td style='$tablo_title'>Time</td><td style='$tablo_title'>Calcul</td><td style='$tablo_title'>Type</td><td style='$tablo_title'>Query</td></tr>\n";

$total = count($wb_query['query']);

for ($a = 0; $a < $total; $a++) {
$content_debug .= "<tr><td style='$tablo_content'>". @$wb_query['sqltime'][$a] . "</td>\n";
$content_debug .= "<td style='$tablo_content'>". @$wb_query['time'][$a] . "</td>\n";
$content_debug .= "<td style='$tablo_content'>". @$wb_query['type'][$a] . "</td>\n";
$content_debug .= "<td style='$tablo_content'>";

if (!empty($wb_query['query'][$a]) and ($wb_query['query'][$a] != @$wb_query['error'][$a + 1])) {
$content_debug .= "<font color='green'>" . $wb_query['query'][$a] . "</font>";
}
if (!empty($wb_query['error'][$a])) {
$content_debug .= "<font color='red'>" . $wb_query['error'][$a] . "</font>";
}
$content_debug .= "</td></tr>\n";
}

$content_debug .= "</table>\n";
$content_debug .= "<br /></div>\n";
$total_req = $total;
$content_debug .= "<a style='cursor: pointer; cursor: hand' onclick='affiche_debug(\"debugquery\");'>Nbre de Requ&ecirc;tes SQL $total_req</a><br /><br />\n";

// load files
$content_debug .= "<div id='debugfiles' style='display: none'>\n";
$included_files = @get_included_files();

$i = 1;

foreach ($included_files as $filename) {
$content_debug .= $filename . "<br />\n";
$i++;
}

$content_debug .= "<br /></div>\n";
$content_debug .= "<a style='cursor: pointer; cursor: hand' onclick='affiche_debug(\"debugfiles\");'>Nbre d&acute;includes $i</a><br /><br />\n";
return $content_debug;
}
}


class Stopper
{
function blocker_bled()
{
global $BLED_ARRAY;
if (!isset($BLED_ARRAY)) {
return true;
}
$host = GET_HOST;
$array = explode('.', $host);
$data['domain'] = strtolower($array[sizeof($array) - 1]);
if (in_array($data['domain'], $BLED_ARRAY)) {
block_ip('6');
die();
}
}
}
if (isset($BLED_ARRAY)) {
Stopper::blocker_bled();
}

class Referencement
{
function sitemaps($fichier, $contenu)
{
if (@is_writeable(CACHE . '/sitemaps/')) {
$file = @fopen(CACHE . '/sitemaps/' . $fichier . '.xml', 'w+');
$content = "<?xml ";
$content .= "version='";
$content .= "1.0'";
$content .= " encoding='";
$content .= "UTF-8'";
$content .= "?>\n";
$content .= "<urlset xmlns='";
$content .= "http://www.google.com/schemas/sitemap/0.84'";
$content .= ">\n";
$content .= $contenu;
$content .= "</urlset>";
@fwrite($file, $content);
@fclose($file);
}
}

function MapForum()
{
global $nukeurl, $GOOGLETAPSG_ARRAY;
$datejour = date('Y-m-d');
$a = $b = $c = 0;
$contenu = '';
$sql = "SELECT `cat_id` FROM `" . CATEGORIES_TABLE . "` ORDER BY `cat_order` ";
foreach ($GLOBALS['db']->get_list_object($sql) as $row) {
$row->cat_id = secure($row->cat_id, 'num');
$a++;
$contenu .= "<url>\n";
if (in_array('Forums', $GOOGLETAPSG_ARRAY)) {
$contenu .= "<loc>" . $nukeurl . "/" . GTv2_pref . "_forums_index_" . $row->cat_id . ".html</loc>\n";
} else {
$contenu .= "<loc>" . $nukeurl . "/modules.php?name=Forums&amp;file=index&amp;c=" . $row->cat_id . "</loc>\n";
}
$contenu .= "<lastmod>$datejour</lastmod>\n";
$contenu .= "<changefreq>daily</changefreq>\n";
$contenu .= "<priority>0.8</priority>\n";
$contenu .= "</url>\n";


$sql1 = "SELECT `forum_id` FROM `" . FORUMS_TABLE . "` WHERE `cat_id`='" . $row->cat_id . "' ORDER BY `forum_order`";
foreach ($GLOBALS['db']->get_list_object($sql1) as $row1) {
$row1->forum_id = secure($row1->forum_id, 'num');
$b++;
$contenu .= "<url>\n";
if (in_array('Forums', $GOOGLETAPSG_ARRAY)) {
$contenu .= "<loc>" . $nukeurl . "/" . GTv2_pref . "_forum_" . $row1->forum_id . ".html</loc>\n";
} else {
$contenu .= "<loc>" . $nukeurl . "/modules.php?name=Forums&amp;file=viewforum&amp;f=" . $row1->forum_id . "</loc>\n";
}
$contenu .= "<lastmod>$datejour</lastmod>\n";
$contenu .= "<changefreq>daily</changefreq>\n";
$contenu .= "<priority>0.8</priority>\n";
$contenu .= "</url>\n";
$p = 0;
$sql2 = "SELECT `topic_id` FROM `" . TOPICS_TABLE . "` WHERE `forum_id`='" . $row1->forum_id . "' ORDER BY `topic_time` DESC";
foreach ($GLOBALS['db']->get_list_object($sql2) as $row2) {
$row2->topic_id = secure($row2->topic_id, 'num');
$c++;
$p++;
if ($p <= 50) {
$priority = 1;
} elseif (($p >= 50) and ($p <= 100)) {
$priority = '0.90';
} elseif (($p >= 100) and ($p <= 200)) {
$priority = '0.80';
} elseif (($p >= 200) and ($p <= 500)) {
$priority = '0.70';
} elseif (($p >= 500) and ($p <= 750)) {
$priority = '0.60';
} elseif (($p >= 750) and ($p <= 1000)) {
$priority = '0.50';
} elseif (($p >= 1000) and ($p <= 1250)) {
$priority = '0.40';
} elseif (($p >= 1250) and ($p <= 2000)) {
$priority = '0.30';
} else {

$priority = '0.20';
}
$contenu .= "<url>\n";
if (in_array('Forums', $GOOGLETAPSG_ARRAY)) {
$contenu .= "<loc>" . $nukeurl . "/" . GTv2_pref . "_post_t_" . $row2->topic_id . ".html</loc>\n";
} else {
$contenu .= "<loc>" . $nukeurl . "/modules.php?name=Forums&amp;file=viewtopic&amp;p=" . $row2->topic_id . "</loc>\n";
}
$contenu .= "<lastmod>$datejour</lastmod>\n";
$contenu .= "<changefreq>daily</changefreq>\n";
$contenu .= "<priority>$priority</priority>\n";
$contenu .= "</url>\n";
}
}
}
Referencement::Sitemaps('forums', $contenu);
}
}

class op_database
{
Function optimize_alltable()
{
$local_query = 'SHOW TABLE STATUS FROM ' . DBNAME;
if ($GLOBALS['db']->get_num($local_query)) {
foreach ($GLOBALS['db']->get_list_row($local_query) as $row) {
$GLOBALS['db']->query('OPTIMIZE TABLE ' . $row[0] . ' ');
}
}
}
Function optimize($table)
{
$GLOBALS['db']->query('OPTIMIZE TABLE `' . $table . '`');
}
}

class affiliations
{
Function Marqueur_Xiti()
{
global $XITI_ARRAY;
$XITI_ARRAY[2] = secure($XITI_ARRAY[2], 'bin');
if (empty($XITI_ARRAY[2])) {
return;
}
$XITI_ARRAY[0] = secure($XITI_ARRAY[0], 'num');
if (!preg_match('`[0-9]`', $XITI_ARRAY[0]) or empty($XITI_ARRAY[0])) {
return 'Xiti is empty';
}
if (!preg_match('`(bcg|grcg|g|oco|orcr|rcg|vcg)`', $XITI_ARRAY[1]) or empty($XITI_ARRAY[1])) {
$XITI_ARRAY[1] = 'oco';
}
return '<a href="http://www.xiti.com/xiti.asp?s=' . $XITI_ARRAY[0] . '" title="WebAnalytics">
<script type="text/javascript">
<!--
Xt_param = \'s=' . $XITI_ARRAY[0] . '&p=\';
try {Xt_r = top.document.referrer;}
catch(e) {Xt_r = document.referrer; }
Xt_h = new Date();
Xt_i = \'<img width="80" height="15" border="0" alt="" \';
Xt_i += \'src="http://logv' . $XITI_ARRAY[3] . '.xiti.com/' . $XITI_ARRAY[1] . '.xiti?\'+Xt_param;
Xt_i += \'&hl=\'+Xt_h.getHours()+\'x\'+Xt_h.getMinutes()+\'x\'+Xt_h.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xt_s=screen;Xt_i+=\'&r=\'+Xt_s.width+\'x\'+Xt_s.height+\'x\'+Xt_s.pixelDepth+\'x\'+Xt_s.colorDepth;}
document.write(Xt_i+\'&ref=\'+Xt_r.replace(/[<>"]/g, \'\').replace(/&/g, \'$\')+\'" title="Internet Audience">\');
//-->
</script></a>';
}
}

FUNCTION Maximus_URL($url, $under = false)
{
$title = strtr($url, 'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝáâãäåçèéêëìíîïðòóôõöùúûüýÿ', 'AAAAAACEEEEIIIIOOOOOUUUUYaaaaaaceeeeiiiioooooouuuuyy');
if ($under == false) {
return str_replace(' ', '_', strtolower($title));
} else {
return strtolower($title);
}
}

FUNCTION OpenCacheBoite($var_name = false, $var_ext = false, $retention = false, $status = false)
{
if (empty($retention)) {
return;
}
global $max_time, $cookie;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == '1') {
$cookie[1] = 'Anonyme';
} elseif (($status == '2') && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = CACHE . '/Modules/' . $var_name . '_' . PREFIX_CACHE . '_' . $cookie[1] . '.' . $var_ext;
if (@is_file($path)) {
$vartime = @filemtime($path);
if (($vartime + $retention) <= $max_time) {
@unlink($path);
}
}
if (@is_file($path)) {
@readfile($path);
} else {
@ob_start();
}
}

function CloseCacheBoite($content = false, $var_name = false, $var_ext = false, $retention = false, $status = false)
{
if (empty($retention)) {
return;
}
global $begin_content, $end_content, $cookie;
if (empty($cookie[1])) {
$cookie[1] = 'Anonyme';
}
if ($status == '1') {
$cookie[1] = 'Anonyme';
} elseif (($status == '2') && (!defined('ADMIN_ALLOW'))) {
$cookie[1] = 'Anonyme';
}
$path = CACHE . '/Modules/' . $var_name . '_' . PREFIX_CACHE . '_' . $cookie[1] . '.' . $var_ext;
if (!is_file($path)) {
if ($var_ext == 'php') {
$content = $begin_content;
$content .= $end_content;
}
$contentu = '';
$contentu .= "\n\n<!-- Start Cache boite/modules $var_name PHP Maximus CMS/Blog 2009 -->\n";
$contentu .= $content;
$contentu .= "\n<!-- End Cache boite/modules $var_name PHP Maximus CMS/Blog 2009 -->\n\n";
$file = @fopen($path, 'w');
@fwrite($file, $contentu);
@fclose($file);
echo $content;
}
}
?>
View user's profile Send private message Visit poster's website
PostPosted: Wed Dec 08, 2010 8:22 pm Reply with quote
binochal
Regular user
Regular user
Joined: Dec 07, 2010
Posts: 10




Thanks, I'm really surprised about the speed of decoding.
BIG BIG Thanks.
View user's profile Send private message
PostPosted: Thu Dec 09, 2010 4:26 pm Reply with quote
binochal
Regular user
Regular user
Joined: Dec 07, 2010
Posts: 10




Re hello,

Could I also ask you to decrypt all files in the install directory?

\ Install \ common.php
\ Install \ delete.php
\ Install \ index.php
\ Install \ new.php
\ Install \ new1.php
\ Install \ new2.php
\ Install \ new3.php
\ Install \ new4.php
\ Install \ new5.php
\ Install \ new6.php
\ Install \ new7.php
\ Install \ new8.php
\ Install \ new9.php
\ Install \ new10.php
\ Install \ update.php
\ Install \ update1.php
\ Install \ update2.php

Thanks for your help
View user's profile Send private message
PostPosted: Fri Dec 10, 2010 12:37 am Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




http://hotfile.com/dl/88378386/87a305b/maximus.zip.html
View user's profile Send private message Visit poster's website
PostPosted: Sat Dec 11, 2010 10:12 am Reply with quote
binochal
Regular user
Regular user
Joined: Dec 07, 2010
Posts: 10




Big Thanks WinkWink
View user's profile Send private message
Could you please decode CodeLock?
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.050 Seconds