Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- @session_start();
- Header('Content-Type: text/html;charset=UTF-8');
- date_default_timezone_set('Europe/Moscow');
- @ini_set('display_errors', false);
- @ini_set('html_errors', false);
- @ini_set('error_reporting', 32767 ^ 2 ^ 8);
- @ob_start();
- @ob_implicit_flush(0);
- define('ENGINE', true);
- define('gamepl', true);
- define('gamepl_er6tybuniomop', true);
- define('ROOT', dirname(__FILE__));
- set_error_handler('myErrorHandler');
- if ($_GET['check']) {
- $_GET['check'] = str_replace(' ', '+', $_GET['check']);
- $m2 = new Memcache();
- m2::connect();
- install::go_install_key2($_GET['check']);
- exit();
- }
- if ($_SERVER['argv'][1] == 'install') {
- install::$auto = true;
- $m2 = new Memcache();
- m2::connect();
- if (install::go_install_key($_SERVER['argv'][2], $_SERVER['argv'][3], $_SERVER['argv'][4])) {
- echo '100021';
- } else {
- echo 'Не удалось установить';
- }
- exit();
- }
- $m2 = new Memcache();
- m2::connect();
- install::run();
- if ($_GET['per']) {
- $d['e'] = install::$error;
- exit(json_encode($d));
- }
- $data = $_POST['data'];
- 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 ";
- if (install::$step == '0') {
- echo 'active';
- } else {
- echo 'disabled';
- }
- echo " step\">Активация\r\n\t</div>\r\n\t<div class=\"ui ";
- if (install::$step == '1') {
- echo 'active';
- } else {
- echo 'disabled';
- }
- echo " step\">Настройка\r\n\t</div>\r\n\t<div class=\"ui ";
- if (install::$step == '2') {
- echo 'active';
- } else {
- echo 'disabled';
- }
- echo " step\">Установка\r\n\t</div>\r\n\t<div class=\"ui ";
- if (install::$step == '3') {
- echo 'active';
- } else {
- echo 'disabled';
- }
- echo " step\">Готово\r\n\t</div>\r\n</div>\r\n";
- if (install::$error) {
- 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";
- foreach (install::$error as $value) {
- echo '<li>' . $value . '</li>';
- }
- echo "\t\t</ul>\r\n\t</div>\r\n\r\n";
- }
- if (install::$step == '0' || install::$step == '1') {
- echo "\t<div class=\"ui info message\">\r\n\t\t";
- if (install::$step == '0') {
- echo "\t\t\t<div class=\"header\">Здравствуйте!</div>\r\n\t\t";
- }
- echo "\t\t<ul class=\"list\">\r\n\t\t\t";
- if (!$_SESSION['token']) {
- echo "\t\t\t\t<li>Пожалуйста купите лицензию на <a href=\"http://gamepl.ru\" target=\"_BLANK\">GamePL.ru</a></li>\r\n\t\t\t";
- }
- echo "\t\t\t";
- if (install::$step == '0') {
- echo "\t\t\t\t<li>Данный скрипт поможет Вам установить игровую панель GamePL cамой последней версии.</li>\r\n\t\t\t";
- } else {
- if (install::$step == '1') {
- 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";
- }
- }
- echo "\t\t</ul>\r\n\t</div>\r\n";
- }
- echo "\r\n";
- if (install::$step == '0') {
- } else {
- if (install::$step == '1') {
- 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=\"";
- if ($data['db-host']) {
- echo $data['db-host'];
- } else {
- echo '127.0.0.1';
- }
- 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=\"";
- echo $data['db-user'];
- 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=\"";
- echo $data['db-password'];
- 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=\"";
- echo $data['db-name'];
- 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=\"";
- if ($data['m-ip']) {
- echo $data['m-ip'];
- } else {
- echo '127.0.0.1';
- }
- 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=\"";
- if ($data['m-port']) {
- echo $data['m-port'];
- } else {
- echo '11211';
- }
- 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=\"";
- echo $data['user-mail'];
- 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=\"";
- echo $data['user-password'];
- 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=\"";
- echo $data['user-name'];
- 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=\"";
- echo $data['user-lastname'];
- 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=\"";
- echo $data['token'];
- echo "\">\r\n\t</form>\r\n";
- } else {
- if (install::$step == '2') {
- 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: ";
- echo install::$install;
- 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]': '";
- echo $data['token'];
- 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";
- } else {
- if (install::$step == '3') {
- 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> ";
- echo $_SESSION['data']['user-mail'];
- echo "</p>\r\n\r\n\t\t<p><b>Пароль:</b> ";
- echo $_SESSION['data']['user-password'];
- ................................................................................
- .................................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement