Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- function _open() {
- global $_sess_db;
- global $sqlUserLogin;
- global $sqlPassword;
- global $sqlHost;
- global $sqlDatabasePrefix;
- $db_user = $sqlUserLogin;
- $db_pass = $sqlPassword;
- $db_host = $sqlHost;
- if ($_sess_db = mysql_connect($db_host, $db_user, $db_pass))
- {
- return mysql_select_db($sqlDatabasePrefix . "_sessions", $_sess_db);
- }
- return FALSE;
- }
- function _close() {
- global $_sess_db;
- return mysql_close($_sess_db);
- }
- function _read($id) {
- global $_sess_db;
- global $sqlDatabasePrefix;
- global $epcConfig;
- $id = mysql_real_escape_string($id);
- $sql = "SELECT data\r
- FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
- WHERE id = '" . $id . "'");
- if ($result = mysql_query($sql, $_sess_db))
- {
- if (mysql_num_rows($result))
- {
- $sql2 = "SELECT access FROM " . $sqlDatabasePrefix . ('' . "_sessions WHERE id = '" . $id . "'");
- if ($result2 = mysql_query($sql2, $_sess_db))
- {
- $timeCheck = mysql_fetch_array($result2);
- $old = time() - $timeCheck[0];
- if ($epcConfig["sessionsTimeLimit"] < (int)$old)
- {
- $sql3 = "DELETE FROM " . $sqlDatabasePrefix . ('' . "_sessions WHERE id = '" . $id . "'");
- $result3 = mysql_query($sql3, $_sess_db);
- return "";
- }
- }
- $record = mysql_fetch_assoc($result);
- return $record["data"];
- }
- }
- return "";
- }
- function _write($id, $data) {
- global $_sess_db;
- global $sqlDatabasePrefix;
- $access = time();
- $id = mysql_real_escape_string($id);
- $access = mysql_real_escape_string($access);
- $data = mysql_real_escape_string($data);
- $sql = "REPLACE \r
- INTO " . $sqlDatabasePrefix . ('' . "_sessions\r
- VALUES ('" . $id . "', '" . $access . "', '" . $data . "')");
- return mysql_query($sql, $_sess_db);
- }
- function _destroy($id) {
- global $_sess_db;
- global $sqlDatabasePrefix;
- $id = mysql_real_escape_string($id);
- $sql = "DELETE\r
- FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
- WHERE id = '" . $id . "'");
- return mysql_query($sql, $_sess_db);
- }
- function _clean($max) {
- global $_sess_db;
- global $sqlDatabasePrefix;
- $old = time() - $max;
- $old = mysql_real_escape_string($old);
- $sql = "DELETE\r
- FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
- WHERE access < '" . $old . "'");
- return mysql_query($sql, $_sess_db);
- }
- function updateMessage() {
- global $fileName;
- global $lang_databaseUpdated;
- global $lang_clickHere;
- global $lang_toContinue;
- global $epcAddMore;
- global $epcAddCopy;
- echo "<table width=\"740\" border=\"0\" align=\"center\" cellpadding=\"20\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" class=\"eventsAE\"><tr><td>";
- echo '' . "<script type=\"text/javascript\">function reload(){window.location.href = \"" . $fileName . "&rf=1&add=" . $epcAddMore . "&epcAddMore=" . $epcAddMore . "&epcAddCopy=" . $epcAddCopy . "\";}setTimeout(\"reload();\", 1000);</script>";
- echo "<div align=center>" . $lang_databaseUpdated . "</div><br />";
- echo '' . "<div align=center><a href=\"" . $fileName . "?rf=1&add=" . $epcAddMore . "&epcAddMore=" . $epcAddMore . "&epcAddCopy=" . $epcAddCopy . "\"><strong>" . $lang_clickHere . "</strong></a> " . $lang_toContinue . ".</div>";
- echo "</td></tr></table>";
- return;
- }
- $epcVersion = "7.1.5";
- $epcVersionDate = "2015-01-28";
- if (!(isset($_GET["serverPath"])) && isset($_POST["serverPath"]))
- {
- exit("Invalid Access - 23");
- }
- if (file_exists("../install/index.php") && !file_exists("../local.php"))
- {
- echo "<strong>WARNING!</strong> You must remove the install directory before continuing!";
- exit();
- }
- define("EPCDEFINE", "EPC");
- session_set_save_handler("_open", "_close", "_read", "_write", "_destroy", "_clean");
- $showTheme = "system";
- $getPaths = "1";
- require "../calendar.php";
- unset($getPaths);
- require "../config.inc.php";
- if ($epcConfig["epcTimeZone"] == "")
- {
- $epcConfig["epcTimeZone"] = "America/New_York";
- }
- $epcTimeZone = explode("|", $epcConfig["epcTimeZone"]);
- date_default_timezone_set($epcTimeZone[0]);
- session_start();
- header("Cache-control: private");
- $fileName = "index.php?PHPSESSID=" . session_id();
- if (!(isset($_GET["serverPath"])) && isset($_POST["serverPath"]))
- {
- exit("Invalid Access - 23");
- }
- $serverPath = trim($serverPath);
- if (substr($serverPath, 0, 4) == "http")
- {
- exit("Invalid Access - 22");
- }
- if (substr($serverPath, 0, 3) == "ftp")
- {
- exit("Invalid Access - 22");
- }
- if (strpos($serverPath, "%"))
- {
- exit("Invalid Access - 22");
- }
- if (strpos($serverPath, "?"))
- {
- exit("Invalid Access - 22");
- .............................................................
- ...........................
- .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement