|
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
Провел на форуме: 9220514
Репутация:
3338
|
|
PHP код:
?><?
/*---------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+----------------------------------------------------+
| Created for PHP-FUSION 6.01.xx or 7.00.xx
| © 2007-2009 by AlexALX
| http://alex-php.net/
| E-mail: admin@alex-php.net
+----------------------------------------------------*/
if (ini_get('register_globals') != 1) {
die("Sorry, but this mod worker only if <b>REGISTER_GLOBALS=ON</b>! Please turn <b>ON REGISTER_GLOBALS</b> in you <b>php.ini</b> (contact with you hoster).");
}
if (!defined("GAMES_ADMIN_PANEL")) {
require_once "../maincore.php";
} else {
require_once "../../maincore.php";
}
define("FUS_VER",$settings['version']);
if (ereg("^[6.01]+[0-9]", FUS_VER)) {
require_once "core_v6.php";
} else {
require_once "core_v7.php";
}
define("GAMES", BASEDIR."games/");
define("GAMES_IC", GAMES."include/");
define("G_INFUSIONS", GAMES."infusions/");
define("GAMES_LOC", GAMES."locale/");
define("GAMES_ADMIN", GAMES."admin/");
define("GAMES_IMG", GAMES."images/");
define("GAMES_IMG_N", GAMES_IMG."news/");
define("GAMES_IMG_A", GAMES_IMG."articles/");
define("GAMES_IMG_NC", GAMES_IMG."articles/");
define("GAMES_IMG_OBZ", GAMES_IMG."obz/");
define("iUSER_RIGHTS_G", $userdata['user_rights_g']);
$locals = dbarray(dbquery("SELECT locale FROM ".$db_prefix."games_set;"));
$sets_games = dbarray(dbquery("SELECT * FROM ".$db_prefix."games_set;"));
$code_games = dbquery("SELECT * FROM ".$db_prefix."games_code");
$comm_games = dbquery("SELECT * FROM ".$db_prefix."games_comm");
define("GAMES_VERSION", $sets_games['vers']);
define("GAMES_LOCALESET", $locals['locale']."/");
if ($_GET['copy'] == "ok") {
require_once GAMES."subheader.php";
if (file_exists(GAMES."locale/".GAMES_LOCALESET."/core.php")) {
include GAMES."locale/".GAMES_LOCALESET."/core.php";
} else {
include GAMES."locale/English/core.php";
}
require_once GAMES."search_nav.php";
opentable($locale['copy2']);
echo $locale['copy3']."AlexALX";
echo "<br>".$locale['copy4'].$locale['localizator'];
echo "<br>".$locale['copy5']."<a href='http://alex-php.net'>AlexALX</a>";
echo "<br>".$locale['copy6'].GAMES_VERSION;
echo "<br>".$locale['copy7']."GNU Affero GPL version 3";
closetable();
tablebreak();
if (ereg("^[6.01]+[0-9]", FUS_VER)) {
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
} else {
require_once THEMES."templates/footer.php";
}
}
if ($sets_games['on'] == "0" || $sets_games['on'] == "") {
if (file_exists("setup.php")) {
redirect("setup.php");
die;
}
echo "Invalid licence or attempted burglary script. Script disabled. If you have any questions please contact: <a href='mailto:admin@alex-php.net'>AlexALX</a>.";
die;
} else if ($_GET['error'] == 1) {
echo "Invalid licence or attempted burglary script. Script disabled. If you have any questions please contact: <a href='mailto:admin@alex-php.net'>AlexALX</a>.";
die;
}
if (!file_exists(GAMES_LOC.GAMES_LOCALESET."core.php")) {
if (!file_exists(GAMES_LOC."English/core.php")) {
redirect (BASEDIR."games/core.php?error=1");
}
}
$copysese_fkgroylfbkfrmt04d2nb4f = "<center>© 2007-2009 by <a href='http://alex-php.net' target='_blank'>AlexALX</a></center>";
//$ufdprfdtks0d5hg7x2g4_d4g571c4hu7 = "";
if (file_exists(GAMES."locale/".GAMES_LOCALESET."/core.php")) {
include GAMES."locale/".GAMES_LOCALESET."/core.php";
} else {
include GAMES."locale/English/core.php";
}
function copyring () {
global $locale,$aidlink;
$copysese_fkgroylfbkfrmt04d2nb4f = "<center>© 2007-2009 by <a href='http://alex-php.net' target='_blank'>AlexALX</a></center>";
if ($locale['copy_s'] == "") {
$locale['copy'] = "License error";
}
if ($locale['copy1'] == "") {
$locale['copy1'] = "License error";
}
opentable($locale['copy_s']);
if (iUSER_RIGHTS_G != "") {
echo "<center><a href='".GAMES."admin/index.php".$aidlink."'>".$locale['admin']."</a></center>";
}
$homes = str_replace('www.', '', $_SERVER['HTTP_HOST']);
$homes = str_replace(':', '@', $homes);
echo "<center><a href='".GAMES."core.php?copy=ok'>".$locale['copy1']."</a><img src='http://alex-php.net/games/admin/image.php?url=".$homes."' height='1' width='1'></center>";
echo $copysese_fkgroylfbkfrmt04d2nb4f;
closetable();
tablebreak();
}
function checkrights_games($right) {
if (iADMIN && in_array($right, explode(".", iUSER_RIGHTS_G))) {
return true;
} else {
return false;
}
}
function search_words($text, $substr, $words_before, $words_after) {
preg_match_all('%((?:\S+\s+){0,'.(int)$words_before.'}\b'.preg_quote($substr, '%').'\b(?:\s+\S+){0,'.(int)$words_after.'})%i', $text, $matches, PREG_PATTERN_ORDER);
//print_r($matches[1]);
return $matches[1];
}
if (file_exists(GAMES."setup.php")) {
echo "Please delete setup file.";
die;
}
?><?
код для расшифровки:
PHP код:
<pre>
<?php
$flag = true;
$i = 0;
while ($flag) {
$a = file_get_contents('result.txt');
if (preg_match("#base64_decode(.*'(.*).*')#s",$a,$res)) {
$temp = $res[1];
$temp = str_replace('(',"",$temp);
$temp = str_replace('.',"",$temp);
$temp = str_replace("'","",$temp);
$temp = str_replace(" ","",$temp);
file_put_contents('result.txt',gzinflate(base64_decode(" . $temp . ")));
$i++;
} else {
$flag = false;
}
}
echo "Count: = $i\n";
echo gzinflate(base64_decode(" . $temp . "));
?>
</pre>
в файл result.txt кладешь свой зашифрованный код
Последний раз редактировалось Pashkela; 01.04.2010 в 18:23..
|