Advertisement
Guest User

Untitled

a guest
Apr 17th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.35 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. @session_start();
  15. Header('Content-Type: text/html;charset=UTF-8');
  16. date_default_timezone_set('Europe/Moscow');
  17. @ini_set('display_errors', false);
  18. @ini_set('html_errors', false);
  19. @ini_set('error_reporting', 32767 ^ 2 ^ 8);
  20. @ob_start();
  21. @ob_implicit_flush(0);
  22. define('ENGINE', true);
  23. define('gamepl', true);
  24. define('gamepl_er6tybuniomop', true);
  25. define('ROOT', dirname(__FILE__));
  26. set_error_handler('myErrorHandler');
  27.  
  28. if ($_GET['check']) {
  29. $_GET['check'] = str_replace(' ', '+', $_GET['check']);
  30. $m2 = new Memcache();
  31. m2::connect();
  32. install::go_install_key2($_GET['check']);
  33.  
  34. exit();
  35. }
  36.  
  37. if ($_SERVER['argv'][1] == 'install') {
  38. install::$auto = true;
  39. $m2 = new Memcache();
  40. m2::connect();
  41.  
  42. if (install::go_install_key($_SERVER['argv'][2], $_SERVER['argv'][3], $_SERVER['argv'][4])) {
  43. echo '100021';
  44. } else {
  45. echo 'Не удалось установить';
  46. }
  47.  
  48. exit();
  49. }
  50.  
  51. $m2 = new Memcache();
  52. m2::connect();
  53. install::run();
  54.  
  55. if ($_GET['per']) {
  56. $d['e'] = install::$error;
  57.  
  58. exit(json_encode($d));
  59. }
  60.  
  61. $data = $_POST['data'];
  62. echo "\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<meta charset=\"utf-8\"/>\r\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\r\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n\t<title>Установка GamePL</title>\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"http://gamepl.ru/semantic/css/semantic.css\">\r\n\t<script type=\"text/javascript\" src=\"http://gamepl.ru/js/jquery-2.1.1.min.js\"></script>\r\n\t<script type=\"text/javascript\" src=\"http://gamepl.ru/semantic/javascript/semantic.min.js\"></script>\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"http://gamepl.ru/semantic/css/semantic.css\">\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"http://gamepl.ru/css/base.css\">\r\n</head>\r\n<body style=\"width: 600px; margin-right: auto; margin-left: auto;\">\r\n<div style=\"padding-top: 30px; margin-bottom: 50px;\">\r\n\t<center><img src=\"http://gamepl.ru/img/logotype_gamepl.png\"/></center>\r\n</div>\r\n<div class=\"ui small four steps\">\r\n\t<div class=\"ui ";
  63.  
  64. if (install::$step == '0') {
  65. echo 'active';
  66. } else {
  67. echo 'disabled';
  68. }
  69.  
  70. echo " step\">Активация\r\n\t</div>\r\n\t<div class=\"ui ";
  71.  
  72. if (install::$step == '1') {
  73. echo 'active';
  74. } else {
  75. echo 'disabled';
  76. }
  77.  
  78. echo " step\">Настройка\r\n\t</div>\r\n\t<div class=\"ui ";
  79.  
  80. if (install::$step == '2') {
  81. echo 'active';
  82. } else {
  83. echo 'disabled';
  84. }
  85.  
  86. echo " step\">Установка\r\n\t</div>\r\n\t<div class=\"ui ";
  87.  
  88. if (install::$step == '3') {
  89. echo 'active';
  90. } else {
  91. echo 'disabled';
  92. }
  93.  
  94. echo " step\">Готово\r\n\t</div>\r\n</div>\r\n";
  95.  
  96. if (install::$error) {
  97. echo "\t<div class=\"ui error message\">\r\n\t\t<div class=\"header\">Ошибка.</div>\r\n\t\t<ul class=\"list\">\r\n\t\t\t<li>Вы не сможете продолжить установку, пока не решите данную ошибку.</li>\r\n\t\t\t";
  98.  
  99. foreach (install::$error as $value) {
  100. echo '<li>' . $value . '</li>';
  101. }
  102. echo "\t\t</ul>\r\n\t</div>\r\n\r\n";
  103. }
  104.  
  105. if (install::$step == '0' || install::$step == '1') {
  106. echo "\t<div class=\"ui info message\">\r\n\t\t";
  107.  
  108. if (install::$step == '0') {
  109. echo "\t\t\t<div class=\"header\">Здравствуйте!</div>\r\n\t\t";
  110. }
  111.  
  112. echo "\t\t<ul class=\"list\">\r\n\t\t\t";
  113.  
  114. if (!$_SESSION['token']) {
  115. echo "\t\t\t\t<li>Пожалуйста купите лицензию на <a href=\"http://gamepl.ru\" target=\"_BLANK\">GamePL.ru</a></li>\r\n\t\t\t";
  116. }
  117.  
  118. echo "\t\t\t";
  119.  
  120. if (install::$step == '0') {
  121. echo "\t\t\t\t<li>Данный скрипт поможет Вам установить игровую панель GamePL cамой последней версии.</li>\r\n\t\t\t";
  122. } else {
  123. if (install::$step == '1') {
  124. echo "\t\t\t\t<li>Заполните все необходимые настройки, и нажмите продолжить, в процессе установки будут скачаны и\r\n\t\t\t\t\tустановлены все необходимые файлы.\r\n\t\t\t\t</li>\r\n\t\t\t";
  125. }
  126. }
  127.  
  128. echo "\t\t</ul>\r\n\t</div>\r\n";
  129. }
  130.  
  131. echo "\r\n";
  132.  
  133. if (install::$step == '0') {
  134. } else {
  135. if (install::$step == '1') {
  136. echo "\t<form method=\"POST\" action=\"?step=2\">\r\n\t\t<div class=\"ui segment\">\r\n\t\t\t<h2 class=\"ui left floated header\">MySQL</h2>\r\n\r\n\t\t\t<div class=\"ui clearing divider\"></div>\r\n\t\t\t<div class=\"ui fluid form\">\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[db-host]\" placeholder=\"IP адрес\"\r\n\t\t\t\t\t\t\t value=\"";
  137.  
  138. if ($data['db-host']) {
  139. echo $data['db-host'];
  140. } else {
  141. echo '127.0.0.1';
  142. }
  143.  
  144. echo "\">\r\n\t\t\t\t\t\t<i class=\"home icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[db-user]\" placeholder=\"Пользователь\"\r\n\t\t\t\t\t\t\t value=\"";
  145. echo $data['db-user'];
  146. echo "\">\r\n\t\t\t\t\t\t<i class=\"user icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"password\" name=\"data[db-password]\" placeholder=\"Пароль\"\r\n\t\t\t\t\t\t\t value=\"";
  147. echo $data['db-password'];
  148. echo "\">\r\n\t\t\t\t\t\t<i class=\"lock icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[db-name]\" placeholder=\"База данных\"\r\n\t\t\t\t\t\t\t value=\"";
  149. echo $data['db-name'];
  150. echo "\">\r\n\t\t\t\t\t\t<i class=\"archive icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class=\"ui segment\">\r\n\t\t\t<h2 class=\"ui left floated header\">Memcache</h2>\r\n\r\n\t\t\t<div class=\"ui clearing divider\"></div>\r\n\t\t\t<div class=\"ui fluid form\">\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[m-ip]\" placeholder=\"IP адрес\"\r\n\t\t\t\t\t\t\t value=\"";
  151.  
  152. if ($data['m-ip']) {
  153. echo $data['m-ip'];
  154. } else {
  155. echo '127.0.0.1';
  156. }
  157.  
  158. echo "\">\r\n\t\t\t\t\t\t<i class=\"home icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[m-port]\" placeholder=\"Порт\"\r\n\t\t\t\t\t\t\t value=\"";
  159.  
  160. if ($data['m-port']) {
  161. echo $data['m-port'];
  162. } else {
  163. echo '11211';
  164. }
  165.  
  166. echo "\">\r\n\t\t\t\t\t\t<i class=\"home icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class=\"ui segment\">\r\n\t\t\t<h2 class=\"ui left floated header\">Администратор</h2>\r\n\r\n\t\t\t<div class=\"ui clearing divider\"></div>\r\n\t\t\t<div class=\"ui fluid form\">\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[user-mail]\" placeholder=\"E-mail\"\r\n\t\t\t\t\t\t\t value=\"";
  167. echo $data['user-mail'];
  168. echo "\">\r\n\t\t\t\t\t\t<i class=\"mail icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"password\" name=\"data[user-password]\" placeholder=\"Пароль\"\r\n\t\t\t\t\t\t\t value=\"";
  169. echo $data['user-password'];
  170. echo "\">\r\n\t\t\t\t\t\t<i class=\"lock icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[user-name]\" placeholder=\"Имя\"\r\n\t\t\t\t\t\t\t value=\"";
  171. echo $data['user-name'];
  172. echo "\">\r\n\t\t\t\t\t\t<i class=\"user icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"field\">\r\n\t\t\t\t\t<div class=\"ui left icon input\">\r\n\t\t\t\t\t\t<input type=\"text\" name=\"data[user-lastname]\" placeholder=\"Фамилия\"\r\n\t\t\t\t\t\t\t value=\"";
  173. echo $data['user-lastname'];
  174. echo "\">\r\n\t\t\t\t\t\t<i class=\"user icon\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div class=\"ui 2 fluid buttons\">\r\n\t\t\t<a href=\"http://gamepl.ru\" class=\"ui button\">Отменить установку</a>\r\n\r\n\t\t\t<div class=\"or\"></div>\r\n\t\t\t<button class=\"ui teal button\">Установить</button>\r\n\t\t</div>\r\n\t\t<input type=\"hidden\" name=\"data[token]\" value=\"";
  175. echo $data['token'];
  176. echo "\">\r\n\t</form>\r\n";
  177. } else {
  178. if (install::$step == '2') {
  179. echo "\t<div class=\"ui error message\" style=\"display:none;\">\r\n\t\t<div class=\"header\">Ошибка.</div>\r\n\t\t<p class=\"error-text\"></p>\r\n\t</div>\r\n\t<div class=\"ui segment inf\">\r\n\t\t<p><b>Пожалуйста подождите, происходит выполнение процесса установки. На это может потребоваться около 2\r\n\t\t\t\tминут!</b></p>\r\n\t</div>\r\n\t<div class=\"ui active striped progress\">\r\n\t\t<div class=\"bar\" style=\"width: ";
  180. echo install::$install;
  181. echo "%;\"></div>\r\n\t</div>\r\n\t<script language=\"JavaScript\" type=\"text/javascript\">\r\n\t\tfunction install(per) {\r\n\t\t\t\$.ajax({\r\n\t\t\t\turl: 'install.php?step=3&per=' + per,\r\n\t\t\t\ttype: \"POST\",\r\n\t\t\t\tdata: {'data[token]': '";
  182. echo $data['token'];
  183. echo "'},\r\n\t\t\t\tdataType: \"json\",\r\n\t\t\t\tsuccess: function (data) {\r\n\t\t\t\t\tif (data.per == \"100\") {\r\n\t\t\t\t\t\t\$('.bar').css('width', data.per + '%');\r\n\t\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t\tlocation.href = 'install.php?step=4'\r\n\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (data.e == '0') {\r\n\t\t\t\t\t\t\t\$('.bar').css('width', data.per + '%');\r\n\t\t\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t\t\tinstall(data.per)\r\n\t\t\t\t\t\t\t}, 300);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\$('.error-text').append(data.e);\r\n\t\t\t\t\t\t\t\$('.error').css('display', 'block');\r\n\t\t\t\t\t\t\t\$('.progress').css('display', 'none');\r\n\t\t\t\t\t\t\t\$('.inf').css('display', 'none');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\t\$(document).ready(function () {\r\n\t\t\tsetTimeout(function () {\r\n\t\t\t\tinstall('1')\r\n\t\t\t}, 300);\r\n\t\t});\r\n\t</script>\r\n";
  184. } else {
  185. if (install::$step == '3') {
  186. echo "\t<div class=\"ui segment\">\r\n\t\t<p><b>Вы успешно установили панель управления GamePL.</b></p>\r\n\r\n\t\t<p><b>Данные для входа на сайте.</b></p>\r\n\r\n\t\t<p><b>E-mail:</b> ";
  187. echo $_SESSION['data']['user-mail'];
  188. echo "</p>\r\n\r\n\t\t<p><b>Пароль:</b> ";
  189. echo $_SESSION['data']['user-password'];
  190. ................................................................................
  191. .................................................
  192. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement