Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function _open() {
  15.  
  16. global $_sess_db;
  17. global $sqlUserLogin;
  18. global $sqlPassword;
  19. global $sqlHost;
  20. global $sqlDatabasePrefix;
  21. $db_user = $sqlUserLogin;
  22. $db_pass = $sqlPassword;
  23. $db_host = $sqlHost;
  24. if ($_sess_db = mysql_connect($db_host, $db_user, $db_pass))
  25. {
  26. return mysql_select_db($sqlDatabasePrefix . "_sessions", $_sess_db);
  27. }
  28. return FALSE;
  29. }
  30.  
  31. function _close() {
  32.  
  33. global $_sess_db;
  34. return mysql_close($_sess_db);
  35. }
  36.  
  37. function _read($id) {
  38.  
  39. global $_sess_db;
  40. global $sqlDatabasePrefix;
  41. global $epcConfig;
  42. $id = mysql_real_escape_string($id);
  43. $sql = "SELECT data\r
  44. FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
  45. WHERE id = '" . $id . "'");
  46. if ($result = mysql_query($sql, $_sess_db))
  47. {
  48. if (mysql_num_rows($result))
  49. {
  50. $sql2 = "SELECT access FROM " . $sqlDatabasePrefix . ('' . "_sessions WHERE id = '" . $id . "'");
  51. if ($result2 = mysql_query($sql2, $_sess_db))
  52. {
  53. $timeCheck = mysql_fetch_array($result2);
  54. $old = time() - $timeCheck[0];
  55. if ($epcConfig["sessionsTimeLimit"] < (int)$old)
  56. {
  57. $sql3 = "DELETE FROM " . $sqlDatabasePrefix . ('' . "_sessions WHERE id = '" . $id . "'");
  58. $result3 = mysql_query($sql3, $_sess_db);
  59. return "";
  60. }
  61. }
  62. $record = mysql_fetch_assoc($result);
  63. return $record["data"];
  64. }
  65. }
  66. return "";
  67. }
  68.  
  69. function _write($id, $data) {
  70.  
  71. global $_sess_db;
  72. global $sqlDatabasePrefix;
  73. $access = time();
  74. $id = mysql_real_escape_string($id);
  75. $access = mysql_real_escape_string($access);
  76. $data = mysql_real_escape_string($data);
  77. $sql = "REPLACE \r
  78. INTO " . $sqlDatabasePrefix . ('' . "_sessions\r
  79. VALUES ('" . $id . "', '" . $access . "', '" . $data . "')");
  80. return mysql_query($sql, $_sess_db);
  81. }
  82.  
  83. function _destroy($id) {
  84.  
  85. global $_sess_db;
  86. global $sqlDatabasePrefix;
  87. $id = mysql_real_escape_string($id);
  88. $sql = "DELETE\r
  89. FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
  90. WHERE id = '" . $id . "'");
  91. return mysql_query($sql, $_sess_db);
  92. }
  93.  
  94. function _clean($max) {
  95.  
  96. global $_sess_db;
  97. global $sqlDatabasePrefix;
  98. $old = time() - $max;
  99. $old = mysql_real_escape_string($old);
  100. $sql = "DELETE\r
  101. FROM " . $sqlDatabasePrefix . ('' . "_sessions\r
  102. WHERE access < '" . $old . "'");
  103. return mysql_query($sql, $_sess_db);
  104. }
  105.  
  106. function updateMessage() {
  107.  
  108. global $fileName;
  109. global $lang_databaseUpdated;
  110. global $lang_clickHere;
  111. global $lang_toContinue;
  112. global $epcAddMore;
  113. global $epcAddCopy;
  114. echo "<table width=\"740\" border=\"0\" align=\"center\" cellpadding=\"20\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" class=\"eventsAE\"><tr><td>";
  115. echo '' . "<script type=\"text/javascript\">function reload(){window.location.href = \"" . $fileName . "&rf=1&add=" . $epcAddMore . "&epcAddMore=" . $epcAddMore . "&epcAddCopy=" . $epcAddCopy . "\";}setTimeout(\"reload();\", 1000);</script>";
  116. echo "<div align=center>" . $lang_databaseUpdated . "</div><br />";
  117. echo '' . "<div align=center><a href=\"" . $fileName . "?rf=1&add=" . $epcAddMore . "&epcAddMore=" . $epcAddMore . "&epcAddCopy=" . $epcAddCopy . "\"><strong>" . $lang_clickHere . "</strong></a> " . $lang_toContinue . ".</div>";
  118. echo "</td></tr></table>";
  119. return;
  120. }
  121.  
  122.  
  123. $epcVersion = "7.1.5";
  124. $epcVersionDate = "2015-01-28";
  125. if (!(isset($_GET["serverPath"])) && isset($_POST["serverPath"]))
  126. {
  127. exit("Invalid Access - 23");
  128. }
  129. if (file_exists("../install/index.php") && !file_exists("../local.php"))
  130. {
  131. echo "<strong>WARNING!</strong> You must remove the install directory before continuing!";
  132. exit();
  133. }
  134. define("EPCDEFINE", "EPC");
  135. session_set_save_handler("_open", "_close", "_read", "_write", "_destroy", "_clean");
  136. $showTheme = "system";
  137. $getPaths = "1";
  138. require "../calendar.php";
  139. unset($getPaths);
  140. require "../config.inc.php";
  141. if ($epcConfig["epcTimeZone"] == "")
  142. {
  143. $epcConfig["epcTimeZone"] = "America/New_York";
  144. }
  145. $epcTimeZone = explode("|", $epcConfig["epcTimeZone"]);
  146. date_default_timezone_set($epcTimeZone[0]);
  147. session_start();
  148. header("Cache-control: private");
  149. $fileName = "index.php?PHPSESSID=" . session_id();
  150. if (!(isset($_GET["serverPath"])) && isset($_POST["serverPath"]))
  151. {
  152. exit("Invalid Access - 23");
  153. }
  154. $serverPath = trim($serverPath);
  155. if (substr($serverPath, 0, 4) == "http")
  156. {
  157. exit("Invalid Access - 22");
  158. }
  159. if (substr($serverPath, 0, 3) == "ftp")
  160. {
  161. exit("Invalid Access - 22");
  162. }
  163. if (strpos($serverPath, "%"))
  164. {
  165. exit("Invalid Access - 22");
  166. }
  167. if (strpos($serverPath, "?"))
  168. {
  169. exit("Invalid Access - 22");
  170. .............................................................
  171. ...........................
  172. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement