Сборка REDL: панель на PHP 8, капча-тумблер, закрытые уязвимости, установщики в один клик

- панель работает на PHP 8.4 (оригинал под PHP 7.0): elFinder utf8_encode, apache_get_modules, warnings
- капча выключена и управляется из админки (флаг captcha_enable + блок настроек)
- закрыты две SQL-инъекции без авторизации (createAuthLog: пароль из POST и CF-Connecting-IP)
- убрано хранение паролей в открытом виде в authlog, XSS в поле ref
- установщики install-panel.sh и install-node.sh (оригинальный затирал sources.list репозиториями Debian 9)
- современный Dockerfile (оригинальный на debian:stretch больше не собирается)
- планировщик и автозапуск работают без systemd
- брендинг REDL.IO, год 2026, ссылки на redl.io
- документация на русском: ИЗМЕНЕНИЯ, БЕЗОПАСНОСТЬ, ИНСТРУКЦИЯ
This commit is contained in:
2026-07-30 02:00:01 +00:00
commit 6ee2744e3a
492 changed files with 354172 additions and 0 deletions
@@ -0,0 +1,58 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>Завершение регистрации</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<div class="form rounded-lg p-3">
<div class="alert alert-primary text-center h5" role="alert">Завершение регистрации!</div>
<hr>
<center>
<?php if(@$user): ?>
<span class="text-muted font-weight-bold font-size-h4">Ваш аккаунт подтвержден!<br>
Авторизуйтесь для входа в панель управления</span>
<?php else: ?>
<span class="text-muted font-weight-bold font-size-h4">Упс... Что-то пошло не так.<br>
Повторите вашу попытку снова.</span>
<?php endif ?>
</center>
</div>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/hostinpl.jpg)"></div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
toastr.info("Через 5 секунд вы будете перенаправлены на домашнюю страницу");
setTimeout("redirect('/')", 5000);
</script>
<script language="JavaScript" type="text/javascript">
<!--
function GoNah(){
location="/";
}
setTimeout( 'GoNah()', 5000 );
//-->
</script>
+115
View File
@@ -0,0 +1,115 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-lg-12 mb-10">
<blockquote class="blockquote text-center">
<p class="mb-0">Здесь вы можете обменять свои бонусные баллы.</p>
<footer class="blockquote-footer">У вас
<cite title="Source Title"><?php echo $users['bonuses'] ?> бонусов</cite>
</footer>
</blockquote>
</div>
<div class="col-lg-6 mb-10">
<div class="card card-custom gutter-b bg-light-primary">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="javascript:;" class="h1 text-dark text-hover-primary font-weight-bolder">
100 COINS
</a>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<a href="javascript:;" onClick="sendAction_exchange('100DEB')" class="btn font-weight-bolder text-uppercase btn-primary py-4 px-6">
Обменять на <?php echo $bonus1 ?> RUB
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 mb-10">
<div class="card card-custom gutter-b bg-light-primary">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="javascript:;" class="h1 text-dark text-hover-primary font-weight-bolder">
300 COINS
</a>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<a href="javascript:;" onClick="sendAction_exchange('300DEB')" class="btn font-weight-bolder text-uppercase btn-primary py-4 px-6">
Обменять на <?php echo $bonus2 ?> RUB
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 mb-10">
<div class="card card-custom gutter-b bg-light-primary">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="javascript:;" class="h1 text-dark text-hover-primary font-weight-bolder">
600 COINS
</a>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<a href="javascript:;" onClick="sendAction_exchange('600DEB')" class="btn font-weight-bolder text-uppercase btn-primary py-4 px-6">
Обменять на <?php echo $bonus3 ?> RUB
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 mb-10">
<div class="card card-custom gutter-b bg-light-primary">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="javascript:;" class="h1 text-dark text-hover-primary font-weight-bolder">
1000 COINS
</a>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<a href="javascript:;" onClick="sendAction_exchange('1000DEB')" class="btn font-weight-bolder text-uppercase btn-primary py-4 px-6">
Обменять на <?php echo $bonus4 ?> RUB
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function sendAction_exchange(action) {
$.ajax({
url: '/account/bonus/ajax_action_exchange/'+action,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
break;
}
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,41 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>Завершение регистрации</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<div class="form rounded-lg p-3">
<div class="alert alert-primary text-center h5" role="alert">Завершение регистрации!</div>
<hr>
<center>
<span class="text-muted font-weight-bold font-size-h4">Проверьте вашу почту,
<br>на нее должно прийти сообщение с дальнейшими инструкциями.</span>
</center>
</div>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/hostinpl.jpg)"></div>
</div>
</div>
</div>
</div>
</body>
</html>
+28
View File
@@ -0,0 +1,28 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="col">
<div class="alert alert-light alert-elevate fade show" role="alert">
<div class="alert-text">
Внутренняя ошибка. Возможные причины:<br>
- Неверная сумма платежа.<br>
- Неверный ID магазина.<br>
- Не верный ID платежа.<br>
- Данный счет уже оплачен.<br>
- Платеж был отменен.<br>
<br>
Если здесь нет выявленной вами причины, то обратитесь в <a href="/tickets/create">Службу поддержки</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,110 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom overflow-hidden">
<div class="card-body p-0">
<div class="row justify-content-center bgi-size-cover bgi-no-repeat py-8 px-8 py-md-3 px-md-0" style="background-image: url(/assets/image/bg.jpg);">
<div class="col-md-9">
<div class="d-flex justify-content-between text-white pt-2">
<div class="d-flex flex-column flex-root">
<span class="font-weight-bolde mb-2r">Клиент</span>
<span class="opacity-70"><?php echo $user_firstname ?> <?php echo $user_lastname ?></span>
</div>
<div class="d-flex flex-column flex-root">
<span class="font-weight-bolder mb-2">Баланс</span>
<span class="opacity-70"><? echo $user_balance?> RUB</span>
</div>
<div class="d-flex flex-column flex-root">
<span class="font-weight-bolder mb-2">E-mail</span>
<span class="opacity-70"><? echo $user_email?></span>
</div>
</div>
</div>
</div>
<div class="row justify-content-center py-8 px-8 py-md-10 px-md-0">
<div class="col-md-10">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th class="pl-0 font-weight-bold text-muted text-uppercase">Ид платежа</th>
<th class="text-right font-weight-bold text-muted text-uppercase">Статус</th>
<th class="text-right font-weight-bold text-muted text-uppercase">Дата</th>
<th class="text-right pr-0 font-weight-bold text-muted text-uppercase">Сумма</th>
<th class="text-right pr-0 font-weight-bold text-muted text-uppercase">Платежная система</th>
</tr>
</thead>
<tbody>
<?php foreach($invoices as $item): ?>
<tr class="font-weight-boldest font-size-lg">
<td class="pl-0 pt-7"><?php echo $item['invoice_id'] ?></td>
<td class="text-right pt-7"><?php if($item['invoice_status'] == 0): ?>
Не оплачен
<?php elseif($item['invoice_status'] == 1): ?>
Оплачен
<?php endif; ?>
</td>
<td class="text-right pt-7"><?php echo date("d.m.Y в H:i", strtotime($item['invoice_date_add'])) ?></td>
<td class="text-right pt-7"><?php echo $item['invoice_ammount'] ?> RUB.</td>
<td class="text-primary pr-0 pt-7 text-right"><?php echo $item['system'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($invoices)): ?>
<tr>
<td colspan="5" class="text-primary pr-0 pt-7 text-center">На данный момент у вас нет счетов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="row justify-content-center bg-gray-100 py-8 px-8 py-md-10 px-md-0">
<div class="col-md-9">
<div class="d-flex justify-content-between flex-column flex-md-row font-size-lg">
<div class="d-flex flex-column mb-10 mb-md-0">
<div class="font-weight-bolder font-size-lg mb-3">Информация</div>
<div class="d-flex justify-content-between mb-3">
<span class="mr-15 font-weight-bold">Телефон:</span>
<span class="text-right"><?php echo $phone ?></span>
</div>
<div class="d-flex justify-content-between mb-3">
<span class="mr-15 font-weight-bold">E-mail:</span>
<span class="text-right"><?php echo $mail_from ?></span>
</div>
</div>
<div class="d-flex flex-column text-md-right">
<span class="font-size-lg font-weight-bolder mb-1">Общая сумма пополнений</span>
<span class="font-size-h2 font-weight-boldest text-primary mb-1"><?$invo = 0;
foreach($invoices as $item): ?>
<? if (!($item['invoice_status'] == 1)) { // пропуск нечетных чисел
continue;
}?>
<? $invo=$invo+$item['invoice_ammount']; ?>
<?endforeach; echo $invo; ?> RUB</span>
<span>Номер счета: <?php echo $user_id ?></span>
</div>
</div>
</div>
</div>
<div class="row justify-content-center py-8 px-8 py-md-10 px-md-0">
<div class="col-md-9">
<div class="d-flex justify-content-between">
<a href="/account/pay" class="btn btn-light-primary font-weight-bold">Пополнить баланс</a>
<button type="button" class="btn btn-primary font-weight-bold" onclick="window.print();">Распечатать</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,2 @@
<?php echo $loginheader ?>
<?php echo $loginfooter ?>
+588
View File
@@ -0,0 +1,588 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?if($qiwi == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/qiwi.jpg" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#qiwi" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($unitpay == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/unitpay.jpg" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#unitpayhostin" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($enotpay == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/enot.png" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#enot" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($anypay == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/anypay.jpg" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#anypay" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($litekassa == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/litekassa.png" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#litepay" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($robokassa == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/robokassa.jpg" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#robopay" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($freekassa == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/freekassa.png" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#freepay" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($yandexkassa == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/yandexmoney.jpg" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#yandexkassabox" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
<?if($interkassa == 1):?>
<div class="col-lg-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<center><img src="/application/public/img/pay/interkassa.png" style="max-width:100%;height:65px;" alt=""></center>
</div>
<div class="card-footer">
<button data-toggle="modal" data-target="#interpayhostin" class="btn btn-primary btn-lg btn-block">Пополнить</button>
</div>
</div>
</div>
<?endif;?>
</div>
</div>
</div>
</div>
<?if($unitpay == 1):?>
<!-- ================================================ /unitpay ================================================ -->
<div class="modal fade" id="unitpayhostin" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="unitpay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /unitpay ================================================ -->
<?endif;?>
<?if($robokassa == 1):?>
<!-- ================================================ /robopay ================================================ -->
<div class="modal fade" id="robopay" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="robopay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /robopay ================================================ -->
<?endif;?>
<?if($freekassa == 1):?>
<!-- ================================================ /freepay ================================================ -->
<div class="modal fade" id="freepay" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="freepay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /freepay ================================================ -->
<?endif;?>
<?if($enotpay == 1):?>
<!-- ================================================ /enot ================================================ -->
<div class="modal fade" id="enot" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="enot" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /enot ================================================ -->
<?endif;?>
<?if($anypay == 1):?>
<!-- ================================================ /anypay ================================================ -->
<div class="modal fade" id="anypay" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="anypay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /anypay ================================================ -->
<?endif;?>
<?if($litekassa == 1):?>
<!-- ================================================ /litepay ================================================ -->
<div class="modal fade" id="litepay" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="litepay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /litepay ================================================ -->
<?endif;?>
<?if($interkassa == 1):?>
<!-- ================================================ /interpay ================================================ -->
<div class="modal fade" id="interpayhostin" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="interpay" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!-- ================================================ /interpay ================================================ -->
<?endif;?>
<?if($yandexkassa == 1):?>
<div class="modal fade" id="yandexkassabox" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="yandexkassa" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<?endif;?>
<?if($qiwi == 1):?>
<div class="modal fade" id="qiwi" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="qiwi" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<?endif;?>
<?if($yandexkassa == 1):?>
<script>
$('#yandexkassa').ajaxForm({
url: '/account/pay/yandexkassa',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($litekassa == 1):?>
<script>
$('#litepay').ajaxForm({
url: '/account/pay/litepay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($robokassa == 1):?>
<script>
$('#robopay').ajaxForm({
url: '/account/pay/robopay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($freekassa == 1):?>
<script>
$('#freepay').ajaxForm({
url: '/account/pay/freepay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($unitpay == 1):?>
<script>
$('#unitpayhostin').ajaxForm({
url: '/account/pay/unitpay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($enotpay == 1):?>
<script>
$('#enot').ajaxForm({
url: '/account/pay/enotpay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($anypay == 1):?>
<script>
$('#anypay').ajaxForm({
url: '/account/pay/anypay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($interkassa == 1):?>
<script>
$('#interpayhostin').ajaxForm({
url: '/account/pay/interpay',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?if($qiwi == 1):?>
<script>
$('#qiwi').ajaxForm({
url: '/account/pay/qiwi',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?endif;?>
<?echo $footer?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">
Перевод средств
</h3>
</div>
</div>
<div class="card-body">
<form class="form-group form-md-line-input" action="#" id="payForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="userid" name="userid" placeholder="ID Пользователя">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="sum" name="sum" placeholder="Сумма">
</div>
<button type="submit" class="btn btn-primary btn-lg btn-block">Перевести средства</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#payForm').ajaxForm({
url: '/account/perevod/ajax',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
break;
}
$('button[type=submit]').prop('disabled', false);
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,41 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>Ваш пароль успешно был изменен</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<div class="form rounded-lg p-3">
<div class="alert alert-primary text-center h5" role="alert">Пароль был успешно изменен!</div>
<hr>
<center>
<span class="text-muted font-weight-bold font-size-h4">Ваш новый пароль: <strong><?php echo $password ?></strong><br>
<a href="/" id="kt_login_signup" class="text-primary font-weight-bolder">Вернутся на главную</a></span>
</center>
</div>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/error.gif)"></div>
</div>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,30 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom gutter-b">
<div class="swal2-header">
<div class="swal2-icon swal2-success swal2-icon-show" style="display: flex;">
<div class="swal2-success-circular-line-left" style="background-color: rgb(255, 255, 255);"></div>
<span class="swal2-success-line-tip"></span>
<span class="swal2-success-line-long"></span>
<div class="swal2-success-ring"></div>
<div class="swal2-success-fix" style="background-color: rgb(255, 255, 255);"></div>
<div class="swal2-success-circular-line-right" style="background-color: rgb(255, 255, 255);"></div>
</div>
<h2 class="swal2-title" id="swal2-title" style="display: flex;">Ваш баланс успешно пополнен!</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
+47
View File
@@ -0,0 +1,47 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($waste as $item): ?>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title"><?php echo $item['waste_usluga'] ?></h3>
<div class="card-toolbar">
<?php if($item['waste_status'] == 1): ?>
<span class="badge badge-danger" data-toggle="kt-tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>" style="margin-right: .25rem">- <?php echo $item['waste_ammount'] ?> руб</span>
<?php endif; ?>
<?php if($item['waste_status'] == 0): ?>
<span class="badge badge-success" data-toggle="kt-tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>" style="margin-right: .25rem">+ <?php echo $item['waste_ammount'] ?> руб</span>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php echo $pagination ?>
<?php if(empty($waste)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент у вас нет операций со счетом.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="ki ki-close"></i></span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,153 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<?php
$mysqlExists = false;
if(function_exists("mysqli_connect"))
$mysqlExists = true;
$ssh2Exists = false;
if(function_exists("ssh2_connect"))
$ssh2Exists = true;
$gdExists = false;
if(function_exists("gd_info"))
$gdExists = true;
$modRewriteExists = false;
if(function_exists('apache_get_modules')) {
$modRewriteExists = in_array('mod_rewrite', apache_get_modules());
} else {
// nginx/php-fpm: mod_rewrite не применим, ЧПУ обеспечивает сам веб-сервер
$modRewriteExists = (bool)preg_match('~/(main|admin|account|servers)/~', @$_SERVER['REQUEST_URI']);
}
?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-body">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr class="text-left">
<th>Функция</th>
<th>Статус</th>
<th>Установка</th>
<th>Информация</th>
</tr>
</thead>
<tbody>
<tr>
<td>Система</td>
<td>REDL.IO — Хостинг с искусственным интеллектом</td>
<td><i class="fa fa-check-circle"></i></td>
<td><?php echo php_uname() ?></td>
</tr>
<tr>
<td>php_mysql</td>
<td><?php if($mysqlExists): ?>Установлен<?php else: ?>Не установлен<?php endif; ?></td>
<td><?php if($mysqlExists): ?><i class="fa fa-check-circle"></i><?php else: ?><code>apt-get install php-mysql</code><?php endif; ?></td>
<td>Работоспособность бд для сервера.</td>
</tr>
<tr>
<td>php_ssh2</td>
<td><?php if($ssh2Exists): ?>Установлен<?php else: ?>Не установлен<?php endif; ?></td>
<td><?php if($ssh2Exists): ?><i class="fa fa-check-circle"></i><?php else: ?><code>apt-get install libssh2-php</code><?php endif; ?></td>
<td>Подключение по ssh.</td>
</tr>
<tr>
<td>php_gd</td>
<td><?php if($gdExists): ?>Установлен<?php else: ?>Не установлен<?php endif; ?></td>
<td><?php if($gdExists): ?><i class="fa fa-check-circle"></i><?php else: ?><code>apt-get install php-gd</code><?php endif; ?></td>
<td>Просмотр каптчи.</td>
</tr>
<tr>
<td>mod_rewrite</td>
<td><?php if($modRewriteExists): ?>Установлен<?php else: ?>Не установлен<?php endif; ?></td>
<td><?php if($modRewriteExists): ?><i class="fa fa-check-circle"></i><?php else: ?><code>a2enmod rewrite</code><?php endif; ?></td>
<td>Кэширование памяти.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php if($user_access_level == 3):?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-body">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th>Время</th>
<th>Ссылка для браузера</th>
<th>Crontab</th>
</tr>
</thead>
<tbody>
<tr>
<td>1 раз в 00:00</td>
<td><?php echo $url ?>main/cron/index?token=<?php echo $token ?></td>
<td><code>0 0 * * * curl http://127.0.0.1/main/cron/index?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в минуту</td>
<td><?php echo $url ?>main/cron/gameServers?token=<?php echo $token ?></td>
<td><code>*/1 * * * * curl http://127.0.0.1/main/cron/gameServers?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в минуту</td>
<td><?php echo $url ?>main/cron/tasks?token=<?php echo $token ?></td>
<td><code>*/1 * * * * curl http://127.0.0.1/main/cron/tasks?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в 10 минут</td>
<td><?php echo $url ?>main/cron/serverReloader?token=<?php echo $token ?></td>
<td><code>0 */10 * * * curl http://127.0.0.1/main/cron/serverReloader?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в 30 минут</td>
<td><?php echo $url ?>main/cron/stopServers?token=<?php echo $token ?></td>
<td><code>*/30 * * * * curl http://127.0.0.1/main/cron/stopServers?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в 30 минут</td>
<td><?php echo $url ?>main/cron/stopServersQuery?token=<?php echo $token ?></td>
<td><code>*/30 * * * * curl http://127.0.0.1/main/cron/stopServersQuery?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в час</td>
<td><?php echo $url ?>main/cron/updateStats?token=<?php echo $token ?></td>
<td><code>* */1 * * * curl http://127.0.0.1/main/cron/updateStats?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в час</td>
<td><?php echo $url ?>main/cron/updateStatsLocations?token=<?php echo $token ?></td>
<td><code>* */1 * * * curl http://127.0.0.1/main/cron/updateStatsLocations?token=<?php echo $token ?></code></td>
</tr>
<tr>
<td>1 раз в неделю</td>
<td><?php echo $url ?>main/cron/clearLogs?token=<?php echo $token ?></td>
<td><code>0 * */7 * * curl http://127.0.0.1/main/cron/clearLogs?token=<?php echo $token ?></code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?echo $footer?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Рассылка E-mail
</h3>
</div>
</div>
<div class="card-body">
<form id="emailForm" method="POST">
<div class="form-group form-md-line-input">
<textarea class="form-control" id="text" name="text" rows="3" placeholder="Сообщение..."></textarea>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Отправить</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#emailForm').ajaxForm({
url: '/admin/emailinfo/index/ajax/',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
break;
}
},
beforeSubmit: function(arr, $form, options) {
toastr.info("Рассылка начата!");
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,97 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание игры
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название игры</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название игры">
</div>
<div class="form-group form-md-line-input">
<label>Введите код игры</label>
<input type="text" class="form-control" id="code" name="code" placeholder="Введите код игры">
</div>
<div class="form-group form-md-line-input">
<label>Выберите query-драйвер игры</label>
<select class="form-control" id="query" name="query" name="delivery" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($queryDrivers as $item): ?>
<option value="<?php echo $item ?>"><?php echo $item ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Введите минимальное количество слотов для заказа</label>
<input type="text" class="form-control" id="minslots" name="minslots" placeholder="Введите минимальное количество слотов для заказа">
</div>
<div class="form-group form-md-line-input">
<label>Введите максимальное количество слотов для заказа</label>
<input type="text" class="form-control" id="maxslots" name="maxslots" placeholder="Введите максимальное количество слотов для заказа">
</div>
<div class="form-group form-md-line-input">
<label>Введите минимальный порт для заказа</label>
<input type="text" class="form-control" id="minport" name="minport" placeholder="Введите минимальный порт для заказа">
</div>
<div class="form-group form-md-line-input">
<label>Введите максимальное порт для заказа</label>
<input type="text" class="form-control" id="maxport" name="maxport" placeholder="Введите максимальное порт для заказа">
</div>
<div class="form-group form-md-line-input">
<label>Введите стоимость за один слот</label>
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость за один слот">
</div>
<div class="form-group form-md-line-input">
<label>Введите количество ядер на один сервер</label>
<input type="text" class="form-control" id="cores" name="cores" placeholder="Введите количество ядер на один сервер">
</div>
<div class="form-group form-md-line-input">
<label>Введите объем оперативной памяти на один сервер (в МБ)</label>
<input type="text" class="form-control" id="ram" name="ram" placeholder="Введите объем оперативной памяти на один сервер (в МБ)">
</div>
<div class="form-group form-md-line-input">
<label>Введите объем SSD на один сервер (в МБ)</label>
<input type="text" class="form-control" id="ssd" name="ssd" placeholder="Введите объем SSD на один сервер (в МБ)">
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/games/create/ajax',
dataType: 'json',
success: function(data) {
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/games')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,109 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование игры
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название игры</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название игры" value="<?php echo $game['game_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите код игры</label>
<input type="text" class="form-control" id="code" name="code" placeholder="Введите код игры" value="<?php echo $game['game_code'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Выберите query-драйвер игры</label>
<select class="form-control" id="query" name="query" name="delivery" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($queryDrivers as $item): ?>
<option value="<?php echo $item ?>"<?php if($item == $game['game_query']): ?> selected<?php endif; ?>><?php echo $item ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Введите минимальное количество слотов для заказа</label>
<input type="text" class="form-control" id="minslots" name="minslots" placeholder="Введите минимальное количество слотов для заказа" value="<?php echo $game['game_min_slots'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите максимальное количество слотов для заказа</label>
<input type="text" class="form-control" id="maxslots" name="maxslots" placeholder="Введите максимальное количество слотов для заказа" value="<?php echo $game['game_max_slots'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите минимальный порт для заказа</label>
<input type="text" class="form-control" id="minport" name="minport" placeholder="Введите минимальный порт для заказа" value="<?php echo $game['game_min_port'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите максимальный порт для заказа</label>
<input type="text" class="form-control" id="maxport" name="maxport" placeholder="Введите максимальный порт для заказа" value="<?php echo $game['game_max_port'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите стоимость за один слот</label>
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость за один слот" value="<?php echo $game['game_price'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите количество ядер на один сервер</label>
<input type="text" class="form-control" id="cores" name="cores" placeholder="Введите количество ядер на один сервер" value="<?php echo $game['game_cores'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите объем оперативной памяти на один сервер (в МБ)</label>
<input type="text" class="form-control" id="ram" name="ram" placeholder="Введите объем оперативной памяти на один сервер (в МБ)" value="<?php echo $game['game_ram'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите объем SSD на один сервер (в МБ)</label>
<input type="text" class="form-control" id="ssd" name="ssd" placeholder="Введите объем SSD на один сервер (в МБ)" value="<?php echo $game['game_ssd'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Выберите статус игры</label>
<select class="form-control" id="status" name="status" name="delivery" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1"<?php if($game['game_status'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($game['game_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/games/edit/delete/<?php echo $game['game_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/games/edit/ajax/<?php echo $game['game_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/games')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,69 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список игр
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/games/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить игру">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Статус</th>
<th>Название</th>
<th>Код</th>
<th>Слоты</th>
<th>Порты</th>
<th>Цена за слот</th>
</tr>
</thead>
<tbody>
<?php foreach($games as $item): ?>
<tr onClick="redirect('/admin/games/edit/index/<?php echo $item['game_id'] ?>')">
<th scope="row"><?php echo $item['game_id'] ?></th>
<td>
<?php if($item['game_status'] == 0): ?>
<span class="badge badge-danger">Выключена</span>
<?php elseif($item['game_status'] == 1): ?>
<span class="badge badge-success">Включена</span>
<?php endif; ?>
</td>
<td><?php echo $item['game_name'] ?></td>
<td><?php echo $item['game_code'] ?></td>
<td><?php echo $item['game_min_slots'] ?> - <?php echo $item['game_max_slots'] ?></td>
<td><?php echo $item['game_min_port'] ?> - <?php echo $item['game_max_port'] ?></td>
<td><?php echo $item['game_price'] ?> руб.</td>
</tr>
<?php endforeach; ?>
<?php if(empty($games)): ?>
<tr>
<td colspan="7" class="text-center">На данный момент нет игр.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
+325
View File
@@ -0,0 +1,325 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-6">
<div class="card card-custom mb-2">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<path d="M18,14 C16.3431458,14 15,12.6568542 15,11 C15,9.34314575 16.3431458,8 18,8 C19.6568542,8 21,9.34314575 21,11 C21,12.6568542 19.6568542,14 18,14 Z M9,11 C6.790861,11 5,9.209139 5,7 C5,4.790861 6.790861,3 9,3 C11.209139,3 13,4.790861 13,7 C13,9.209139 11.209139,11 9,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3"/>
<path d="M17.6011961,15.0006174 C21.0077043,15.0378534 23.7891749,16.7601418 23.9984937,20.4 C24.0069246,20.5466056 23.9984937,21 23.4559499,21 L19.6,21 C19.6,18.7490654 18.8562935,16.6718327 17.6011961,15.0006174 Z M0.00065168429,20.1992055 C0.388258525,15.4265159 4.26191235,13 8.98334134,13 C13.7712164,13 17.7048837,15.2931929 17.9979143,20.2 C18.0095879,20.3954741 17.9979143,21 17.2466999,21 C13.541124,21 8.03472472,21 0.727502227,21 C0.476712155,21 -0.0204617505,20.45918 0.00065168429,20.1992055 Z" fill="#000000" fill-rule="nonzero"/>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="/admin/users" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder">Пользователи</a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Заблокировано: <?$userov2 = 0;
foreach($users as $itemr): ?>
<? if (!($itemr['user_status'] == 0)) { // пропуск нечетных чисел
continue;
}?>
<? $userov2++; ?>
<?endforeach;echo $userov2; ?></span>
</div>
<div class="d-flex align-items-center">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Всего: <?$userov = 0;
foreach($users as $itemr): ?>
<? $userov++; ?>
<?endforeach;echo $userov; ?></span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-2">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M14.4862 18L12.7975 21.0566C12.5304 21.54 11.922 21.7153 11.4386 21.4483C11.2977 21.3704 11.1777 21.2597 11.0887 21.1255L9.01653 18H5C3.34315 18 2 16.6569 2 15V6C2 4.34315 3.34315 3 5 3H19C20.6569 3 22 4.34315 22 6V15C22 16.6569 20.6569 18 19 18H14.4862Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H6C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7ZM6 11H11C11.5523 11 12 11.4477 12 12C12 12.5523 11.5523 13 11 13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11Z" fill="black"/>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="/admin/tickets" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder">Техническая поддержка</a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Новых запросов: <?$ticketov2 = 0;
foreach($tickets as $item): ?>
<? if (!($item['ticket_status'] == 1)) { // пропуск нечетных чисел
continue;
}?>
<? $ticketov2++; ?> <?endforeach;echo $ticketov2; ?></span>
</div>
<div class="d-flex align-items-center">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Запросов: <?$ticketov = 0;
foreach($tickets as $item): ?>
<? $ticketov++; ?>
<?endforeach;echo $ticketov; ?></span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-2">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path d="M5,2 L19,2 C20.1045695,2 21,2.8954305 21,4 L21,6 C21,7.1045695 20.1045695,8 19,8 L5,8 C3.8954305,8 3,7.1045695 3,6 L3,4 C3,2.8954305 3.8954305,2 5,2 Z M11,4 C10.4477153,4 10,4.44771525 10,5 C10,5.55228475 10.4477153,6 11,6 L16,6 C16.5522847,6 17,5.55228475 17,5 C17,4.44771525 16.5522847,4 16,4 L11,4 Z M7,6 C7.55228475,6 8,5.55228475 8,5 C8,4.44771525 7.55228475,4 7,4 C6.44771525,4 6,4.44771525 6,5 C6,5.55228475 6.44771525,6 7,6 Z" fill="#000000" opacity="0.3"/>
<path d="M5,9 L19,9 C20.1045695,9 21,9.8954305 21,11 L21,13 C21,14.1045695 20.1045695,15 19,15 L5,15 C3.8954305,15 3,14.1045695 3,13 L3,11 C3,9.8954305 3.8954305,9 5,9 Z M11,11 C10.4477153,11 10,11.4477153 10,12 C10,12.5522847 10.4477153,13 11,13 L16,13 C16.5522847,13 17,12.5522847 17,12 C17,11.4477153 16.5522847,11 16,11 L11,11 Z M7,13 C7.55228475,13 8,12.5522847 8,12 C8,11.4477153 7.55228475,11 7,11 C6.44771525,11 6,11.4477153 6,12 C6,12.5522847 6.44771525,13 7,13 Z" fill="#000000"/>
<path d="M5,16 L19,16 C20.1045695,16 21,16.8954305 21,18 L21,20 C21,21.1045695 20.1045695,22 19,22 L5,22 C3.8954305,22 3,21.1045695 3,20 L3,18 C3,16.8954305 3.8954305,16 5,16 Z M11,18 C10.4477153,18 10,18.4477153 10,19 C10,19.5522847 10.4477153,20 11,20 L16,20 C16.5522847,20 17,19.5522847 17,19 C17,18.4477153 16.5522847,18 16,18 L11,18 Z M7,20 C7.55228475,20 8,19.5522847 8,19 C8,18.4477153 7.55228475,18 7,18 C6.44771525,18 6,18.4477153 6,19 C6,19.5522847 6.44771525,20 7,20 Z" fill="#000000"/>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="/admin/servers" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder">Игровые сервера</a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Онлайн: <?$tserverov = 0;
foreach($tservers as $item): ?>
<? if (!($item['server_status'] == 2)) { // пропуск нечетных чисел
continue;
}?>
<? $tserverov++; ?>
<?endforeach;echo $tserverov; ?></span>
</div>
<div class="d-flex align-items-center">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Серверов: <?$tserverov1 = 0;
foreach($tservers as $item): ?>
<? $tserverov1++; ?>
<?endforeach;echo $tserverov1; ?></span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-2">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" opacity="0.3" cx="20.5" cy="12.5" r="1.5"/>
<rect fill="#000000" opacity="0.3" transform="translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) " x="3" y="3" width="18" height="7" rx="1"/>
<path d="M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z" fill="#000000"/>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="/admin/invoices" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder">Платежи</a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold"><? foreach($invoices as $item): ?> <?endforeach; ?>
Последний счет: <?php echo isset($item['invoice_ammount']) ? $item['invoice_ammount'] : '0';?>руб.</span>
</div>
<div class="d-flex align-items-center">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<rect fill="#000000" opacity="0.3" transform="translate(8.500000, 12.000000) rotate(-90.000000) translate(-8.500000, -12.000000) " x="7.5" y="7.5" width="2" height="9" rx="1"/>
<path d="M9.70710318,15.7071045 C9.31657888,16.0976288 8.68341391,16.0976288 8.29288961,15.7071045 C7.90236532,15.3165802 7.90236532,14.6834152 8.29288961,14.2928909 L14.2928896,8.29289093 C14.6714686,7.914312 15.281055,7.90106637 15.675721,8.26284357 L21.675721,13.7628436 C22.08284,14.136036 22.1103429,14.7686034 21.7371505,15.1757223 C21.3639581,15.5828413 20.7313908,15.6103443 20.3242718,15.2371519 L15.0300721,10.3841355 L9.70710318,15.7071045 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.999999, 11.999997) scale(1, -1) rotate(90.000000) translate(-14.999999, -11.999997) "/>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold">Заработано: <?$invo = 0;
foreach($invoices as $item): ?>
<? if (!($item['invoice_status'] == 1)) { // пропуск нечетных чисел
continue;
}?>
<? $invo=$invo+$item['invoice_ammount']; ?>
<?endforeach; echo $invo; ?> RUB.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-2">
<div class="card-body">
<div class="scroll scroll-pull" data-scroll="true" style="height: 360px; overflow: auto;" data-mobile-height="250">
<div class="timeline timeline-5">
<?php foreach($waste as $item): ?>
<div class="timeline-items">
<div class="timeline-item">
<div class="timeline-media bg-light-primary">
<?php if($item['waste_status'] == 1): ?>
<i class="fa fa-user-minus text-danger icon-md"></i>
<?php elseif($item['waste_status'] == 0): ?>
<i class="fa fa-user-check text-success icon-md"></i>
<?php endif; ?>
</div>
<div class="timeline-desc timeline-desc-light-primary">
<a href="/admin/users/edit/index/<?php echo $item['user_id'] ?>" class="font-weight-bolder text-primary"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?> <?php if($item['waste_status'] == 1): ?>
<small class="text-danger">( - <?php echo $item['waste_ammount'] ?> RUB. )</small>
<?php elseif($item['waste_status'] == 0): ?>
<small class="text-success">( + <?php echo $item['waste_ammount'] ?> RUB. ) </small>
<?php endif; ?></small></a>
<a href="/admin/waste/index?userid=<?php echo $item['user_id'] ?>">
<p class="font-weight-normal text-dark-50 pt-1 pb-2">
<?php echo $item['waste_usluga'] ?>
</p>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($waste)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет операций.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php foreach($users as $item): ?>
<?if($item['user_access_level'] == 1)
continue;?>
<div class="col-xl-6">
<div class="card card-custom mb-2">
<div class="card-body">
<div class="d-flex align-items-center mb-0">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<img src="/<?if($item['user_img']) {echo $item['user_img'];}else{ echo 'application/public/img/user.png';}?>" class="h-75" alt="">
</span>
</div>
<div class="d-flex flex-column flex-grow-1 font-weight-bold">
<a href="/admin/users/edit/index/<?php echo $item['user_id'] ?>" class="text-dark text-hover-primary mb-0 font-size-lg"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?></a>
<span class="text-muted"><?php if($item['user_access_level'] == 2): ?>
Тех. поддержка
<?php elseif($item['user_access_level'] == 3): ?>
Администратор
<?php endif; ?></span>
</div>
<div class="dropdown dropdown-inline ml-2">
<a href="https://vk.com/id<?php echo $item['user_vk_id'] ?>" target="blank" class="btn btn-hover-light-primary btn-sm btn-icon">
<i class="fab fa-vk"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,52 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Обратная связь
</h3>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th>Отправитель</th>
<th>Тема</th>
<th>E-mail</th>
<th>Дата обращения</th>
</tr>
</thead>
<tbody>
<?php foreach($mail as $item): ?>
<tr onClick="redirect('/admin/infobox/send/index/<?php echo $item['id']?>')">
<th scope="row"><?php echo $item['user_lastname'] ?> <?php echo $item['user_firstname'] ?></th>
<td><?php echo $item['category']?></td>
<td><?php echo $item['user_email'] ?></td>
<td><?php echo $item['inbox_date_add']?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($mail)): ?>
<tr>
<td colspan="4" style="text-align: center;">На данный момент нет запросов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,75 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<form id="sendMForm" method="POST">
<div class="card card-custom mb-4">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-50 mr-5">
<span class="symbol-label">
<img src="/application/public/img/user.png" class="h-75" alt="">
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="javascript:;" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder"><?php echo $mail['user_firstname'] ?> <?php echo $mail['user_lastname'] ?> <small><?php echo $mail['user_email'] ?></small></a>
<span class="text-muted font-weight-bold"><?php echo $mail['text'] ?></span>
</div>
<span class="text-muted font-weight-normal font-size-sm"><?php echo $mail['inbox_date_add']?></span>
</div>
</div>
</div>
<div class="card card-custom">
<div class="card-body">
<div class="form-group form-md-line-input">
<textarea class="form-control" id="msg" name="msg" rows="3" placeholder="Сообщение..."></textarea>
</div>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="dell" name="dell">
<span></span>
Удалить после отправки
</label>
</div>
</div>
</div>
<hr>
<button type="submit" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase">Отправить</button>
</div>
</div>
</form>
</div>
</div>
</div>
<script>
$('#sendMForm').ajaxForm({
url: '/admin/infobox/send/sendMForm/<?php echo $mail['id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/infobox')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($invoices as $item): ?>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title"> <span class="card-icon">
<a href="javascript:;" class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="" data-original-title="ID"><?php echo $item['invoice_id'] ?>
</a>
</span><a href="/admin/users/edit/index/<?php echo $item['user_id'] ?>" class="text-dark"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?></a><small class="text-muted font-size-sm ml-2"><?php echo $item['invoice_ammount'] ?> RUB.</small>
</h3>
<div class="card-toolbar">
<span class="badge badge-primary mr-2" data-toggle="tooltip" data-placement="right" title="" data-original-title="Платежная система"><?php echo $item['system'] ?></span>
<?php if($item['invoice_status'] == 0): ?>
<span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['invoice_date_add'])) ?>">Не оплачен</span>
<?php elseif($item['invoice_status'] == 1): ?>
<span class="badge badge-success" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['invoice_date_add'])) ?>">Оплачен</span>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<div class="col-xl-12">
<?php echo $pagination ?>
<?php if(empty($invoices)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет платежей.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,75 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание локации
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название локации</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название локации">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (Который видит пользователь)</label>
<input type="text" class="form-control" id="ip2" name="ip2" placeholder="Введите IP (Который видит пользователь)">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (По которому подключаются)</label>
<input type="text" class="form-control" id="ip" name="ip" placeholder="Введите IP (По которому подключаются)">
</div>
<div class="form-group form-md-line-input">
<label>Введите имя пользователя</label>
<input type="text" class="form-control" id="user" name="user" placeholder="Введите имя пользователя">
</div>
<div class="form-group form-md-line-input">
<label>Пароль</label>
<input type="text" class="form-control" id="password" name="password" placeholder="Пароль">
</div>
<div class="form-group form-md-line-input">
<label>Повторите пароль</label>
<input type="text" class="form-control" id="password2" name="password2" placeholder="Повторите пароль">
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/locations/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/locations')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,113 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование локации
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название локации</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название локации" value="<?php echo $location['location_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (Который видит пользователь)</label>
<input type="text" class="form-control" id="ip2" name="ip2" placeholder="Введите IP (Который видит пользователь)" value="<?php echo $location['location_ip2'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (По которому подключаются)</label>
<input type="text" class="form-control" id="ip" name="ip" placeholder="Введите IP (По которому подключаются)" value="<?php echo $location['location_ip'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите имя пользователя</label>
<input type="text" class="form-control" id="user" name="user" placeholder="Введите имя пользователя" value="<?php echo $location['location_user'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите ID игр для которых будет доступна локация (через пробел)</label>
<input type="text" class="form-control" id="location_games" name="location_games" placeholder="Введите ID игр для которых будет доступна локация (через пробел)" value="<?php echo $location['location_games'] ?>">
</div>
<hr>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onChange="togglePassword()">
<span></span>
Изменить пароль
</label>
</div>
</div>
</div>
<div class="form-group form-md-line-input">
<label>Пароль</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Пароль" disabled>
</div>
<div class="form-group form-md-line-input">
<label>Повторите пароль</label>
<input type="password" class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled>
</div>
<hr>
<div class="form-group form-md-line-input">
<label>Выберите статус локации</label>
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1"<?php if($location['location_status'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($location['location_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/locations/edit/delete/<?php echo $location['location_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/locations/edit/ajax/<?php echo $location['location_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/locations')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,71 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список локаций
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/locations/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить локацию">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Статус</th>
<th>Название</th>
<th>IP</th>
<th>CPU</th>
<th>RAM</th>
<th>SSD</th>
<th>Обновлено в</th>
</tr>
</thead>
<tbody>
<?php foreach($locations as $item): ?>
<tr onClick="redirect('/admin/locations/edit/index/<?php echo $item['location_id'] ?>')">
<th scope="row"><?php echo $item['location_id'] ?></th>
<td>
<?php if($item['location_status'] == 0): ?>
<span class="badge badge-danger">Выключена</span>
<?php elseif($item['location_status'] == 1): ?>
<span class="badge badge-success">Включена</span>
<?php endif; ?>
</td>
<td><?php echo $item['location_name'] ?></td>
<td><?php echo $item['location_ip'] ?></td>
<td><?php echo $item['location_cpu'] ?>%</td>
<td><?php echo $item['location_ram'] ?>%</td>
<td><?php echo $item['location_hdd'] ?>%</td>
<td><?php echo date("H:i:s", strtotime($item['location_upd'])) ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($locations)): ?>
<tr>
<td colspan="9" class="text-center">На данный момент нет локаций.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,106 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание мода
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название мода">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="textx" name="textx" rows="3" placeholder="Описание..."></textarea>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="img" name="img" placeholder="Введите ссылку на изображение">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="gameid" name="gameid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($games as $item): ?>
<option value="<?php echo $item['game_id'] ?>"><?php echo $item['game_name'] ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<label for="upload" class="form-control"><input type="file" id="upload" name="userfile"></label>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость мода">
</div>
<hr>
<input type="submit" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/mods/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/mods')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$(function(){
var progressBar = $('#progressbar');
$('#createForm').on('submit', function(e){
e.preventDefault();
var $that = $(this),
formData = new FormData($that.get(0));
$.ajax({
url: $that.attr('action'),
type: $that.attr('method'),
contentType: false,
processData: false,
data: formData,
dataType: 'json',
xhr: function(){
var xhr = $.ajaxSettings.xhr();
xhr.upload.addEventListener('progress', function(evt){
if(evt.lengthComputable) {
var percentComplete = Math.ceil(evt.loaded / evt.total * 100);
progressBar.val(percentComplete).text('Загружено ' + percentComplete + '%');
toastr.info('Загружено ' + percentComplete + '%');
}
}, false);
return xhr;
},
success: function(json){
if(json){
$that.after(json);
}
}
});
});
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,86 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование мода
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" value="<?php echo $mod['mod_name'] ?>" placeholder="Введите название мода">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="textx" name="textx" rows="3"placeholder="Описание..."><?php echo $mod['mod_textx'] ?></textarea>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="img" name="img" value="<?php echo $mod['mod_img'] ?>" placeholder="Введите ссылку на изображение">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="gameid" name="gameid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($games as $item): ?>
<option value="<?php echo $item['game_id'] ?>" <?php if($item['game_id'] == $mod['game_id']): ?> selected="selected"<?php endif; ?>><?php echo $item['game_name'] ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="url" name="url" value="<?php echo $mod['mod_url'] ?>" placeholder="Введите ссылку на архив (tar)">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="arch" name="arch" value="<?php echo $mod['mod_arch'] ?>" placeholder="Введите название архива">
</div>
<hr>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="price" name="price" value="<?php echo $mod['mod_price'] ?>" placeholder="Введите стоимость мода">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="0"<?php if($mod['mod_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1"<?php if($mod['mod_status'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/mods/edit/delete/<?php echo $mod['mod_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/mods/edit/ajax/<?php echo $mod['mod_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/mods')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,65 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список модов
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/mods/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить мод">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Игра</th>
<th>Название</th>
<th>Статус</th>
<th>Стоимость</th>
</tr>
</thead>
<tbody>
<?php foreach($mods as $item): ?>
<tr onClick="redirect('/admin/mods/edit/index/<?php echo $item['mod_id'] ?>')">
<th scope="row"><?php echo $item['mod_id'] ?></th>
<td><?php echo $item['game_name'] ?></td>
<td><?php echo $item['mod_name'] ?></td>
<td>
<?php if($item['mod_status'] == 0): ?>
<span class="badge badge-danger">Выключен</span>
<?php elseif($item['mod_status'] == 1): ?>
<span class="badge badge-success">Включен</span>
<?php endif; ?>
</td>
<td><?php echo $item['mod_price'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($mods)): ?>
<tr>
<td colspan="5" class="text-center">На данный момент нет модов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание новости
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите заголовок">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="text" name="text" rows="3" placeholder="Введите текст новости"></textarea>
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/news/create/ajax',
dataType: 'json',
success: function(data) {
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/news/view/index/" + data.id + "')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,60 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование новости
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите заголовок" value="<?php echo $new['news_title'] ?>">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="text" name="text" rows="3" placeholder="Введите текст новости"><?echo $new['news_text']?></textarea>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/news/edit/delete/<?php echo $new['news_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/news/edit/ajax/<?php echo $new['news_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/news')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список новостей
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/news/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить новость">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Название</th>
<th>Добавил</th>
</tr>
</thead>
<tbody>
<?php foreach($news as $item): ?>
<tr onClick="redirect('/admin/news/edit/index/<?php echo $item['news_id'] ?>')">
<th><?php echo $item['news_id'] ?></th>
<td><?php echo $item['news_title'] ?></td>
<td><?php echo $item['user_lastname'] ?> <?php echo $item['user_firstname'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($news)): ?>
<tr>
<td colspan="3" class="text-center">На данный момент нет новостей.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,81 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание промо кода
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="cod" name="cod" placeholder="Введите промо-код">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="skidka" name="skidka" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="5">5%</option>
<option value="10">10%</option>
<option value="15">15%</option>
<option value="20">20%</option>
<option value="25">25%</option>
<option value="30">30%</option>
<option value="35">35%</option>
<option value="40">40%</option>
<option value="45">45%</option>
<option value="50">50%</option>
<option value="55">55%</option>
<option value="60">60%</option>
<option value="65">65%</option>
<option value="70">70%</option>
<option value="75">75%</option>
<option value="80">80%</option>
<option value="85">85%</option>
<option value="90">90%</option>
<option value="95">95%</option>
<option value="100">100%</option>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="uses" name="uses" placeholder="Введите количество использований">
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/promo/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/promo')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,84 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование промо кода
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="cod" name="cod" placeholder="Введите промо-код" value="<?php echo $promo['cod'] ?>">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="skidka" name="skidka" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="5" <?php if($promo['skidka'] == 5): ?> selected="selected"<?php endif; ?>>5%</option>
<option value="10" <?php if($promo['skidka'] == 10): ?> selected="selected"<?php endif; ?>>10%</option>
<option value="15" <?php if($promo['skidka'] == 15): ?> selected="selected"<?php endif; ?>>15%</option>
<option value="20" <?php if($promo['skidka'] == 20): ?> selected="selected"<?php endif; ?>>20%</option>
<option value="25" <?php if($promo['skidka'] == 25): ?> selected="selected"<?php endif; ?>>25%</option>
<option value="30" <?php if($promo['skidka'] == 30): ?> selected="selected"<?php endif; ?>>30%</option>
<option value="35" <?php if($promo['skidka'] == 35): ?> selected="selected"<?php endif; ?>>35%</option>
<option value="40" <?php if($promo['skidka'] == 40): ?> selected="selected"<?php endif; ?>>40%</option>
<option value="45" <?php if($promo['skidka'] == 45): ?> selected="selected"<?php endif; ?>>45%</option>
<option value="50" <?php if($promo['skidka'] == 50): ?> selected="selected"<?php endif; ?>>50%</option>
<option value="55" <?php if($promo['skidka'] == 55): ?> selected="selected"<?php endif; ?>>55%</option>
<option value="60" <?php if($promo['skidka'] == 60): ?> selected="selected"<?php endif; ?>>60%</option>
<option value="65" <?php if($promo['skidka'] == 65): ?> selected="selected"<?php endif; ?>>65%</option>
<option value="70" <?php if($promo['skidka'] == 70): ?> selected="selected"<?php endif; ?>>70%</option>
<option value="75" <?php if($promo['skidka'] == 75): ?> selected="selected"<?php endif; ?>>75%</option>
<option value="80" <?php if($promo['skidka'] == 80): ?> selected="selected"<?php endif; ?>>80%</option>
<option value="85" <?php if($promo['skidka'] == 85): ?> selected="selected"<?php endif; ?>>85%</option>
<option value="90" <?php if($promo['skidka'] == 90): ?> selected="selected"<?php endif; ?>>90%</option>
<option value="95" <?php if($promo['skidka'] == 95): ?> selected="selected"<?php endif; ?>>95%</option>
<option value="100" <?php if($promo['skidka'] == 100): ?> selected="selected"<?php endif; ?>>100%</option>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="uses" name="uses" placeholder="Введите количество использований" value="<?php echo $promo['uses'] ?>">
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/promo/edit/delete/<?php echo $promo['id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/promo/edit/ajax/<?php echo $promo['id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/promo')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,57 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список промо кодов
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/promo/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить промо код">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<td>Код</td>
<td>Скидка</td>
<td>Использовано</td>
</tr>
</thead>
<tbody>
<?php foreach($promos as $item): ?>
<tr onClick="redirect('/admin/promo/edit/index/<?php echo $item['id'] ?>')">
<td><?php echo $item['id'] ?></td>
<td><?echo $item['cod']?></td>
<td><?php echo $item['skidka'] ?></td>
<td><?php echo $item['used'] ?>/<?php echo $item['uses'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($promos)): ?>
<tr>
<td colspan="4" class="text-center">На данный момент нет промо кодов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,73 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Добавление файла в репозиторий
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название файла">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="textx" name="textx" rows="3" placeholder="Описание..."></textarea>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="img" name="img" placeholder="Введите ссылку на изображение">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="gameid" name="gameid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($games as $item): ?>
<option value="<?php echo $item['game_id'] ?>"><?php echo $item['game_name'] ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="url" name="url" placeholder="Введите адрес файла">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость файла">
</div>
<hr>
<input type="submit" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/repo/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/repo')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,83 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование файла в репозитории
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" value="<?php echo $repo['repo_name'] ?>" placeholder="Введите название файла">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="textx" name="textx" rows="3"placeholder="Описание..."><?php echo $repo['repo_textx'] ?></textarea>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="img" name="img" value="<?php echo $repo['repo_img'] ?>" placeholder="Введите ссылку на изображение">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="gameid" name="gameid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($games as $item): ?>
<option value="<?php echo $item['game_id'] ?>" <?php if($item['game_id'] == $repo['game_id']): ?> selected="selected"<?php endif; ?>><?php echo $item['game_name'] ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="url" name="url" value="<?php echo $repo['repo_url'] ?>" placeholder="Введите ссылку на файд">
</div>
<hr>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="price" name="price" value="<?php echo $repo['repo_price'] ?>" placeholder="Введите стоимость файла">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="0"<?php if($repo['repo_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1"<?php if($repo['repo_status'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/repo/edit/delete/<?php echo $repo['repo_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/repo/edit/ajax/<?php echo $repo['repo_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/repo')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,65 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список файлов в репозитории
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/repo/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить файл">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Игра</th>
<th>Название</th>
<th>Статус</th>
<th>Стоимость</th>
</tr>
</thead>
<tbody>
<?php foreach($repo as $item): ?>
<tr onClick="redirect('/admin/repo/edit/index/<?php echo $item['repo_id'] ?>')">
<th scope="row"><?php echo $item['repo_id'] ?></th>
<td><?php echo $item['game_name'] ?></td>
<td><?php echo $item['repo_name'] ?></td>
<td>
<?php if($item['repo_status'] == 0): ?>
<span class="badge badge-danger">Выключен</span>
<?php elseif($item['repo_status'] == 1): ?>
<span class="badge badge-success">Включен</span>
<?php endif; ?>
</td>
<td><?php echo $item['repo_price'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($repo)): ?>
<tr>
<td colspan="5" class="text-center">На данный момент нет файлов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,546 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<?php if($server['server_status'] == 1): ?>
<i class="fa fa-power-off icon-6x text-danger"></i>
<?php elseif($server['server_status'] == 2): ?>
<i class="fa fa-power-off icon-6x text-success"></i>
<?php elseif($server['server_status'] == 3): ?>
<i class="fas fa-clock icon-6x text-primary"></i>
<?php elseif($server['server_status'] == 4 || $server['server_status'] == 5 || $server['server_status'] == 6 || $server['server_status'] == 7): ?>
<i class="fas fa-clock icon-6x text-info"></i>
<?php elseif($server['server_status'] == 0): ?>
<i class="fas fa-exclamation-circle icon-6x text-warning"></i>
<?php endif; ?>
</div>
<i class="symbol-badge symbol-badge-bottom bg-<?php if($server['server_status'] == 0): ?>warning
<?php elseif($server['server_status'] == 1): ?>danger
<?php elseif($server['server_status'] == 2): ?>success
<?php elseif($server['server_status'] == 3): ?>primary
<?php elseif($server['server_status'] == 4 || $server['server_status'] == 5 || $server['server_status'] == 6 || $server['server_status'] == 7): ?>info
<?php endif; ?>"></i>
</div>
<h4 class="font-weight-bolder my-2"><?php echo $server['game_name'] ?></h4>
<div class="text-muted font-weight-bold mb-2"><?php if($server['server_status'] == 1): ?>
Остановлен
<?php elseif($server['server_status'] == 2): ?>
Запущен
<?php elseif($server['server_status'] == 3): ?>
Устанавливается
<?php elseif($server['server_status'] == 4): ?>
Переустанавливается
<?php elseif($server['server_status'] == 5): ?>
Создается BackUP
<?php elseif($server['server_status'] == 6): ?>
Устанавливается BackUP
<?php elseif($server['server_status'] == 0): ?>
Заблокирован
<?php elseif($server['server_status'] == 7): ?>
Обновляется
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<?php if($server['server_status'] == 1): ?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'start')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-power-off"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Запустить</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'reinstall')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fas fa-spinner"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Переустановить</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'backup')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-cloud-download-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Сделать BackUP</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'unbackup')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-cloud-upload-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Развернуть BackUP</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'delete_backup')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fas fa-quidditch"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Удалить BackUP</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'block')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-lock"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Блокировать</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'delete')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-trash-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Удалить сервер</span>
</a>
</div>
<?php elseif($server['server_status'] == 2): ?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'stop')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-power-off"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Остановить</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'restart')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-sync-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Перезапустить</span>
</a>
</div>
<?php elseif($server['server_status'] == 0): ?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="actionserver(<?php echo $server['server_id'] ?>,'unblock')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fas fa-unlock"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Разблокировать</span>
</a>
</div>
<?php endif; ?>
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css" || $server['game_query'] == "samp" AND $server['server_status'] == 1): ?>
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#csfast" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="far fa-sun"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Параметры запуска</span>
</a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Клиент<small class="text-muted font-size-sm ml-2"><a class="text-muted" href="/admin/users/edit/index/<?php echo $server['user_id'] ?>"> <?php echo $server['user_firstname'] ?> <?php echo $server['user_lastname'] ?></a></small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">
Статистика
<small class="text-muted font-size-sm ml-2" id="stats">
<div class="spinner spinner-primary"></div>
</small>
</h3>
</div>
</div>
</div>
<div class="col-xl-12 mb-3">
<div class="separator separator-dashed separator-border-2"></div>
</div>
<?php if($server['server_status'] == 2): ?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Название<small class="text-muted font-size-sm ml-2"><?php echo $query['hostname'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Режим<small class="text-muted font-size-sm ml-2"><?php echo $query['gamemode'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Карта<small class="text-muted font-size-sm ml-2"><?php echo $query['mapname'] ?></small></h3>
</div>
</div>
</div>
<?php endif; ?>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Адрес<small class="text-muted font-size-sm ml-2"><?php echo $server['location_ip'] ?>:<?php echo $server['server_port'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Слоты<small class="text-muted font-size-sm ml-2"><?php echo $server['server_slots'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Оплачен до<small class="text-muted font-size-sm ml-2"><?php echo date("d.m.Y", strtotime($server['server_date_end'])) ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Локация<small class="text-muted font-size-sm ml-2"><?php echo $server['location_name'] ?></small></h3>
</div>
</div>
</div>
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css" || $server['game_query'] == "samp" AND $server['server_status'] == 2): ?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">RCON Пароль<small class="text-muted font-size-sm ml-2"><?php echo $server['rcon_password'] ?></small></h3>
</div>
</div>
</div>
<?php endif; ?>
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css" AND $server['fastdl_status'] == 1 AND $server['server_status'] == 2): ?>
<div class="col-xl-12">
<div class="alert alert-primary mb-5 p-5" role="alert">
<div class="input-group">
<input type="text" class="form-control" placeholder="FastDL URL: http://<?php echo $server['location_ip'] ?>:8080/fastdl_gs<?php echo $server['server_id'] ?>" value="FastDL URL: http://<?php echo $server['location_ip'] ?>:8080/fastdl_gs<?php echo $server['server_id'] ?>">
</div>
</div>
</div>
<?php endif; ?>
<?if($server['server_status'] == 1 || $server['server_status'] == 2):?>
<div class="col-xl-12 mb-3">
<div class="separator separator-dashed separator-border-2"></div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Адрес FTP-сервера<small class="text-muted font-size-sm ml-2"><?php echo $server['location_ip'] ?></small></h3>
<div class="card-toolbar">
<a href="http://filezilla.ru/get/" target="_blank" class="btn btn-clean btn-icon">
<i class="fa fa-external-link-alt" data-toggle="tooltip" data-placement="right" title="" data-original-title="Скачать FTP Клиент"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Порт FTP-сервера<small class="text-muted font-size-sm ml-2">21</small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Имя пользователя<small class="text-muted font-size-sm ml-2">gs<?php echo $server['server_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Пароль доступа<small class="text-muted font-size-sm ml-2"><?php echo $server['server_password'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-12 mb-3">
<div class="separator separator-dashed separator-border-2"></div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">MySQL Хост<small class="text-muted font-size-sm ml-2">127.0.0.1/<?php echo $server['location_ip'] ?></small></h3>
<div class="card-toolbar">
<?if($server['server_mysql'] == 1):?>
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqloff')" class="btn btn-clean btn-icon" style="margin-right: .25rem"><i class="fa fa-power-off" data-toggle="tooltip" data-placement="right" title="" data-original-title="Выключить"></i></a>
<?elseif($server['server_mysql'] == 0):?>
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqlcr')" class="btn btn-clean btn-icon" style="margin-right: .25rem"><i class="fa fa-user-plus" data-toggle="tooltip" data-placement="right" title="" data-original-title="Создать базу"></i></a>
<?elseif($server['server_mysql'] == 2):?>
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqlon')" class="btn btn-clean btn-icon" style="margin-right: .25rem"><i class="fa fa-power-off" data-toggle="tooltip" data-placement="right" title="" data-original-title="Включить"></i></a>
<?endif;?>
</div>
</div>
</div>
</div>
<?if($server['server_mysql'] == 1):?>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Имя пользователя<small class="text-muted font-size-sm ml-2">gs<?php echo $server['server_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Пароль доступа<small class="text-muted font-size-sm ml-2"><?php echo $server['db_pass'] ?></small></h3>
</div>
</div>
</div>
<?endif;?>
<?endif;?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css" || $server['game_query'] == "samp" AND $server['server_status'] == 1): ?>
<!--begin::Modal-->
<div class="modal fade" id="csfast" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Параметры запуска</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="settingStart" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css"): ?>
<div class="form-group form-md-line-input">
<label>Античит VAC</label>
<select class="form-control" id="vac" name="vac">
<option value="0" <?php if($server['server_vac'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1" <?php if($server['server_vac'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
</div>
<div class="form-group form-md-line-input">
<label>FastDL</label>
<select class="form-control" id="fastdl" name="fastdl">
<option value="0" <?php if($server['fastdl_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1" <?php if($server['fastdl_status'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
</div>
<?php endif; ?>
<?php if($server['game_code'] == "cs"): ?>
<div class="form-group form-md-line-input">
<label>FPS</label>
<select class="form-control" id="fps" name="fps">
<?php foreach($fps as $item): ?>
<option value="<?php echo $item ?>" <?php if($server['server_fps'] == $item): ?> selected="selected"<?php endif; ?>><?php echo $item ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>
<?php if($server['game_code'] == "csgo" || $server["game_code"] == "css"): ?>
<div class="form-group form-md-line-input">
<label>Tickrate</label>
<select class="form-control" id="tickrate" name="tickrate">
<?php foreach($tickrate as $item): ?>
<option value="<?php echo $item ?>" <?php if($server['server_tickrate'] == $item): ?> selected="selected"<?php endif; ?>><?php echo $item ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>
<?php if($server["game_code"] == "cs" || $server['game_code'] == "csgo" || $server["game_code"] == "css" || $server['game_query'] == "samp"): ?>
<div class="form-group">
<label>RCON Пароль</label>
<input type="text" class="form-control" id="rcon_password" name="rcon_password" placeholder="Введите RCON Пароль" value="<?echo $server['rcon_password']?>">
</div>
<?php endif; ?>
</div>
<div class="modal-footer" style="padding: 0.5rem;">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Сохранить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<?php endif; ?>
<?php if($server['game_code'] == "cs" || $server['game_code'] == "csgo" || $server['game_code'] == "css" || $server['game_query'] == "samp" AND $server['server_status'] == 1): ?>
<script>
$('#settingStart').ajaxForm({
url: '/admin/servers/control/settingStart/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
$('button[type=submit]').prop('disabled', false);
setTimeout("reload()", 2500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php endif; ?>
<script>
function updateData() {
$.ajax({
url: '/admin/servers/control/getData/<?=$server['server_id']?>',
dataType: 'text',
success: function (data) {
data = $.parseJSON(data);
$("#stats").text("CPU: "+data.cpu+"% | RAM: "+data.ram+"% | SSD: "+data.ssd+"% | Players: "+data.players);
}
})
}
$(document).ready(function() {
updateData();
});
function actionserver(serverid, actionserver) {
switch(actionserver) {
case "reinstall":
{
if(!confirm("Вы уверенны в том, что хотите переустановить сервер? Все данные будут удалены.")) return;
break;
}
case "backup":
{
if(!confirm("Вы уверены в том, что хотите сделать бэкап сервера? Прежний бэкап будет удален.")) return;
break;
}
case "unbackup":
{
if(!confirm("Вы уверены в том, что хотите восстановить сервер?")) return;
break;
}
case "delete_backup":
{
if(!confirm("Вы уверены в том, что хотите удалить BackUP сервера?")) return;
break;
}
case "delete":
{
if(!confirm("Вы уверенны в том, что хотите удалить сервер gs<?echo $server['server_id']?>?")) return;
break;
}
case "block":
{
if(!confirm("Вы уверенны в том, что хотите заблокировать сервер gs<?echo $server['server_id']?>?")) return;
break;
}
case "unblock":
{
if(!confirm("Вы уверенны в том, что хотите разблокировать сервер gs<?echo $server['server_id']?>?")) return;
break;
}
}
$.ajax({
url: '/admin/servers/control/actionserver/'+serverid+'/'+actionserver,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
</script>
<script>
function sendAction(serverid, mysqlhostin) {
$.ajax({
url: '/admin/servers/control/mysqlhostin/'+serverid+'/'+mysqlhostin,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,103 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($servers as $item): ?>
<div class="col-lg-6 mb-10">
<div class="card card-custom wave mb-2 bg-light-<?php if($item['server_status'] == 0): ?>warning
<?php elseif($item['server_status'] == 1): ?>danger
<?php elseif($item['server_status'] == 2): ?>success
<?php elseif($item['server_status'] == 3): ?>primary
<?php elseif($item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>info
<?php endif; ?>">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="/admin/servers/control/index/<?php echo $item['server_id'] ?>" class="h4 text-dark text-hover-primary mb-5"><?php echo $item['location_ip2'] ?>:<?php echo $item['server_port'] ?><small class="text-muted font-size-sm ml-2">ID <?php echo $item['server_id'] ?></small></a>
<p class="text-dark-50"><?php echo $item['game_name'] ?></p>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<?php if($item['server_status'] == 1): ?>
<a href="javascript:;" onClick="actionserver(<?php echo $item['server_id'] ?>,'start')" class="btn btn-icon btn-success" data-toggle="tooltip" title="Запустить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Сервер должен быть включен!">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 2): ?>
<a href="javascript:;" onClick="actionserver(<?php echo $item['server_id'] ?>,'stop')" class="btn btn-icon btn-danger" data-toggle="tooltip" title="Остановить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" onClick="actionserver(<?php echo $item['server_id'] ?>,'restart')" class="btn btn-icon btn-info" data-toggle="tooltip" title="Перезапустить">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 0 || $item['server_status'] == 3 || $item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-redo"></i>
</a>
<?php endif; ?>
<a href="/admin/servers/control/index/<?php echo $item['server_id'] ?>" class="btn btn-icon btn-primary" data-toggle="tooltip" title="Перейти">
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($servers)): ?>
<div class="col-xl-12 col-xxl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет игровых серверов.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php echo $pagination ?>
</div>
</div>
</div>
<script>
function actionserver(serverid, actionserver) {
$.ajax({
url: '/admin/servers/control/actionserver/'+serverid+'/'+actionserver,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
</script>
<?php echo $footer ?>
+450
View File
@@ -0,0 +1,450 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header card-header-tabs-line nav-tabs-line-3x">
<div class="card-toolbar">
<ul class="nav nav-tabs nav-bold nav-tabs-line nav-tabs-line-3x">
<li class="nav-item mr-3">
<a class="nav-link active" data-toggle="tab" href="#setting">
<span class="nav-icon">
<i class="fas fa-cog"></i>
</span>
<span class="nav-text font-size-lg">Общие настройки</span>
</a>
</li>
<li class="nav-item mr-3">
<a class="nav-link" data-toggle="tab" href="#pay">
<span class="nav-icon">
<i class="fas fa-store"></i>
</span>
<span class="nav-text font-size-lg">Платежные системы</span>
</a>
</li>
<li class="nav-item mr-3">
<a class="nav-link" data-toggle="tab" href="#hostinpl">
<span class="nav-icon">
<i class="fas fa-cogs"></i>
</span>
<span class="nav-text font-size-lg">Прочие настройки</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#info">
<span class="nav-icon">
<i class="fas fa-info-circle"></i>
</span>
<span class="nav-text font-size-lg">Информация и бонусы</span>
</a>
</li>
</ul>
</div>
</div>
<div class="card-body">
<form class="form-group form-md-line-input" id="settings" method="post" action="" novalidate="novalidate">
<div class="tab-content mt-5">
<div class="tab-pane fade show active" id="setting" role="tabpanel">
<div class="form-group">
<label>URL сайта <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="url" name="url" placeholder="Введите URL сайта" value="<?php echo $settings['url'] ?>">
</div>
<div class="form-group">
<label>Название сайта <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="title" name="title" placeholder="Введите название сайта" value="<?php echo $settings['title'] ?>">
</div>
<div class="form-group">
<label>Описание сайта <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="description" name="description" placeholder="Введите описание сайта" value="<?php echo $settings['description'] ?>">
</div>
<div class="form-group">
<label>Ключевые слова <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="keywords" name="keywords" placeholder="Введите ключевые слова" value="<?php echo $settings['keywords'] ?>">
</div>
<div class="form-group">
<label>Имя отправителя <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="mail_sender" name="mail_sender" placeholder="Введите имя отправителя" value="<?php echo $settings['mail_sender'] ?>">
</div>
<div class="form-group">
<label>E-mail Службы поддержки <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="mail_from" name="mail_from" placeholder="Введите E-mail Службы поддержки" value="<?php echo $settings['mail_from'] ?>">
</div>
<div class="form-group">
<label>ID Вашей группы ВКонтакте</label>
<input type="text" class="form-control" id="public" name="public" placeholder="Введите ID Вашей группы ВКонтакте" value="<?php echo $settings['public'] ?>">
</div>
<div class="form-group">
<label>Cсылка на ваш логотип</label>
<input type="text" class="form-control" id="logo" name="logo" placeholder="Введите ссылку на ваш логотип" value="<?php echo $settings['logo'] ?>">
</div>
<div class="form-group">
<label>Статистика хостинга</label>
<select class="form-control" id="status_hostinpl" name="status_hostinpl">
<option value="0"<?php if($settings['status_hostinpl'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
<option value="1"<?php if($settings['status_hostinpl'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
</select>
</div>
<div class="form-group">
<label>Веб.хостинг</label>
<select class="form-control" id="webhost" name="webhost">
<option value="0"<?php if($settings['webhost'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1"<?php if($settings['webhost'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
</div>
</div>
<div class="tab-pane fade" id="pay" role="tabpanel">
<div class="form-group">
<label>Модуль быстрой оплаты</label>
<select class="form-control" id="oplata_status" name="oplata_status">
<option value="1"<?php if($settings['oplata_status'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
<option value="0"<?php if($settings['oplata_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
</select>
</div>
<div class="form-group">
<label>Платежная система быстрой оплаты</label>
<select class="form-control" id="oplatahostinpl" name="oplatahostinpl">
<option value="freepay"<?php if($settings['oplatahostinpl'] == "freepay"): ?> selected="selected"<?php endif; ?>>Free-kassa</option>
<option value="robopay"<?php if($settings['oplatahostinpl'] == "robopay"): ?> selected="selected"<?php endif; ?>>Robokassa</option>
<option value="litepay"<?php if($settings['oplatahostinpl'] == "litepay"): ?> selected="selected"<?php endif; ?>>Litekassa</option>
<option value="enotpay"<?php if($settings['oplatahostinpl'] == "enotpay"): ?> selected="selected"<?php endif; ?>>Enot</option>
<option value="anypay"<?php if($settings['oplatahostinpl'] == "anypay"): ?> selected="selected"<?php endif; ?>>Anypay</option>
<option value="interpay"<?php if($settings['oplatahostinpl'] == "interpay"): ?> selected="selected"<?php endif; ?>>Interpay</option>
<option value="unitpay"<?php if($settings['oplatahostinpl'] == "unitpay"): ?> selected="selected"<?php endif; ?>>Unitpay</option>
<option value="yandexkassa"<?php if($settings['oplatahostinpl'] == "yandexkassa"): ?> selected="selected"<?php endif; ?>>Яндекс деньги</option>
<option value="qiwi"<?php if($settings['oplatahostinpl'] == "qiwi"): ?> selected="selected"<?php endif; ?>>Qiwi</option>
</select>
</div>
<hr>
<div class="form-group">
<label>Платежная система: Freekassa</label>
<select class="form-control" id="freekassa" name="freekassa">
<option value="1"<?php if($settings['freekassa'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['freekassa'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Robokassa</label>
<select class="form-control" id="robokassa" name="robokassa">
<option value="1"<?php if($settings['robokassa'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['robokassa'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Litekassa</label>
<select class="form-control" id="litekassa" name="litekassa">
<option value="1"<?php if($settings['litekassa'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['litekassa'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Enot</label>
<select class="form-control" id="enotpay" name="enotpay">
<option value="1"<?php if($settings['enotpay'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['enotpay'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Anypay</label>
<select class="form-control" id="anypay" name="anypay">
<option value="1"<?php if($settings['anypay'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['anypay'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Unitpay</label>
<select class="form-control" id="unitpay" name="unitpay">
<option value="0"<?php if($settings['unitpay'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
<option value="1"<?php if($settings['unitpay'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Interkassa</label>
<select class="form-control" id="interkassa" name="interkassa">
<option value="0"<?php if($settings['interkassa'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
<option value="1"<?php if($settings['interkassa'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Yandex</label>
<select class="form-control" id="yandexkassa" name="yandexkassa">
<option value="0"<?php if($settings['yandexkassa'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
<option value="1"<?php if($settings['yandexkassa'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
</select>
</div>
<div class="form-group">
<label>Платежная система: Qiwi</label>
<select class="form-control" id="qiwi" name="qiwi">
<option value="1"<?php if($settings['qiwi'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($settings['qiwi'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<hr>
<label>Платежная система: Free-Kassa</label>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="fk_login" name="fk_login" placeholder="Введите ID" value="<?php echo $settings['fk_login'] ?>">
<span class="form-text text-muted">Freekassa ID</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="fk_password1" name="fk_password1" placeholder="Введите секретный ключ №1" value="<?php echo $settings['fk_password1'] ?>">
<span class="form-text text-muted">Freekassa Key 1</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="fk_password2" name="fk_password2" placeholder="Введите секретный ключ №2" value="<?php echo $settings['fk_password2'] ?>">
<span class="form-text text-muted">Freekassa Key 2</span>
</div>
<hr>
<label>Платежная система: Robokassa</label>
<div class="form-group">
<input type="text" class="form-control" id="rk_login" name="rk_login" placeholder="Введите ID" value="<?php echo $settings['rk_login'] ?>">
<span class="form-text text-muted">Robokassa ID</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="rk_password1" name="rk_password1" placeholder="Введите секретный ключ №1" value="<?php echo $settings['rk_password1'] ?>">
<span class="form-text text-muted">Robokassa Key 1</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="rk_password2" name="rk_password2" placeholder="Введите секретный ключ №2" value="<?php echo $settings['rk_password2'] ?>">
<span class="form-text text-muted">Robokassa Key 2</span>
</div>
<hr>
<label>Платежная система: Litekassa</label>
<div class="form-group">
<input type="text" class="form-control" id="lk_login" name="lk_login" placeholder="Введите ID" value="<?php echo $settings['lk_login'] ?>">
<span class="form-text text-muted">Litekassa ID</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="lk_password" name="lk_password" placeholder="Введите секретный ключ" value="<?php echo $settings['lk_password'] ?>">
<span class="form-text text-muted">Litekassa Key</span>
</div>
<hr>
<label>Платежная система: Enot</label>
<div class="form-group">
<input type="text" class="form-control" id="enot_login" name="enot_login" placeholder="Введите ID" value="<?php echo $settings['enot_login'] ?>">
<span class="form-text text-muted">Enot ID</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="enot_password1" name="enot_password1" placeholder="Введите секретный ключ №1" value="<?php echo $settings['enot_password1'] ?>">
<span class="form-text text-muted">Секретный пароль</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="enot_password2" name="enot_password2" placeholder="Введите секретный ключ №2" value="<?php echo $settings['enot_password2'] ?>">
<span class="form-text text-muted">Дополнительный ключ</span>
</div>
<hr>
<label>Платежная система: Anypay</label>
<div class="form-group">
<input type="text" class="form-control" id="anypay_login" name="anypay_login" placeholder="Введите ID" value="<?php echo $settings['anypay_login'] ?>">
<span class="form-text text-muted">ID проекта</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="anypay_password" name="anypay_password" placeholder="Введите секретный ключ" value="<?php echo $settings['anypay_password'] ?>">
<span class="form-text text-muted">Секретный ключ</span>
</div>
<hr>
<label>Платежная система: Unitpay</label>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="unitpay_url" name="unitpay_url" placeholder="Введите URL" value="<?php echo $settings['unitpay_url'] ?>">
<span class="form-text text-muted">Unitpay URL</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="unitpay_secret" name="unitpay_secret" placeholder="Введите секретный ключ" value="<?php echo $settings['unitpay_secret'] ?>">
<span class="form-text text-muted">Unitpay секретный ключ</span>
</div>
<hr>
<label>Платежная система: Interkassa</label>
<div class="form-group">
<input type="text" class="form-control" id="ik_shopid" name="ik_shopid" placeholder="Введите ID" value="<?php echo $settings['ik_shopid'] ?>">
<span class="form-text text-muted">Interkassa ID (ik_shopid)</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="ik_secretkey" name="ik_secretkey" placeholder="Введите секретный ключ" value="<?php echo $settings['ik_secretkey'] ?>">
<span class="form-text text-muted">Interkassa Key (ik_secretkey)</span>
</div>
<hr>
<label>Платежная система: Yandex</label>
<div class="form-group">
<input type="text" class="form-control" id="yk_login" name="yk_login" placeholder="Введите login" value="<?php echo $settings['yk_login'] ?>">
<span class="form-text text-muted">Номер счета</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="yk_password1" name="yk_password1" placeholder="Введите pass" value="<?php echo $settings['yk_password1'] ?>">
<span class="form-text text-muted">Токен</span>
</div>
<hr>
<label>Платежная система: Qiwi</label>
<div class="form-group">
<input type="text" class="form-control" id="qiwipublickey" name="qiwipublickey" placeholder="Введите публичный ключ" value="<?php echo $settings['qiwipublickey'] ?>">
<span class="form-text text-muted">Публичный ключ</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="qiwisecretkey" name="qiwisecretkey" placeholder="Введите секретный ключ" value="<?php echo $settings['qiwisecretkey'] ?>">
<span class="form-text text-muted">Секретный ключ</span>
</div>
<div class="form-group">
<label>Настройки формы Qiwi</label>
<select class="form-control" id="qiwi_theme" name="qiwi_theme">
<option value="1"<?php if($settings['qiwi_theme'] == 1): ?> selected="selected"<?php endif; ?>>Включены</option>
<option value="0"<?php if($settings['qiwi_theme'] == 0): ?> selected="selected"<?php endif; ?>>Выключены</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="qiwi_themecode" name="qiwi_themecode" placeholder="Введите код темы (themeCode)" value="<?php echo $settings['qiwi_themecode'] ?>">
<span class="form-text text-muted">Код темы (themeCode)</span>
</div>
</div>
<div class="tab-pane fade" id="hostinpl" role="tabpanel">
<div class="form-group">
<label>Тестовый период</label>
<select class="form-control" id="serv_test" name="serv_test">
<option value="0"<?php if($settings['serv_test'] == 0): ?> selected="selected"<?php endif; ?>>Заказ запрещен</option>
<option value="1"<?php if($settings['serv_test'] == 1): ?> selected="selected"<?php endif; ?>>Заказ разрешен (по одобрению)</option>
</select>
</div>
<div class="form-group">
<label>Подтверждение E-mail</label>
<select class="form-control" id="register" name="register">
<option value="0"<?php if($settings['register'] == 0): ?> selected="selected"<?php endif; ?>>Включен</option>
<option value="1"<?php if($settings['register'] == 1): ?> selected="selected"<?php endif; ?>>Выключен</option>
</select>
</div>
<hr>
<label>Защита от ботов (reCAPTCHA v2)</label>
<div class="form-group">
<select class="form-control" id="captcha_enable" name="captcha_enable">
<option value="0"<?php if($settings['captcha_enable'] == 0): ?> selected="selected"<?php endif; ?>>Выключена (капчи нет на сайте)</option>
<option value="1"<?php if($settings['captcha_enable'] == 1): ?> selected="selected"<?php endif; ?>>Включена (нужны ключи ниже)</option>
</select>
<span class="form-text text-muted">Капча при входе, регистрации, восстановлении пароля и в тикетах. Включайте только после того, как вписали оба ключа.</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="recaptcha" name="recaptcha" placeholder="Site key" value="<?php echo $settings['recaptcha'] ?>">
<span class="form-text text-muted">Site key (публичный ключ) — из панели google.com/recaptcha, тип reCAPTCHA v2 «Я не робот»</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="secret_recaptcha" name="secret_recaptcha" placeholder="Secret key" value="<?php echo $settings['secret_recaptcha'] ?>">
<span class="form-text text-muted">Secret key (секретный ключ) того же сайта</span>
</div>
<hr>
<label>Тех.работы</label>
<div class="form-group">
<select class="form-control" id="offline" name="offline">
<option value="0"<?php if($settings['offline'] == 0): ?> selected="selected"<?php endif; ?>>Хостинг доступен</option>
<option value="1"<?php if($settings['offline'] == 1): ?> selected="selected"<?php endif; ?>>Хостинг закрыт на тех.работы</option>
</select>
<span class="form-text text-muted">Статус тех.работ</span>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="offline_res" name="offline_res" placeholder="Введите сообщение тех.работ" value="<?php echo $settings['offline_res'] ?>">
<span class="form-text text-muted">Сообщение тех.работ</span>
</div>
<hr>
<label>Авторизация VK</label>
<div class="form-group">
<input type="text" class="form-control" id="vk_id" name="vk_id" placeholder="Введите ID приложения" value="<?php echo $settings['vk_id'] ?>">
<span class="form-text text-muted">ID приложения</span>
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="vk_stat" name="vk_stat">
<option value="0"<?php if($settings['vk_stat'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1"<?php if($settings['vk_stat'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
<span class="form-text text-muted">Статус авторизаци</span>
</div>
<hr>
<label>VK BOT</label>
<div class="form-group">
<select class="form-control" id="VK_bot" name="VK_bot">
<option value="0"<?php if($settings['VK_bot'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
<option value="1"<?php if($settings['VK_bot'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
</select>
<span class="form-text text-muted">Статус бота</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="VK_confirmationToken" name="VK_confirmationToken" placeholder="ConfirmationToken" value="<?php echo $settings['VK_confirmationToken'] ?>">
<span class="form-text text-muted">ConfirmationToken</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="VK_token" name="VK_token" placeholder="Введите Token" value="<?php echo $settings['VK_token'] ?>">
<span class="form-text text-muted">Token</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="VK_secretKey" name="VK_secretKey" placeholder="Введите секретный ключ" value="<?php echo $settings['VK_secretKey'] ?>">
<span class="form-text text-muted">Секретный ключ</span>
</div>
<hr>
<div class="form-group form-md-line-input">
<label>Стоимость смены порта</label>
<input type="text" class="form-control" id="portPrice" name="portPrice" placeholder="Введите стоимость смены порта" value="<?php echo $settings['portPrice'] ?>">
</div>
</div>
<div class="tab-pane fade" id="info" role="tabpanel">
<div class="form-group">
<label>Конвертация бонусов</label>
<input type="text" class="form-control" id="bonus1" name="bonus1" placeholder="Введите сумму" value="<?php echo $settings['bonus1'] ?>">
<span class="form-text text-muted">Bonus 1</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="bonus2" name="bonus2" placeholder="Введите сумму" value="<?php echo $settings['bonus2'] ?>">
<span class="form-text text-muted">Bonus 2</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="bonus3" name="bonus3" placeholder="Введите сумму" value="<?php echo $settings['bonus3'] ?>">
<span class="form-text text-muted">Bonus 3</span>
</div>
<div class="form-group">
<input type="text" class="form-control" id="bonus4" name="bonus4" placeholder="Введите сумму" value="<?php echo $settings['bonus4'] ?>">
<span class="form-text text-muted">Bonus 4</span>
</div>
<hr>
<div class="form-group">
<label class="form-control-label">Процент реферальной системы (за заказ услуг)</label>
<input type="text" class="form-control" id="ref_percent" name="ref_percent" placeholder="Введите процент" value="<?php echo $settings['ref_percent'] ?>">
</div>
<div class="form-group">
<label class="form-control-label">Процент бонусов за пополнение</label>
<input type="text" class="form-control" id="bonus_percent" name="bonus_percent" placeholder="Введите процент" value="<?php echo $settings['bonus_percent'] ?>">
</div>
<hr>
<div class="form-group form-md-line-input">
<label class="form-control-label">Контактый номер</label>
<input type="text" class="form-control" id="phone" name="phone" placeholder="Введите номер" value="<?php echo $settings['phone'] ?>">
</div>
</div>
<hr>
<button type="submit" class="btn btn-primary btn-lg btn-block">Применить настройки</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#settings').ajaxForm({
url: '/admin/settings/ajax',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/settings/index')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,305 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko (https://vk.com/id00v)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Пополнение счета</h3>
</div>
</div>
<div class="card-body">
<div id="invoices"></div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Регистраций</h3>
</div>
</div>
<div class="card-body">
<div id="registers"></div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Общее количевство игроков</h3>
</div>
</div>
<div class="card-body">
<div id="players"></div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Общая нагрузка на железо</h3>
</div>
</div>
<div class="card-body">
<div id="loads"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script>
<?php echo $charts; ?>
const primary = '#6993FF';
const success = '#1BC5BD';
const info = '#8950FC';
const warning = '#FFA800';
const danger = '#F64E60';
var ApexChartsStats = function () {
var players_chart = function () {
const apexChart = "#players";
var options = {
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
series: [{
name: 'Количевство игроков',
data: players
}],
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
var registers_chart = function () {
const apexChart = "#registers";
var options = {
series: [{
name: 'Количевство регистраций',
data: registers
}],
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'smooth'
},
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
var invoices_chart = function () {
const apexChart = "#invoices";
var options = {
series: [{
name: 'Прибыль (руб)',
data: invoices
}],
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'smooth'
},
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
var loads_chart = function () {
const apexChart = "#loads";
var options = {
series: [{
name: 'CPU (%)',
data: loads1
}, {
name: 'RAM (%)',
data: loads3
}, {
name: 'SSD (%)',
data: loads2
}],
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'smooth'
},
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary, success, danger]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
return {
init: function () {
players_chart();
loads_chart();
registers_chart();
invoices_chart();
}
};
}();
jQuery(document).ready(function () {
ApexChartsStats.init();
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,102 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="px-4 mt-4 mb-10">
<a href="/admin/tickets/create" class="btn btn-block btn-primary font-weight-bold text-uppercase py-4 px-6 text-center">Написать клиенту</a>
</div>
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link active">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom">
<div class="card-body">
<form class="form-group form-md-line-input" action="#" id="createForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название" value="<?php echo $category['category_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="0">Выключена</option>
<option value="1">Включена</option>
</select>
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/ticketcategory/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/ticketcategory')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,105 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="px-4 mt-4 mb-10">
<a href="/admin/tickets/create" class="btn btn-block btn-primary font-weight-bold text-uppercase py-4 px-6 text-center">Написать клиенту</a>
</div>
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link active">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom">
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название" value="<?php echo $category['category_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="0"<?php if($category['category_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
<option value="1"<?php if($category['category_status'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/ticketcategory/edit/delete/<?php echo $category['category_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/ticketcategory/edit/ajax/<?php echo $category['category_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/ticketcategory')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,98 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="px-4 mt-4 mb-10">
<a href="/admin/tickets/create" class="btn btn-block btn-primary font-weight-bold text-uppercase py-4 px-6 text-center">Написать клиенту</a>
</div>
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link active">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom">
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Название</th>
<th>Статус</th>
</tr>
</thead>
<tbody>
<?php foreach($category as $item): ?>
<tr onClick="redirect('/admin/ticketcategory/edit/index/<?php echo $item['category_id'] ?>')">
<th><?php echo $item['category_id'] ?></th>
<td><?php echo $item['category_name'] ?></td>
<td>
<?php if($item['category_status'] == 0): ?>
<span class="badge badge-danger">Выключена</span>
<?php elseif($item['category_status'] == 1): ?>
<span class="badge badge-success">Включена</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php if(empty($category)): ?>
<tr>
<td colspan="4" class="text-center">На данный момент нет категорий.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,99 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<form method="POST" id="createForm" style="padding:0px; margin:0px;">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите тему обращения">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="pid" name="pid" placeholder="Введите ID клиента">
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="text" name="text" rows="3" placeholder="Сообщение..."></textarea>
</div>
<hr>
<button type="submit" class="btn btn-primary btn-lg btn-block">Отправить</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/tickets/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/tickets/view/index/" + data.id + "')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,99 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="px-4 mt-4 mb-10">
<a href="/admin/tickets/create" class="btn btn-block btn-primary font-weight-bold text-uppercase py-4 px-6 text-center">Написать клиенту</a>
</div>
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<?php foreach($tickets as $item): ?>
<div class="card card-custom mb-4">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><span class="card-icon">
<?php if($item['ticket_status'] == 0): ?>
<i class="fa fa-user-lock text-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Вопрос закрыт"></i>
<?php elseif($item['ticket_status'] == 1): ?>
<i class="fa fa-user-clock text-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Ожидает ответа"></i>
<?php elseif($item['ticket_status'] == 2): ?>
<i class="fa fa-user text-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Ответ от администрации"></i>
<?php endif; ?>
</span><?php echo $item['ticket_name'] ?><small class="text-muted font-size-sm ml-2"><?php echo date("d.m.Y в H:i", strtotime($item['ticket_date_add'])) ?></small>
</h3>
<div class="card-toolbar">
<a href="/admin/tickets/view/index/<?php echo $item['ticket_id'] ?>" class="btn btn-icon btn-primary mr-2" style="height: 24px;" data-toggle="tooltip" data-placement="right" title="" data-original-title="Перейти" >
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($tickets)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент в тех.поддержку нет запросов.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,267 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4 ">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/admin/tickets/index?status=1" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-user-clock icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Новые запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-headset icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все запросы</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="/admin/ticketcategory" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-list-alt icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Все категории</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/admin/ticketcategory/create" class="navi-link">
<span class="navi-icon mr-4">
<i class="fa fa-plus icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать категорию</span>
</a>
</div>
<hr>
<div class="navi-item my-2">
<a href="javascript:;" class="navi-link" data-toggle="tooltip" data-placement="right" title="" data-original-title="Тема запроса">
<span class="navi-icon mr-4">
<i class="flaticon-multimedia-2 icon-lg"></i>
</span>
<span class="navi-text"><?php echo $ticket['ticket_name'] ?></span>
</a>
<a href="javascript:;" class="navi-link" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата запроса">
<span class="navi-icon mr-4">
<i class="flaticon-calendar icon-lg"></i>
</span>
<span class="navi-text"><?php echo date("d.m.Y в H:i", strtotime($ticket['ticket_date_add'])) ?></span>
</a>
<a href="javascript:;" class="navi-link" data-toggle="tooltip" data-placement="right" title="" data-original-title="Статус запроса">
<span class="navi-icon mr-4">
<i class="flaticon-exclamation icon-lg"></i>
</span>
<span class="navi-text"><?php if($ticket['ticket_status'] == 0): ?>
Запрос закрыт
<?php elseif($ticket['ticket_status'] == 1): ?>
Запрос открыт
<?php elseif($ticket['ticket_status'] == 2): ?>
Получен ответ
<?php endif; ?></span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<form id="sendForm" action="" method="POST">
<div class="card card-custom card-sticky">
<div class="card-header align-items-center px-4 py-3">
<div class="text-left flex-grow-1">
<div class="dropdown dropdown-inline">
<button type="button" class="btn btn-clean btn-sm btn-icon btn-icon-md" data-toggle="tooltip" data-placement="right" title="" data-original-title="Запрос №<?php echo $ticket['ticket_id'] ?>"><i class="fas fa-info-circle"></i>
</button>
</div>
</div>
<div class="text-center flex-grow-1">
<div class="text-dark-75 font-weight-bold font-size-h5">Тех.поддержка</div>
</div>
<div class="text-right flex-grow-1">
<?php if($ticket['ticket_status'] != 0): ?>
<button type="button" onClick="sendAction(<?php echo $ticket['ticket_id'] ?>,'closed')" class="btn btn-clean btn-sm btn-icon btn-icon-md" data-toggle="tooltip" data-placement="right" title="" data-original-title="Закрыть запрос">
<i class="fa fa-lock"></i>
</button>
<?elseif($ticket['ticket_status'] == 0):?>
<button type="button" class="btn btn-clean btn-sm btn-icon btn-icon-md disabled" data-toggle="tooltip" data-placement="right" title="" data-original-title="Запрос закрыт">
<i class="fa fa-lock"></i>
</button>
<?endif;?>
</div>
</div>
<div class="card-body">
<div class="scroll scroll-pull" id="scroll" data-scroll="true" style="height: 350px; overflow: auto;" data-mobile-height="300">
<div class="messages" id="messagess">
<div class="alert alert-primary" role="alert">Получаю сообщения...</div>
</div>
</div>
</div>
<div class="card-footer align-items-center">
<?php if($ticket['ticket_status'] != 0): ?>
<input type="text" class="form-control" type="text" id="text" name="text" placeholder="Напишите сообщение...">
<?elseif($ticket['ticket_status'] == 0):?>
<input type="text" class="form-control" type="text" id="text" name="text" placeholder="Запрос закрыт..." disabled>
<?endif;?>
<div class="d-flex align-items-center justify-content-between mt-5">
<div class="mr-3">
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" checked id="autoscroll">
<span></span>Автообновление</label></span>
</div>
</div>
</div>
</div>
<div>
<button type="button" class="btn btn-primary btn-icon" data-toggle="modal" data-target="#image"><i class="flaticon2-photo-camera"></i></button>
<button class="btn btn-primary btn-icon" type="submit"><i class="flaticon2-paper-plane"></i></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="image" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Импорт изображения</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<form id="imgForm" method="POST" action="" style="padding:0px; margin:0px;">
<div class="alert alert-primary mb-5 p-5" role="alert">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fas fa-camera text-primary"></i>
</span>
</div>
<input class="form-control" id="file" name="userfile" type="file">
<div class="input-group-append">
<button type="submit" class="btn btn-light-primary btn-icon"><i class="fa fa-download"></i></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
setInterval(function() {
$.ajax({
url: "/admin/tickets/view/getMessagess",
type: "POST",
data: {tid: <?=$ticket['ticket_id']?>},
success: function (data) {
if (autoscroll.checked == true) {
$("#messagess").html(data);
var scroll = document.getElementById("scroll");
scroll.scrollTop = scroll.scrollHeight;
}
}
})
}, 2000);
$('#imgForm').ajaxForm({
url: '/admin/tickets/view/uploadFile/<?php echo $ticket['ticket_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
$("#file").val("");
break;
case 'success':
toastr.success(data.success);
$('button[type=submit]').prop('disabled', false);
$('#image').modal('hide');
$("#file").val("");
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#sendForm').ajaxForm({
url: '/admin/tickets/view/ajax/<?php echo $ticket['ticket_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
$('button[type=submit]').prop('disabled', false);
$('#text').val('');
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function sendAction(ticketid, action) {
switch(action) {
case "closed":
{
if(!confirm("Вы уверенны в том, что хотите закрыть запрос?")) return;
break;
}
}
$.ajax({
url: '/admin/tickets/view/action/'+ticketid+'/'+action,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('#controlBtns button').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
if(action == "closed") toastr.warning("Закрываем запрос...");
$('#controlBtns button').prop('disabled', true);
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,271 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4">
<div class="card card-custom mb-3">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-shrink-0 mr-4 symbol symbol-65 symbol-circle">
<img src="<?php echo $url ?><?if($user['user_img']) {echo $user['user_img'];}else{ echo '/application/public/img/user.png';}?>" alt="image">
</div>
<div class="d-flex flex-column mr-auto">
<a href="javascript:;" class="card-title text-hover-primary font-weight-bolder font-size-h5 text-dark mb-1"><?php echo $user['user_firstname'] ?> <?php echo $user['user_lastname'] ?></a>
<span class="text-muted font-weight-bold"><?php if($user['user_access_level'] == 3): ?> Администратор <?php elseif($user['user_access_level'] == 2): ?> Тех.Поддержка <?php elseif($user['user_access_level'] == 1): ?> Клиент <?php elseif($user['user_access_level'] == 0): ?> Демонстрация <?php endif; ?></span>
</div>
</div>
</div>
</div>
<div class="card card-custom">
<div class="card-body pt-4">
<div class="navi navi-bold navi-hover navi-active navi-link-rounded">
<div class="navi-item mb-2">
<a href="/admin/servers/index?userid=<?php echo $user['user_id'] ?>" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-server"></i>
</span>
<span class="navi-text font-size-lg">Сервера пользователя</span>
</a>
</div>
<div class="navi-item mb-2">
<a href="/admin/webhost/index?userid=<?php echo $user['user_id'] ?>" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-globe"></i>
</span>
<span class="navi-text font-size-lg">Web сайты пользователя</span>
</a>
</div>
<div class="navi-item mb-2">
<a href="/admin/tickets/index?userid=<?php echo $user['user_id'] ?>" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-headset"></i>
</span>
<span class="navi-text font-size-lg">Запросы пользователя</span>
</a>
</div>
<div class="navi-item mb-2">
<a href="/admin/invoices/index?userid=<?php echo $user['user_id'] ?>" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-donate"></i>
</span>
<span class="navi-text font-size-lg">Платежи пользователя</span>
</a>
</div>
<div class="navi-item mb-2">
<a href="/admin/waste/index?userid=<?php echo $user['user_id'] ?>" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-tasks"></i>
</span>
<span class="navi-text font-size-lg">Операции пользователя</span>
</a>
</div>
<div class="navi-item mb-2">
<a href="javascript:;" data-toggle="modal" data-target="#authloghostinpl" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-map-marker-alt"></i>
</span>
<span class="navi-text font-size-lg">Логи авторизации</span>
</a>
</div>
<?php if($user_access_level == 3):?>
<div class="navi-item mb-2">
<a href="javascript:;" onClick="action_user('user_del')" class="navi-link py-4">
<span class="navi-icon mr-2">
<i class="fa fa-trash-alt"></i>
</span>
<span class="navi-text font-size-lg">Удалить пользователя</span>
</a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-xl-8">
<div class="card card-custom">
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="lastname" name="lastname" placeholder="<?php echo $user['user_lastname'] ?>" value="<?php echo $user['user_lastname'] ?>">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="firstname" name="firstname" placeholder="<?php echo $user['user_firstname'] ?>" value="<?php echo $user['user_firstname'] ?>">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="email" name="email" placeholder="<?php echo $user['user_email'] ?>" value="<?php echo $user['user_email'] ?>">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1" <?php if($user['user_status'] == 1): ?> selected="selected"<?php endif; ?>>Разблокирован</option>
<option value="0" <?php if($user['user_status'] == 0): ?> selected="selected"<?php endif; ?>>Заблокирован</option>
</select>
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="accesslevel" name="accesslevel" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="0" <?php if($user['user_access_level'] == 0): ?> selected="selected"<?php endif; ?>>Демонстрация</option>
<option value="1" <?php if($user['user_access_level'] == 1): ?> selected="selected"<?php endif; ?>>Клиент</option>
<option value="2" <?php if($user['user_access_level'] == 2): ?> selected="selected"<?php endif; ?>>Техническая поддержка</option>
<option value="3" <?php if($user['user_access_level'] == 3): ?> selected="selected"<?php endif; ?>>Администрация</option>
</select>
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="balance" name="balance" placeholder="Баланс" value="<?php echo $user['user_balance'] ?>">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="vk_id" name="vk_id" placeholder="ID VK" value="<?php echo $user['user_vk_id'] ?>">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="test_server" name="test_server" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1" <?php if($user['test_server'] == 1): ?> selected="selected"<?php endif; ?>>Тестовый период разрешен</option>
<option value="2" <?php if($user['test_server'] == 2): ?> selected="selected"<?php endif; ?>>Тестовый период запрещен</option>
</select>
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="user_activate" name="user_activate" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1" <?php if($user['user_activate'] == 1): ?> selected="selected"<?php endif; ?>>Аккаунт подтвержден</option>
<option value="0" <?php if($user['user_activate'] == 0): ?> selected="selected"<?php endif; ?>>Аккаунт неактивирован</option>
</select>
</div>
<?php if($user_access_level == 3):?>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onChange="togglePassword()">
<span></span>
Изменить пароль
</label>
</div>
</div>
</div>
<div class="form-group form-md-line-input">
<input type="password" class="form-control" id="password" name="password" placeholder="Пароль" disabled>
</div>
<div class="form-group form-md-line-input">
<input type="password" class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled>
</div>
<hr>
<button type="submit" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<?php endif; ?>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="authloghostinpl" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Логи авторизации</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<table class="table table-striped m-table">
<tbody>
<?php foreach($visitors as $item):?>
<tr>
<td><?php echo $item['city'] ?></td>
<td><?php echo $item['country'] ?>(<?php echo $item['code'] ?>)</td>
<td><?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?></td>
<td><?php echo $item['ip'] ?></td>
<td><?php if($item['status'] == 0): ?>
Ошибка входа (пароль <?php echo $item['password'] ?>)
<?php elseif($item['status'] == 1): ?>
Вход в систему
<?php elseif($item['status'] == 2): ?>
Выход из системы
<?php elseif($item['status'] == 3): ?>
Попытка востановленя пароля
<?php elseif($item['status'] == 4): ?>
Вход через VK
<?php elseif($item['status'] == 5): ?>
Ошибка входа через VK
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script>
function action_user(action) {
switch(action) {
case "user_del":
{
if(!confirm("Вы уверенны в том, что хотите удалить пользователя ID-<?php echo $user['user_id'] ?>?")) return;
break;
}
}
$.ajax({
url: '/admin/users/edit/delete/<?php echo $user['user_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/users')", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
$('#editForm').ajaxForm({
url: '/admin/users/edit/ajax/<?php echo $user['user_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1100);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,161 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список пользователей
</h3>
</div>
<?php if($user_access_level == 3):?>
<div class="card-toolbar">
<a href="javascript:;" data-toggle="modal" data-target="#modal-bonus" class="btn btn-clean btn-icon">
<i class="fas fa-gift" data-toggle="tooltip" data-placement="right" title="" data-original-title="Провести акцию"></i>
</a>
</div>
<?php endif; ?>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Статус</th>
<th>Пользователь</th>
<th>E-mail</th>
<th>Дата регистрации</th>
<th>Статус активации</th>
</tr>
</thead>
<tbody>
<?php foreach($users as $item): ?>
<tr onClick="redirect('/admin/users/edit/index/<?php echo $item['user_id'] ?>')">
<th scope="row"><?php echo $item['user_id'] ?></th>
<td>
<?php if($item['user_status'] == 0): ?>
<span class="badge badge-warning">Заблокирован</span>
<?php elseif($item['user_status'] == 1): ?>
<span class="badge badge-success">Активен</span>
<?php endif; ?>
</td>
<td><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?></td>
<td><?php echo $item['user_email'] ?></td>
<td><?php echo date("d.m.Y", strtotime($item['user_date_reg'])) ?></td>
<td>
<?php if($item['user_activate'] == 0): ?>
<span class="badge badge-danger">Не подтвержден</span>
<?php elseif($item['user_activate'] == 1): ?>
<span class="badge badge-info">Подтвержден</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php if(empty($users)): ?>
<tr>
<td colspan="6" class="text-center">На данный момент нет пользователей.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if($user_access_level == 3):?>
<!--begin::Modal-->
<div class="modal fade" id="modal-bonus" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Проведение акции</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="sendFormBonus" method="POST">
<div class="modal-body">
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="minsum" name="minsum" placeholder="Введите минимальный бонус">
</div>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="maxsum" name="maxsum" placeholder="Введите максимальный бонус">
</div>
<hr>
<div class="m-form__group form-group">
<label class="m-checkbox m-checkbox--bold m-checkbox--state-brand">
<input type="checkbox" id="typesum" name="typesum"> Раздача реальных денег
<span></span>
</label>
<br>
<label class="m-checkbox m-checkbox--bold m-checkbox--state-brand">
<input type="checkbox" id="oneuser" name="oneuser" onChange="toggleOneuser()"> Выдать только 1 пользователю
<span></span>
</label>
<br>
<label class="m-checkbox m-checkbox--bold m-checkbox--state-brand">
<input type="checkbox" id="createnews" name="createnews"> Создавать новость об проведённом розыгрыше
<span></span>
</label>
</div>
<hr>
<div class="form-group form-md-line-input">
<input type="text" class="form-control" id="oneuserID" name="oneuserID" placeholder="Введите ID пользователя" disabled>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Начать акцию</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<script>
$('#sendFormBonus').ajaxForm({
url: '/admin/users/index/ajax/',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
document.getElementById("oneuserID").value = "";
break;
case 'success':
toastr.success(data.success);
document.getElementById("oneuserID").value = "";
break;
case 'info':
toastr.info(data.info);
document.getElementById("oneuserID").value = "";
break;
}
},
beforeSubmit: function(arr, $form, options) {
}
});
function toggleOneuser() {
var status = $('#oneuser').is(':checked');
if(status) {
$('#oneuserID').prop('disabled', false);
} else {
$('#oneuserID').prop('disabled', true);
}
}
</script>
<?php endif; ?>
<?php echo $footer ?>
@@ -0,0 +1,50 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($waste as $item): ?>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title"><a href="/admin/users/edit/index/<?php echo $item['user_id'] ?>" class="text-dark"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?></a><small class="text-muted font-size-sm ml-2"><?php echo $item['waste_usluga'] ?></small></h3>
<div class="card-toolbar">
<?php if($item['waste_status'] == 1): ?>
<span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>">- <?php echo $item['waste_ammount'] ?> RUB.</span>
<?php elseif($item['waste_status'] == 0): ?>
<span class="badge badge-success" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>">+ <?php echo $item['waste_ammount'] ?> RUB.</span>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<div class="col-xl-12">
<?php echo $pagination ?>
<?php if(empty($waste)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет операций.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,276 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<?php if($webhost['web_status'] == 1): ?>
<i class="fa fa-power-off icon-6x text-success"></i>
<?php elseif($webhost['web_status'] == 0): ?>
<i class="fas fa-exclamation-circle icon-6x text-warning"></i>
<?php endif; ?>
</div>
<i class="symbol-badge symbol-badge-bottom bg-<?php if($webhost['web_status'] == 0): ?>warning
<?php elseif($webhost['web_status'] == 1): ?>success<?php endif; ?>"></i>
</div>
<h4 class="font-weight-bolder my-2"><?php echo $webhost['tarif_name'] ?></h4>
<div class="text-muted font-weight-bold mb-2"><?php if($webhost['web_status'] == 1): ?>
Запущен
<?php elseif($webhost['web_status'] == 0): ?>
Заблокирован
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<?php if($webhost['web_status'] == 1): ?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $webhost['web_id'] ?>,'block')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-lock"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Блокировать</span>
</a>
</div>
<?php elseif($webhost['web_status'] == 0): ?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $webhost['web_id'] ?>,'unblock')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fas fa-unlock"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Разблокировать</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $webhost['web_id'] ?>,'detele_web')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-trash-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Удалить веб-хостинг</span>
</a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Клиент<small class="text-muted font-size-sm ml-2"><a class="text-muted" href="/admin/users/edit/index/<?php echo $webhost['user_id'] ?>"> <?php echo $webhost['user_firstname'] ?> <?php echo $webhost['user_lastname'] ?></a></small></h3>
</div>
</div>
</div>
<div class="col-xl-12 mb-3">
<div class="separator separator-dashed separator-border-2"></div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Тариф<small class="text-muted font-size-sm ml-2"><?php echo $webhost['tarif_name'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Адрес<small class="text-muted font-size-sm ml-2"><?php echo $webhost['location_ip'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Оплачен до<small class="text-muted font-size-sm ml-2"><?php echo date("d.m.Y", strtotime($webhost['web_date_end'])) ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Локация<small class="text-muted font-size-sm ml-2"><?php echo $webhost['location_name'] ?></small></h3>
</div>
</div>
</div>
<?php if($webhost['web_status'] == 1): ?>
<div class="col-xl-12 mb-3">
<div class="separator separator-dashed separator-border-2"></div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Адрес ISP Manager<small class="text-muted font-size-sm ml-2">https://<?php echo $webhost['location_url'] ?>:1500/ispmgr</small></h3>
<div class="card-toolbar">
<a href="https://<?php echo $webhost['location_url'] ?>:1500/ispmgr" target="_blank" class="btn btn-clean btn-icon">
<i class="fa fa-external-link-alt" data-toggle="tooltip" data-placement="right" title="" data-original-title="Перейти в панель управления"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Имя пользователя<small class="text-muted font-size-sm ml-2">ws<?php echo $webhost['web_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Пароль доступа<small class="text-muted font-size-sm ml-2"><?php echo $webhost['web_password'] ?></small></h3>
<div class="card-toolbar">
<a href="javascript:;" data-toggle="modal" data-target="#ftppass" class="btn btn-clean btn-icon">
<i class="fas fa-cogs" data-toggle="tooltip" data-placement="right" title="" data-original-title="Изменить"></i>
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if($webhost['web_status'] == 1): ?>
<!--begin::Modal-->
<div class="modal fade" id="ftppass" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Изменить пароль доступа</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="editForm" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onchange="togglePassword()">
<span></span>
Сменить пароль доступа
</label>
</div>
</div>
</div>
<div class="form-group">
<label>Пароль</label>
<input class="form-control" id="password" name="password" placeholder="Пароль" disabled="">
</div>
<div class="form-group">
<label>Повторите пароль</label>
<input class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled="">
</div>
</div>
<div class="modal-footer" style="padding: 0.5rem;">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Сохранить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<?php endif; ?>
<script>
$('#editForm').ajaxForm({
url: '/admin/webhost/control/ajax/<?php echo $webhost['web_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
function sendAction(webid, action) {
switch(action) {
case "detele_web":
{
if(!confirm("Вы уверенны в том, что хотите удалить веб-хостинг ws<?php echo $webhost['web_id'] ?>?")) return;
break;
}
case "block":
{
if(!confirm("Вы уверенны в том, что хотите заблокировать веб-хостинг ws<?php echo $webhost['web_id'] ?>?")) return;
break;
}
case "unblock":
{
if(!confirm("Вы уверенны в том, что хотите разблокировать веб-хостинг ws<?php echo $webhost['web_id'] ?>?")) return;
break;
}
}
$.ajax({
url: '/admin/webhost/control/action/'+webid+'/'+action,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,55 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($webhosts as $item): ?>
<div class="col-lg-6 mb-10">
<div class="card card-custom wave mb-2 bg-light-<?php if($item['web_status'] == 0): ?>warning
<?php elseif($item['web_status'] == 1): ?>success
<?php endif; ?>">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="/admin/webhost/control/index/<?php echo $item['web_id'] ?>" class="h4 text-dark text-hover-primary mb-5"><?php echo $item['location_ip'] ?><small class="text-muted font-size-sm ml-2">ID <?php echo $item['web_id'] ?></small></a>
<p class="text-dark-50"><?php echo $item['tarif_name'] ?></p>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<a href="/admin/webhost/control/index/<?php echo $item['web_id'] ?>" class="btn btn-icon btn-primary" data-toggle="tooltip" title="Перейти">
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($webhosts)): ?>
<div class="col-xl-12 col-xxl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет веб-хостингов.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php echo $pagination ?>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,79 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание web-локации
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название локации</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название локации">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (0.0.0.0)</label>
<input type="text" class="form-control" id="ip" name="ip" placeholder="Введите IP (0.0.0.0)">
</div>
<div class="form-group form-md-line-input">
<label>Введите URL (domain.ru)</label>
<input type="text" class="form-control" id="url" name="url" placeholder="Введите URL (domain.ru)">
</div>
<div class="form-group form-md-line-input">
<label>Введите NS Сервера локации (ns1.domain.ru и ns2.domain.ru)</label>
<input type="text" class="form-control" id="ns_servers" name="ns_servers" placeholder="Введите NS Сервера локации (ns1.domain.ru и ns2.domain.ru)">
</div>
<div class="form-group form-md-line-input">
<label>Введите имя пользователя (можно вводить не только root, но и пользователя с правами администратора)</label>
<input type="text" class="form-control" id="user" name="user" placeholder="Введите имя пользователя">
</div>
<div class="form-group form-md-line-input">
<label>Пароль</label>
<input type="text" class="form-control" id="password" name="password" placeholder="Пароль">
</div>
<div class="form-group form-md-line-input">
<label>Повторите пароль</label>
<input type="text" class="form-control" id="password2" name="password2" placeholder="Повторите пароль">
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/weblocations/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/weblocations')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,117 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование web-локации
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название локации</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название локации" value="<?php echo $location['location_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите IP (0.0.0.0)</label>
<input type="text" class="form-control" id="ip" name="ip" placeholder="Введите IP (0.0.0.0)" value="<?php echo $location['location_ip'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите URL (domain.ru)</label>
<input type="text" class="form-control" id="url" name="url" placeholder="Введите URL (domain.ru)" value="<?php echo $location['location_url'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите NS Сервера локации (ns1.domain.ru и ns2.domain.ru)</label>
<input type="text" class="form-control" id="ns_servers" name="ns_servers" placeholder="Введите NS Сервера локации (ns1.domain.ru и ns2.domain.ru)" value="<?php echo $location['ns_servers'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите имя пользователя (можно вводить не только root, но и пользователя с правами администратора)</label>
<input type="text" class="form-control" id="user" name="user" placeholder="Введите имя пользователя" value="<?php echo $location['location_user'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите ID тарифов для которых будет доступна локация (через пробел)</label>
<input type="text" class="form-control" id="location_tarifs" name="location_tarifs" placeholder="Введите ID тарифов для которых будет доступна локация (через пробел)" value="<?php echo $location['location_tarifs'] ?>">
</div>
<hr>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onChange="togglePassword()">
<span></span>
Изменить пароль
</label>
</div>
</div>
</div>
<div class="form-group form-md-line-input">
<label>Пароль</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Пароль" disabled>
</div>
<div class="form-group form-md-line-input">
<label>Повторите пароль</label>
<input type="password" class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled>
</div>
<hr>
<div class="form-group form-md-line-input">
<label>Выберите статус локации</label>
<select class="form-control" id="status" name="status" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1"<?php if($location['location_status'] == 1): ?> selected="selected"<?php endif; ?>>Включена</option>
<option value="0"<?php if($location['location_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключена</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/weblocations/delete=<?php echo $location['location_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/weblocations/edit/ajax/<?php echo $location['location_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/weblocations')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,67 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список web-локаций
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/weblocations/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить локацию">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Статус</th>
<th>Название</th>
<th>Пользователь</th>
<th>IP</th>
<th>URL</th>
</tr>
</thead>
<tbody>
<?php foreach($locations as $item): ?>
<tr onClick="redirect('/admin/weblocations/edit/index/<?php echo $item['location_id'] ?>')">
<th scope="row"><?php echo $item['location_id'] ?></th>
<td>
<?php if($item['location_status'] == 0): ?>
<span class="badge badge-danger">Выключена</span>
<?php elseif($item['location_status'] == 1): ?>
<span class="badge badge-success">Включена</span>
<?php endif; ?>
</td>
<td><?php echo $item['location_name'] ?></td>
<td><?php echo $item['location_user'] ?></td>
<td><?php echo $item['location_ip'] ?></td>
<td><?php echo $item['location_url'] ?></td>
</tr>
<?php endforeach; ?>
<?php if(empty($locations)): ?>
<tr>
<td colspan="6" class="text-center">На данный момент нет локаций.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,61 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Создание тарифа
</h3>
</div>
</div>
<div class="card-body">
<form id="createForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название тарифа</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название тарифа">
</div>
<div class="form-group form-md-line-input">
<label>Введите название шаблона в панели ISP</label>
<input type="text" class="form-control" id="package" name="package" placeholder="Введите название шаблона в панели ISP">
</div>
<div class="form-group form-md-line-input">
<label>Введите стоимость тарифа</label>
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость тарифа">
</div>
<hr>
<input type="submit" name="otp" class="btn btn-primary m-btn m-btn--air btn-outline btn-block sbold uppercase" value="Сохранить">
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#createForm').ajaxForm({
url: '/admin/webtarifs/create/ajax',
dataType: 'json',
success: function(data) {
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/webtarifs')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,73 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Редактирование тарифа
</h3>
</div>
</div>
<div class="card-body">
<form id="editForm" method="POST">
<div class="form-group form-md-line-input">
<label>Введите название тарифа</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Введите название тарифа" value="<?php echo $tarif['tarif_name'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите название шаблона в панели ISP</label>
<input type="text" class="form-control" id="package" name="package" placeholder="Введите название шаблона в панели ISP" value="<?php echo $tarif['package'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Введите стоимость тарифа</label>
<input type="text" class="form-control" id="price" name="price" placeholder="Введите стоимость тарифа" value="<?php echo $tarif['tarif_price'] ?>">
</div>
<div class="form-group form-md-line-input">
<label>Выберите статус тарифа</label>
<select class="form-control" id="status" name="status" name="delivery" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="1"<?php if($tarif['tarif_status'] == 1): ?> selected="selected"<?php endif; ?>>Включен</option>
<option value="0"<?php if($tarif['tarif_status'] == 0): ?> selected="selected"<?php endif; ?>>Выключен</option>
</select>
</div>
<hr>
<div class="m-btn-group m-btn-group--pill btn-group m-btn-group m-btn-group--pill btn-block" role="group" aria-label="Large button group">
<button type="submit" class="btn btn-primary btn-outline btn-block sbold uppercase">Сохранить изменения</button>
<a data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить" style="height: 3.1rem;" href="/admin/webtarifs/edit/delete/<?php echo $tarif['tarif_id'] ?>" class="btn btn-danger btn-elevate btn-icon"><i class="fa fa-trash-alt"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#editForm').ajaxForm({
url: '/admin/webtarifs/edit/ajax/<?php echo $tarif['tarif_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/admin/webtarifs')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
@@ -0,0 +1,65 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $admheader ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список тарифов
</h3>
</div>
<div class="card-toolbar">
<a href="/admin/webtarifs/create" class="btn btn-sm btn-icon btn-light-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Добавить тариф">
<i class="flaticon2-add-square"></i>
</a>
</div>
</div>
<div class="card-body" style="padding: 0rem 1rem;">
<div class="table-responsive">
<table class="table table-head-custom table-vertical-center">
<thead>
<tr>
<th><i class="fa fa-list-ol"></i></th>
<th>Статус</th>
<th>Название</th>
<th>Шаблон</th>
<th>Цена</th>
</tr>
</thead>
<tbody>
<?php foreach($tarifs as $item): ?>
<tr onClick="redirect('/admin/webtarifs/edit/index/<?php echo $item['tarif_id'] ?>')">
<th scope="row"><?php echo $item['tarif_id'] ?></th>
<td>
<?php if($item['tarif_status'] == 0): ?>
<span class="badge badge-danger">Выключен</span>
<?php elseif($item['tarif_status'] == 1): ?>
<span class="badge badge-success">Включен</span>
<?php endif; ?>
</td>
<td><?php echo $item['tarif_name'] ?></td>
<td><?php echo $item['package'] ?></td>
<td><?php echo $item['tarif_price'] ?> руб.</td>
</tr>
<?php endforeach; ?>
<?php if(empty($tarifs)): ?>
<tr>
<td colspan="5" class="text-center">На данный момент нет тарифов.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,884 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title><?php echo $title ?> | <?php echo $description ?></title>
<meta name="description" content="<?php echo $description ?>">
<meta name="keywords" content="<?php echo $keywords ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/prismjs.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-static header-mobile-fixed page-loading">
<div id="kt_header_mobile" class="header-mobile header-mobile-fixed">
<a href="/">
<img alt="Logo" src="<?php echo $logo ?>" class="h-30px" />
</a>
<div class="d-flex align-items-center">
<button class="btn p-0 rounded-0 ml-4" id="kt_header_mobile_toggle">
<span class="svg-icon svg-icon-xl">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M2 11.5C2 12.3284 2.67157 13 3.5 13H20.5C21.3284 13 22 12.3284 22 11.5V11.5C22 10.6716 21.3284 10 20.5 10H3.5C2.67157 10 2 10.6716 2 11.5V11.5Z" fill="black" />
<path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M9.5 20C8.67157 20 8 19.3284 8 18.5C8 17.6716 8.67157 17 9.5 17H20.5C21.3284 17 22 17.6716 22 18.5C22 19.3284 21.3284 20 20.5 20H9.5ZM15.5 6C14.6716 6 14 5.32843 14 4.5C14 3.67157 14.6716 3 15.5 3H20.5C21.3284 3 22 3.67157 22 4.5C22 5.32843 21.3284 6 20.5 6H15.5Z" fill="black" />
</g>
</svg>
</span>
</button>
<button class="btn rounded-0 p-0 ml-2" id="kt_header_mobile_topbar_toggle">
<span class="svg-icon svg-icon-xxl">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<rect fill="#000000" x="4" y="4" width="7" height="7" rx="1.5" />
<path d="M5.5,13 L9.5,13 C10.3284271,13 11,13.6715729 11,14.5 L11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L5.5,20 C4.67157288,20 4,19.3284271 4,18.5 L4,14.5 C4,13.6715729 4.67157288,13 5.5,13 Z M14.5,4 L18.5,4 C19.3284271,4 20,4.67157288 20,5.5 L20,9.5 C20,10.3284271 19.3284271,11 18.5,11 L14.5,11 C13.6715729,11 13,10.3284271 13,9.5 L13,5.5 C13,4.67157288 13.6715729,4 14.5,4 Z M14.5,13 L18.5,13 C19.3284271,13 20,13.6715729 20,14.5 L20,18.5 C20,19.3284271 19.3284271,20 18.5,20 L14.5,20 C13.6715729,20 13,19.3284271 13,18.5 L13,14.5 C13,13.6715729 13.6715729,13 14.5,13 Z" fill="#000000" opacity="0.3" />
</g>
</svg>
</span>
</button>
</div>
</div>
<div class="d-flex flex-column flex-root">
<div class="d-flex flex-row flex-column-fluid page">
<div class="d-flex flex-column flex-row-fluid wrapper container" id="kt_wrapper">
<div id="kt_header" class="header header-fixed">
<div class="container">
<div class="header-menu-wrapper header-menu-wrapper-left" id="kt_header_menu_wrapper">
<div class="header-logo mr-10 d-none d-lg-flex">
<a href="/">
<img alt="Logo" src="<?php echo $logo ?>" class="h-35px" />
</a>
</div>
<div id="kt_header_menu" class="header-menu header-menu-left header-menu-mobile header-menu-layout-default">
<ul class="menu-nav">
<li class="menu-item menu-item<?php if($activesection == "main"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/" class="menu-link">
<span class="menu-text">Главная</span>
</a>
</li>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "servers"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Сервера</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "servers" && $activeitem == "order"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/servers/order" class="menu-link">
<span class="menu-text">Заказать Сервер</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "servers" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/servers" class="menu-link">
<span class="menu-text">Мои Сервера</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?php if($webhost == 1): ?>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "webhost"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">WEB</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "webhost" && $activeitem == "order"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/webhost/order" class="menu-link">
<span class="menu-text">Заказать веб-хостинг</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "webhost" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/webhost" class="menu-link">
<span class="menu-text">Мои веб-сайты</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?php endif; ?>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "tickets"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Поддержка</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets/create" class="menu-link">
<span class="menu-text">Создать запрос</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets" class="menu-link">
<span class="menu-text">Мои запросы</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "faq"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets/faq" class="menu-link">
<span class="menu-text">База знаний (FAQ)</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "account"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Финансы</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "pay"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/pay" class="menu-link">
<span class="menu-text">Пополнить баланс</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "invoices"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/invoices" class="menu-link">
<span class="menu-text">История баланса</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "perevod"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/perevod" class="menu-link">
<span class="menu-text">Перевод средств</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "bonus"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/bonus" class="menu-link">
<span class="menu-text">Обменять бонусы</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?if($status_hostinpl == 1):?>
<li class="menu-item menu-item<?php if($activesection == "status"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/status" class="menu-link">
<span class="menu-text">Статистика</span>
</a>
</li>
<?endif;?>
</ul>
</div>
</div>
<div class="topbar">
<div class="topbar-item mr-1 mr-lg-3">
<a <?if($oplata_status == 1):?> data-toggle="modal" data-target="#hostin" <? else:?>onClick="redirect('/account/pay')"<?endif;?> class="btn btn-fixed-height btn-light-primary font-weight-bolder font-size-sm px-5 my-1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="svg-icon svg-icon-md">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" opacity="0.3" cx="20.5" cy="12.5" r="1.5"/>
<rect fill="#000000" opacity="0.3" transform="translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) " x="3" y="3" width="18" height="7" rx="1"/>
<path d="M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z" fill="#000000"/>
</g>
</svg>
</span>
<?php echo $user_balance ?> RUB
</a>
</div>
<div class="topbar-item mr-1 mr-lg-3">
<div class="btn btn-icon btn-circle btn-hover-light-primary <?php foreach($tickets as $item): ?>
<?php if($item['ticket_status'] == 2): ?>pulse pulse-primary<?php endif; ?>
<?php endforeach; ?>" id="kt_quick_panel_toggle">
<span class="pulse-ring"></span>
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M14.4862 18L12.7975 21.0566C12.5304 21.54 11.922 21.7153 11.4386 21.4483C11.2977 21.3704 11.1777 21.2597 11.0887 21.1255L9.01653 18H5C3.34315 18 2 16.6569 2 15V6C2 4.34315 3.34315 3 5 3H19C20.6569 3 22 4.34315 22 6V15C22 16.6569 20.6569 18 19 18H14.4862Z" fill="black" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H6C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7ZM6 11H11C11.5523 11 12 11.4477 12 12C12 12.5523 11.5523 13 11 13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11Z" fill="black" />
</g>
</svg>
</span>
</div>
</div>
<div class="topbar-item mr-1 mr-lg-3">
<div class="btn btn-icon btn-circle btn-hover-light-primary" id="kt_quick_actions_toggle">
<span class="pulse-ring"></span>
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path d="M16.3740377,19.9389434 L22.2226499,11.1660251 C22.4524142,10.8213786 22.3592838,10.3557266 22.0146373,10.1259623 C21.8914367,10.0438285 21.7466809,10 21.5986122,10 L17,10 L17,4.47708173 C17,4.06286817 16.6642136,3.72708173 16.25,3.72708173 C15.9992351,3.72708173 15.7650616,3.85240758 15.6259623,4.06105658 L9.7773501,12.8339749 C9.54758575,13.1786214 9.64071616,13.6442734 9.98536267,13.8740377 C10.1085633,13.9561715 10.2533191,14 10.4013878,14 L15,14 L15,19.5229183 C15,19.9371318 15.3357864,20.2729183 15.75,20.2729183 C16.0007649,20.2729183 16.2349384,20.1475924 16.3740377,19.9389434 Z" fill="#000000"/>
<path d="M4.5,5 L9.5,5 C10.3284271,5 11,5.67157288 11,6.5 C11,7.32842712 10.3284271,8 9.5,8 L4.5,8 C3.67157288,8 3,7.32842712 3,6.5 C3,5.67157288 3.67157288,5 4.5,5 Z M4.5,17 L9.5,17 C10.3284271,17 11,17.6715729 11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L4.5,20 C3.67157288,20 3,19.3284271 3,18.5 C3,17.6715729 3.67157288,17 4.5,17 Z M2.5,11 L6.5,11 C7.32842712,11 8,11.6715729 8,12.5 C8,13.3284271 7.32842712,14 6.5,14 L2.5,14 C1.67157288,14 1,13.3284271 1,12.5 C1,11.6715729 1.67157288,11 2.5,11 Z" fill="#000000" opacity="0.3"/>
</g>
</svg>
</span>
</div>
</div>
<div class="topbar-item">
<div class="btn btn-icon btn-circle btn-light-primary" id="kt_quick_user_toggle">
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24" />
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero" />
</g>
</svg>
</span>
</div>
</div>
</div>
</div>
</div>
<ul class="sticky-toolbar nav flex-column pl-2 pr-2 pt-3 pb-3 mt-4">
<li class="nav-item mb-2" id="kt_demo_panel_toggle" data-toggle="tooltip" title="Меню управления" data-placement="right">
<a class="btn btn-sm btn-icon btn-bg-light btn-icon-primary btn-hover-primary" href="javascript:;">
<i class="fas fa-align-justify icon-lg"></i>
</a>
</li>
<li class="nav-item mb-2" data-toggle="tooltip" title="PHPMyadmin" data-placement="right">
<a class="btn btn-sm btn-icon btn-bg-light btn-icon-primary btn-hover-primary" href="/phpmyadmin" target="blank">
<i class="fa fa-database icon-lg"></i>
</a>
</li>
<?if($user_access_level == 3):?>
<li class="nav-item mb-2" data-toggle="tooltip" title="Настройки" data-placement="right">
<a class="btn btn-sm btn-icon btn-bg-light btn-icon-primary btn-hover-primary" href="/admin/settings">
<i class="fas fa-cog icon-lg"></i>
</a>
</li>
<?php endif; ?>
<li class="nav-item mb-2" data-toggle="tooltip" title="Система" data-placement="right">
<a class="btn btn-sm btn-icon btn-bg-light btn-icon-primary btn-hover-primary" href="/admin/checksys">
<i class="far fa-lightbulb icon-lg"></i>
</a>
</li>
</ul>
<div id="kt_quick_user" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Профиль
<small class="text-muted font-size-sm ml-2"><?if($user_access_level == 3):?> Администратора<?elseif($user_access_level == 2):?>Тех.поддержки<?elseif($user_access_level == 1):?>Пользователя<?endif;?></small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_user_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="offcanvas-content pr-5 mr-n5">
<div class="d-flex align-items-center mt-5">
<div class="symbol symbol-50 mr-5">
<div class="symbol-label" style="background-image:url('<?php echo $url ?><?php echo $user_img ?>')"></div>
<i class="symbol-badge bg-success"></i>
</div>
<div class="d-flex flex-column">
<a href="javascript:;" class="font-weight-bold font-size-h5 text-dark-75 text-hover-primary"><?php echo $user_lastname ?> <?php echo $user_firstname ?></a>
<div class="navi mt-1">
<a href="javascript:;" class="navi-item">
<span class="navi-link p-0 pb-2">
<span class="navi-text text-muted text-hover-primary"><?php echo $user_email ?></span>
</span>
</a>
</div>
</div>
</div>
<div class="separator separator-dashed mt-8 mb-5"></div>
<div class="navi navi-spacer-x-0 p-0">
<a href="/main/acc" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-danger">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M18,2 L20,2 C21.6568542,2 23,3.34314575 23,5 L23,19 C23,20.6568542 21.6568542,22 20,22 L18,22 L18,2 Z" fill="#000000" opacity="0.3" />
<path d="M5,2 L17,2 C18.6568542,2 20,3.34314575 20,5 L20,19 C20,20.6568542 18.6568542,22 17,22 L5,22 C4.44771525,22 4,21.5522847 4,21 L4,3 C4,2.44771525 4.44771525,2 5,2 Z M12,11 C13.1045695,11 14,10.1045695 14,9 C14,7.8954305 13.1045695,7 12,7 C10.8954305,7 10,7.8954305 10,9 C10,10.1045695 10.8954305,11 12,11 Z M7.00036205,16.4995035 C6.98863236,16.6619875 7.26484009,17 7.4041679,17 C11.463736,17 14.5228466,17 16.5815,17 C16.9988413,17 17.0053266,16.6221713 16.9988413,16.5 C16.8360465,13.4332455 14.6506758,12 11.9907452,12 C9.36772908,12 7.21569918,13.5165724 7.00036205,16.4995035 Z" fill="#000000" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мой профиль</div>
<div class="text-muted">Личные данные</div>
</div>
</div>
</a>
<a href="/servers" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-success">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M7,3 L17,3 C19.209139,3 21,4.790861 21,7 C21,9.209139 19.209139,11 17,11 L7,11 C4.790861,11 3,9.209139 3,7 C3,4.790861 4.790861,3 7,3 Z M7,9 C8.1045695,9 9,8.1045695 9,7 C9,5.8954305 8.1045695,5 7,5 C5.8954305,5 5,5.8954305 5,7 C5,8.1045695 5.8954305,9 7,9 Z" fill="#000000" />
<path d="M7,13 L17,13 C19.209139,13 21,14.790861 21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 C3,14.790861 4.790861,13 7,13 Z M17,19 C18.1045695,19 19,18.1045695 19,17 C19,15.8954305 18.1045695,15 17,15 C15.8954305,15 15,15.8954305 15,17 C15,18.1045695 15.8954305,19 17,19 Z" fill="#000000" opacity="0.3" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мои сервера</div>
<div class="text-muted">Список серверов</div>
</div>
</div>
</a>
<a href="/account/invoices" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" opacity="0.3" cx="20.5" cy="12.5" r="1.5"/>
<rect fill="#000000" opacity="0.3" transform="translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) " x="3" y="3" width="18" height="7" rx="1"/>
<path d="M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z" fill="#000000"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">История баланса</div>
<div class="text-muted">Список пополнений</div>
</div>
</div>
</a>
<a href="/account/waste" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-warning">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect opacity="0.200000003" x="0" y="0" width="24" height="24"/>
<path d="M4.5,7 L9.5,7 C10.3284271,7 11,7.67157288 11,8.5 C11,9.32842712 10.3284271,10 9.5,10 L4.5,10 C3.67157288,10 3,9.32842712 3,8.5 C3,7.67157288 3.67157288,7 4.5,7 Z M13.5,15 L18.5,15 C19.3284271,15 20,15.6715729 20,16.5 C20,17.3284271 19.3284271,18 18.5,18 L13.5,18 C12.6715729,18 12,17.3284271 12,16.5 C12,15.6715729 12.6715729,15 13.5,15 Z" fill="#000000" opacity="0.3"/>
<path d="M17,11 C15.3431458,11 14,9.65685425 14,8 C14,6.34314575 15.3431458,5 17,5 C18.6568542,5 20,6.34314575 20,8 C20,9.65685425 18.6568542,11 17,11 Z M6,19 C4.34314575,19 3,17.6568542 3,16 C3,14.3431458 4.34314575,13 6,13 C7.65685425,13 9,14.3431458 9,16 C9,17.6568542 7.65685425,19 6,19 Z" fill="#000000"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">История операций</div>
<div class="text-muted">Список операций</div>
</div>
</div>
</a>
<a href="/tickets" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-info">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M6,2 L18,2 C18.5522847,2 19,2.44771525 19,3 L19,12 C19,12.5522847 18.5522847,13 18,13 L6,13 C5.44771525,13 5,12.5522847 5,12 L5,3 C5,2.44771525 5.44771525,2 6,2 Z M7.5,5 C7.22385763,5 7,5.22385763 7,5.5 C7,5.77614237 7.22385763,6 7.5,6 L13.5,6 C13.7761424,6 14,5.77614237 14,5.5 C14,5.22385763 13.7761424,5 13.5,5 L7.5,5 Z M7.5,7 C7.22385763,7 7,7.22385763 7,7.5 C7,7.77614237 7.22385763,8 7.5,8 L10.5,8 C10.7761424,8 11,7.77614237 11,7.5 C11,7.22385763 10.7761424,7 10.5,7 L7.5,7 Z" fill="#000000" opacity="0.3" />
<path d="M3.79274528,6.57253826 L12,12.5 L20.2072547,6.57253826 C20.4311176,6.4108595 20.7436609,6.46126971 20.9053396,6.68513259 C20.9668779,6.77033951 21,6.87277228 21,6.97787787 L21,17 C21,18.1045695 20.1045695,19 19,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,6.97787787 C3,6.70173549 3.22385763,6.47787787 3.5,6.47787787 C3.60510559,6.47787787 3.70753836,6.51099993 3.79274528,6.57253826 Z" fill="#000000" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мои тикеты</div>
<div class="text-muted">Список запросов</div>
</div>
</div>
</a>
<span class="navi-item mt-2">
<span class="navi-link">
<a href="/account/logout" class="btn btn-sm btn-light-primary font-weight-bolder py-3 px-6">Выйти</a>
</span>
</span>
<?if($user_access_level > 1):?>
<div class="separator separator-dashed mt-8 mb-5"></div>
<a href="/admin" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-dark">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3"/>
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Управление</div>
<div class="text-muted">Панель <?if($user_access_level == 3):?> Администратора<?elseif($user_access_level == 2):?> Тех.поддержки<?endif;?></div>
</div>
</div>
</a>
<?endif;?>
</div>
</div>
</div>
<div id="kt_quick_panel" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Тикеты
<small class="text-muted font-size-sm ml-2">Список запросов</small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_panel_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="tab-pane fade pt-2 pr-5 mr-n5 scroll active show" id="kt_quick_panel_notifications" role="tabpanel" style="height: auto; overflow: hidden;">
<ul class="navi navi-hover navi-active">
<?php foreach($tickets as $item): ?>
<li class="navi-item">
<a class="navi-link" href="/tickets/view/index/<?php echo $item['ticket_id'] ?>">
<div class="navi-text">
<span class="d-block font-weight-bold"><?php echo $item['ticket_name'] ?></span>
<span class="text-muted"><?php if($item['ticket_status'] == 0): ?> Вопрос закрыт.
<?php elseif($item['ticket_status'] == 1): ?> Ваш вопрос рассматривают.
<?php elseif($item['ticket_status'] == 2): ?> Ответ от администрации.
<?php endif; ?></span>
</div>
<?php if($item['ticket_status'] == 2): ?>
<span class="label label-light-primary font-weight-bold label-inline">new</span>
<?php endif; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php if(empty($tickets)): ?>
<div class="alert alert-primary" role="alert">
На данный момент у вас нет запросов.
</div>
<?php endif; ?>
</div>
</div>
<div id="kt_quick_actions" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Авторизация
<small class="text-muted font-size-sm ml-2">История авторизации</small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_actions_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="offcanvas-content pr-5 mr-n5 scroll" style="height: auto; overflow: hidden;">
<?php foreach($visitors as $item):?>
<div class="d-flex align-items-center bg-light-<?php if($item['status'] == 0): ?>danger<?php elseif($item['status'] == 1): ?>success<?php elseif($item['status'] == 2): ?>warning<?php endif; ?> rounded p-5 mb-9">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="/main/acc" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">IP: <?php echo $item['ip'] ?></a>
<span class="text-muted font-weight-bold"><?php if($item['status'] == 0): ?>
Попытка входа в аккаунт -
<?php elseif($item['status'] == 1): ?>
Вход в аккаунт -
<?php elseif($item['status'] == 2): ?>
Выход с аккаунта -
<?php endif; ?>
<?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?></span>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($visitors)): ?>
<span class="m-widget14__desc">
<center>У вас нет активов.</center>
</span>
<?php endif; ?>
</div>
</div>
<div id="kt_demo_panel" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-3">
<h4 class="font-weight-bold m-0">Меню</h4>
<a href="#" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_demo_panel_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="offcanvas-content">
<div class="offcanvas-wrapper mb-5 scroll-pull">
<div id="kt_aside_menu" class="aside-menu my-4 scroll" data-menu-vertical="1" data-menu-scroll="1" data-menu-dropdown-timeout="500" style="">
<ul class="menu-nav">
<li class="menu-item menu-item<?php if($activesection == "admin/servers"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/servers" class="menu-link">
<i class="menu-icon fa fa-server"></i>
<span class="menu-text">Игровые сервера</span>
</a>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/webhost"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/webhost" class="menu-link">
<i class="menu-icon fa fa-globe"></i>
<span class="menu-text">WEB сайты</span>
</a>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/tickets" || $activesection == "admin/ticketcategory" || $activesection == "admin/emailinfo" || $activesection == "admin/infobox"): ?>-active<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="javascript:;" class="menu-link menu-toggle">
<i class="menu-icon fa fa-headset"></i>
<span class="menu-text">Поддержка</span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu" kt-hidden-height="120" style="">
<i class="menu-arrow"></i>
<ul class="menu-subnav">
<li class="menu-item menu-item-parent" aria-haspopup="true">
<span class="menu-link">
<span class="menu-text">Поддержка</span>
</span>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/tickets" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/tickets" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Все запросы</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/tickets" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/tickets/create" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Написать клиенту</span>
<i class="menu-arrow"></i>
</a>
</li>
<?php if($user_access_level == 3):?>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/ticketcategory" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/ticketcategory" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Все категории</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/ticketcategory" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/ticketcategory/create" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Создать категорию</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/emailinfo" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/emailinfo" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Рассылка E-mail</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/infobox" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/infobox" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Обратная связь</span>
<i class="menu-arrow"></i>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/users" || $activesection == "admin/waste" || $activesection == "admin/invoices"): ?>-active<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="javascript:;" class="menu-link menu-toggle">
<i class="menu-icon fa fa-user-friends"></i>
<span class="menu-text">Пользователи</span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu" kt-hidden-height="120" style="">
<i class="menu-arrow"></i>
<ul class="menu-subnav">
<li class="menu-item menu-item-parent" aria-haspopup="true">
<span class="menu-link">
<span class="menu-text">Пользователи</span>
</span>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/users" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/users" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Список пользователей</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/waste" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/waste" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Операции пользователей</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/invoices" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/invoices" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Платежи</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?if($user_access_level == 3):?>
<li class="menu-item menu-item<?php if($activesection == "admin/mods"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/mods" class="menu-link">
<i class="menu-icon fa fa-fast-forward"></i>
<span class="menu-text">Автоустановка</span>
</a>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/repo"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/repo" class="menu-link">
<i class="menu-icon fa fa-folder"></i>
<span class="menu-text">Репозиторий</span>
</a>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/news"): ?>-active<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="javascript:;" class="menu-link menu-toggle">
<i class="menu-icon fa fa-hashtag"></i>
<span class="menu-text">Новости</span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu" kt-hidden-height="120" style="">
<i class="menu-arrow"></i>
<ul class="menu-subnav">
<li class="menu-item menu-item-parent" aria-haspopup="true">
<span class="menu-link">
<span class="menu-text">Новости</span>
</span>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/news" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/news" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Список новостей</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/news" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/news/create" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Добавить новость</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/promo"): ?>-active<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="javascript:;" class="menu-link menu-toggle">
<i class="menu-icon fa fa-gift"></i>
<span class="menu-text">Промо</span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu" kt-hidden-height="120" style="">
<i class="menu-arrow"></i>
<ul class="menu-subnav">
<li class="menu-item menu-item-parent" aria-haspopup="true">
<span class="menu-link">
<span class="menu-text">Промо коды</span>
</span>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/promo" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/promo" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Список промо кодов</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/promo" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/promo/create" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Добавить промо код</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/games" || $activesection == "admin/locations" || $activesection == "admin/webtarifs" || $activesection == "admin/weblocations"): ?>-active<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="javascript:;" class="menu-link menu-toggle">
<i class="menu-icon fa fa-cogs"></i>
<span class="menu-text">Управление</span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu" kt-hidden-height="120" style="">
<i class="menu-arrow"></i>
<ul class="menu-subnav">
<li class="menu-item menu-item-parent" aria-haspopup="true">
<span class="menu-link">
<span class="menu-text">Управление</span>
</span>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/games" && $activeitem == "index" || $activesection == "admin/games" && $activeitem == "create" || $activesection == "admin/games" && $activeitem == "edit"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/games" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Игры</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/locations" && $activeitem == "index" || $activesection == "admin/locations" && $activeitem == "create" || $activesection == "admin/locations" && $activeitem == "edit"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/locations" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">Game локации</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/webtarifs" && $activeitem == "index" || $activesection == "admin/webtarifs" && $activeitem == "create" || $activesection == "admin/webtarifs" && $activeitem == "edit"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/webtarifs" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">WEB Тарифы</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "admin/weblocations" && $activeitem == "index" || $activesection == "admin/weblocations" && $activeitem == "create" || $activesection == "admin/weblocations" && $activeitem == "edit"): ?>menu-item-here<?php endif; ?>" aria-haspopup="true" data-menu-toggle="hover">
<a href="/admin/weblocations" class="menu-link menu-toggle">
<i class="menu-bullet menu-bullet-line">
<span></span>
</i>
<span class="menu-text">WEB Локации</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/settings" && $activeitem == "index"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/settings" class="menu-link">
<i class="menu-icon fa fa-cog"></i>
<span class="menu-text">Настройки</span>
</a>
</li>
<?php endif; ?>
<li class="menu-item menu-item<?php if($activesection == "admin/statistics" && $activeitem == "index"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/statistics" class="menu-link">
<i class="menu-icon fa fa-chart-line"></i>
<span class="menu-text">Статистика</span>
</a>
</li>
<li class="menu-item menu-item<?php if($activesection == "admin/checksys" && $activeitem == "index"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/admin/checksys" class="menu-link">
<i class="menu-icon fa fa-lightbulb"></i>
<span class="menu-text">Система</span>
</a>
</li>
</ul>
</div>
</div>
<div class="offcanvas-footer">
<a href="/admin" class="btn btn-block btn-primary btn-shadow font-weight-bolder text-uppercase">На главную</a>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="hostin" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="samirForm" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<div id="kt_scrolltop" class="scrolltop">
<span class="svg-icon">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24" />
<rect fill="#000000" opacity="0.3" x="11" y="10" width="2" height="10" rx="1" />
<path d="M6.70710678,12.7071068 C6.31658249,13.0976311 5.68341751,13.0976311 5.29289322,12.7071068 C4.90236893,12.3165825 4.90236893,11.6834175 5.29289322,11.2928932 L11.2928932,5.29289322 C11.6714722,4.91431428 12.2810586,4.90106866 12.6757246,5.26284586 L18.6757246,10.7628459 C19.0828436,11.1360383 19.1103465,11.7686056 18.7371541,12.1757246 C18.3639617,12.5828436 17.7313944,12.6103465 17.3242754,12.2371541 L12.0300757,7.38413782 L6.70710678,12.7071068 Z" fill="#000000" fill-rule="nonzero" />
</g>
</svg>
</span>
</div>
<script>var KTAppSettings = { "breakpoints": { "sm": 576, "md": 768, "lg": 992, "xl": 1200, "xxl": 1200 }, "colors": { "theme": { "base": { "white": "#ffffff", "primary": "#0BB783", "secondary": "#E5EAEE", "success": "#1BC5BD", "info": "#8950FC", "warning": "#FFA800", "danger": "#F64E60", "light": "#F3F6F9", "dark": "#212121" }, "light": { "white": "#ffffff", "primary": "#D7F9EF", "secondary": "#ECF0F3", "success": "#C9F7F5", "info": "#EEE5FF", "warning": "#FFF4DE", "danger": "#FFE2E5", "light": "#F3F6F9", "dark": "#D6D6E0" }, "inverse": { "white": "#ffffff", "primary": "#ffffff", "secondary": "#212121", "success": "#ffffff", "info": "#ffffff", "warning": "#ffffff", "danger": "#ffffff", "light": "#464E5F", "dark": "#ffffff" } }, "gray": { "gray-100": "#F3F6F9", "gray-200": "#ECF0F3", "gray-300": "#E5EAEE", "gray-400": "#D6D6E0", "gray-500": "#B5B5C3", "gray-600": "#80808F", "gray-700": "#464E5F", "gray-800": "#1B283F", "gray-900": "#212121" } }, "font-family": "Poppins" };</script>
<script src="/assets/js/plugins.bundle.js"></script>
<script src="/assets/js/prismjs.bundle.js"></script>
<script src="/assets/js/scripts.bundle.js"></script>
<script src="/application/public/js/main.js"></script>
<script src="/application/public/js/jquery.form.min.js"></script>
<script src="/assets/js/fullcalendar.bundle.js"></script>
<script src="/assets/js/widgets.js"></script>
<script>
$('#hostin').ajaxForm({
url: '/account/pay/<?php echo $oplatahostinpl ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php if(isset($error)): ?><script>toastr.error('<?php echo $error ?>');</script><?php endif; ?>
<?php if(isset($warning)): ?><script>toastr.warning('<?php echo $warning ?>');</script><?php endif; ?>
<?php if(isset($success)): ?><script>toastr.success('<?php echo $success ?>');</script><?php endif; ?>
</body>
</html>
+65
View File
@@ -0,0 +1,65 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<div class="footer bg-white py-4 d-flex flex-lg-column" id="kt_footer">
<div class="container d-flex flex-column flex-md-row align-items-center justify-content-between">
<div class="text-dark order-2 order-md-1">
<span class="text-muted font-weight-bold mr-2">2026©</span>
<a href="https://redl.io" target="_blank" class="text-dark-75 text-hover-primary">REDL.IO — Хостинг с искусственным интеллектом</a>
</div>
<div class="nav nav-dark order-1 order-md-2">
<a href="/contacts" class="nav-link pr-3 pl-0">Контакты</a>
<a href="https://redl.io" target="_blank" class="nav-link px-3">REDL.IO</a>
<a href="javascript:;" class="nav-link pl-3 pr-0">Пользователей на сайте: <div style="margin-left: 0.25rem;" id="online"></div></a>
</div>
</div>
</div>
<script>
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "3500",
"extendedTimeOut": "3000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
</script>
<script type="text/javascript">
$(document).ready(
function get() {
setTimeout(getstatus('online'), 105000);
setTimeout(get, 35000);
}
);
function getstatus(action) {
$.ajax({
url: '/common/footer/getstatus/'+action,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('#controlBtns button').prop('disabled', false);
break;
case 'online':
console.info(data.online);
$("#online").html(data.online_usr)
break
}
},
});
}
</script>
+557
View File
@@ -0,0 +1,557 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title><?php echo $title ?> | <?php echo $description ?></title>
<meta name="description" content="<?php echo $description ?>">
<meta name="keywords" content="<?php echo $keywords ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/prismjs.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-static header-mobile-fixed page-loading">
<div id="kt_header_mobile" class="header-mobile header-mobile-fixed">
<a href="/">
<img alt="Logo" src="<?php echo $logo ?>" class="h-30px" />
</a>
<div class="d-flex align-items-center">
<button class="btn p-0 rounded-0 ml-4" id="kt_header_mobile_toggle">
<span class="svg-icon svg-icon-xl">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M2 11.5C2 12.3284 2.67157 13 3.5 13H20.5C21.3284 13 22 12.3284 22 11.5V11.5C22 10.6716 21.3284 10 20.5 10H3.5C2.67157 10 2 10.6716 2 11.5V11.5Z" fill="black" />
<path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M9.5 20C8.67157 20 8 19.3284 8 18.5C8 17.6716 8.67157 17 9.5 17H20.5C21.3284 17 22 17.6716 22 18.5C22 19.3284 21.3284 20 20.5 20H9.5ZM15.5 6C14.6716 6 14 5.32843 14 4.5C14 3.67157 14.6716 3 15.5 3H20.5C21.3284 3 22 3.67157 22 4.5C22 5.32843 21.3284 6 20.5 6H15.5Z" fill="black" />
</g>
</svg>
</span>
</button>
<button class="btn rounded-0 p-0 ml-2" id="kt_header_mobile_topbar_toggle">
<span class="svg-icon svg-icon-xxl">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<rect fill="#000000" x="4" y="4" width="7" height="7" rx="1.5" />
<path d="M5.5,13 L9.5,13 C10.3284271,13 11,13.6715729 11,14.5 L11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L5.5,20 C4.67157288,20 4,19.3284271 4,18.5 L4,14.5 C4,13.6715729 4.67157288,13 5.5,13 Z M14.5,4 L18.5,4 C19.3284271,4 20,4.67157288 20,5.5 L20,9.5 C20,10.3284271 19.3284271,11 18.5,11 L14.5,11 C13.6715729,11 13,10.3284271 13,9.5 L13,5.5 C13,4.67157288 13.6715729,4 14.5,4 Z M14.5,13 L18.5,13 C19.3284271,13 20,13.6715729 20,14.5 L20,18.5 C20,19.3284271 19.3284271,20 18.5,20 L14.5,20 C13.6715729,20 13,19.3284271 13,18.5 L13,14.5 C13,13.6715729 13.6715729,13 14.5,13 Z" fill="#000000" opacity="0.3" />
</g>
</svg>
</span>
</button>
</div>
</div>
<div class="d-flex flex-column flex-root">
<div class="d-flex flex-row flex-column-fluid page">
<div class="d-flex flex-column flex-row-fluid wrapper container" id="kt_wrapper">
<div id="kt_header" class="header header-fixed">
<div class="container">
<div class="header-menu-wrapper header-menu-wrapper-left" id="kt_header_menu_wrapper">
<div class="header-logo mr-10 d-none d-lg-flex">
<a href="/">
<img alt="Logo" src="<?php echo $logo ?>" class="h-35px" />
</a>
</div>
<div id="kt_header_menu" class="header-menu header-menu-left header-menu-mobile header-menu-layout-default">
<ul class="menu-nav">
<li class="menu-item menu-item<?php if($activesection == "main"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/" class="menu-link">
<span class="menu-text">Главная</span>
</a>
</li>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "servers"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Сервера</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "servers" && $activeitem == "order"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/servers/order" class="menu-link">
<span class="menu-text">Заказать Сервер</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "servers" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/servers" class="menu-link">
<span class="menu-text">Мои Сервера</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?php if($webhost == 1): ?>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "webhost"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">WEB</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "webhost" && $activeitem == "order"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/webhost/order" class="menu-link">
<span class="menu-text">Заказать веб-хостинг</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "webhost" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/webhost" class="menu-link">
<span class="menu-text">Мои веб-сайты</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?php endif; ?>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "tickets"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Поддержка</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "create"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets/create" class="menu-link">
<span class="menu-text">Создать запрос</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "index"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets" class="menu-link">
<span class="menu-text">Мои запросы</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "tickets" && $activeitem == "faq"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/tickets/faq" class="menu-link">
<span class="menu-text">База знаний (FAQ)</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<li class="menu-item menu-item-submenu menu-item-rel <?php if($activesection == "account"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="click" aria-haspopup="true">
<a href="javascript:;" class="menu-link menu-toggle">
<span class="menu-text">Финансы</span>
<span class="menu-desc"></span>
<i class="menu-arrow"></i>
</a>
<div class="menu-submenu menu-submenu-classic menu-submenu-left">
<ul class="menu-subnav">
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "pay"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/pay" class="menu-link">
<span class="menu-text">Пополнить баланс</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "invoices"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/invoices" class="menu-link">
<span class="menu-text">История баланса</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "perevod"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/perevod" class="menu-link">
<span class="menu-text">Перевод средств</span>
<i class="menu-arrow"></i>
</a>
</li>
<li class="menu-item menu-item-submenu <?php if($activesection == "account" && $activeitem == "bonus"): ?>menu-item-here<?php endif; ?>" data-menu-toggle="hover" aria-haspopup="true">
<a href="/account/bonus" class="menu-link">
<span class="menu-text">Обменять бонусы</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</li>
<?if($status_hostinpl == 1):?>
<li class="menu-item menu-item<?php if($activesection == "status"): ?>-active<?php endif; ?>" aria-haspopup="true">
<a href="/status" class="menu-link">
<span class="menu-text">Статистика</span>
</a>
</li>
<?endif;?>
</ul>
</div>
</div>
<div class="topbar">
<div class="topbar-item mr-1 mr-lg-3">
<a <?if($oplata_status == 1):?> data-toggle="modal" data-target="#hostin" <? else:?>onClick="redirect('/account/pay')"<?endif;?> class="btn btn-fixed-height btn-light-primary font-weight-bolder font-size-sm px-5 my-1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="svg-icon svg-icon-md">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" opacity="0.3" cx="20.5" cy="12.5" r="1.5"/>
<rect fill="#000000" opacity="0.3" transform="translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) " x="3" y="3" width="18" height="7" rx="1"/>
<path d="M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z" fill="#000000"/>
</g>
</svg>
</span>
<?php echo $user_balance ?> RUB
</a>
</div>
<div class="topbar-item mr-1 mr-lg-3">
<div class="btn btn-icon btn-circle btn-hover-light-primary <?php foreach($tickets as $item): ?>
<?php if($item['ticket_status'] == 2): ?>pulse pulse-primary<?php endif; ?>
<?php endforeach; ?>" id="kt_quick_panel_toggle">
<span class="pulse-ring"></span>
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M14.4862 18L12.7975 21.0566C12.5304 21.54 11.922 21.7153 11.4386 21.4483C11.2977 21.3704 11.1777 21.2597 11.0887 21.1255L9.01653 18H5C3.34315 18 2 16.6569 2 15V6C2 4.34315 3.34315 3 5 3H19C20.6569 3 22 4.34315 22 6V15C22 16.6569 20.6569 18 19 18H14.4862Z" fill="black" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H6C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7ZM6 11H11C11.5523 11 12 11.4477 12 12C12 12.5523 11.5523 13 11 13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11Z" fill="black" />
</g>
</svg>
</span>
</div>
</div>
<div class="topbar-item mr-1 mr-lg-3">
<div class="btn btn-icon btn-circle btn-hover-light-primary" id="kt_quick_actions_toggle">
<span class="pulse-ring"></span>
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path d="M16.3740377,19.9389434 L22.2226499,11.1660251 C22.4524142,10.8213786 22.3592838,10.3557266 22.0146373,10.1259623 C21.8914367,10.0438285 21.7466809,10 21.5986122,10 L17,10 L17,4.47708173 C17,4.06286817 16.6642136,3.72708173 16.25,3.72708173 C15.9992351,3.72708173 15.7650616,3.85240758 15.6259623,4.06105658 L9.7773501,12.8339749 C9.54758575,13.1786214 9.64071616,13.6442734 9.98536267,13.8740377 C10.1085633,13.9561715 10.2533191,14 10.4013878,14 L15,14 L15,19.5229183 C15,19.9371318 15.3357864,20.2729183 15.75,20.2729183 C16.0007649,20.2729183 16.2349384,20.1475924 16.3740377,19.9389434 Z" fill="#000000"/>
<path d="M4.5,5 L9.5,5 C10.3284271,5 11,5.67157288 11,6.5 C11,7.32842712 10.3284271,8 9.5,8 L4.5,8 C3.67157288,8 3,7.32842712 3,6.5 C3,5.67157288 3.67157288,5 4.5,5 Z M4.5,17 L9.5,17 C10.3284271,17 11,17.6715729 11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L4.5,20 C3.67157288,20 3,19.3284271 3,18.5 C3,17.6715729 3.67157288,17 4.5,17 Z M2.5,11 L6.5,11 C7.32842712,11 8,11.6715729 8,12.5 C8,13.3284271 7.32842712,14 6.5,14 L2.5,14 C1.67157288,14 1,13.3284271 1,12.5 C1,11.6715729 1.67157288,11 2.5,11 Z" fill="#000000" opacity="0.3"/>
</g>
</svg>
</span>
</div>
</div>
<div class="topbar-item">
<div class="btn btn-icon btn-circle btn-light-primary" id="kt_quick_user_toggle">
<span class="svg-icon svg-icon-lg">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24" />
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero" />
</g>
</svg>
</span>
</div>
</div>
</div>
</div>
</div>
<div id="kt_quick_user" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Профиль
<small class="text-muted font-size-sm ml-2"><?if($user_access_level == 3):?> Администратора<?elseif($user_access_level == 2):?>Тех.поддержки<?elseif($user_access_level == 1):?>Пользователя<?endif;?></small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_user_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="offcanvas-content pr-5 mr-n5">
<div class="d-flex align-items-center mt-5">
<div class="symbol symbol-50 mr-5">
<div class="symbol-label" style="background-image:url('<?php echo $url ?><?php echo $user_img ?>')"></div>
<i class="symbol-badge bg-success"></i>
</div>
<div class="d-flex flex-column">
<a href="javascript:;" class="font-weight-bold font-size-h5 text-dark-75 text-hover-primary"><?php echo $user_lastname ?> <?php echo $user_firstname ?></a>
<div class="navi mt-1">
<a href="javascript:;" class="navi-item">
<span class="navi-link p-0 pb-2">
<span class="navi-text text-muted text-hover-primary"><?php echo $user_email ?></span>
</span>
</a>
</div>
</div>
</div>
<div class="separator separator-dashed mt-8 mb-5"></div>
<div class="navi navi-spacer-x-0 p-0">
<a href="/main/acc" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-danger">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M18,2 L20,2 C21.6568542,2 23,3.34314575 23,5 L23,19 C23,20.6568542 21.6568542,22 20,22 L18,22 L18,2 Z" fill="#000000" opacity="0.3" />
<path d="M5,2 L17,2 C18.6568542,2 20,3.34314575 20,5 L20,19 C20,20.6568542 18.6568542,22 17,22 L5,22 C4.44771525,22 4,21.5522847 4,21 L4,3 C4,2.44771525 4.44771525,2 5,2 Z M12,11 C13.1045695,11 14,10.1045695 14,9 C14,7.8954305 13.1045695,7 12,7 C10.8954305,7 10,7.8954305 10,9 C10,10.1045695 10.8954305,11 12,11 Z M7.00036205,16.4995035 C6.98863236,16.6619875 7.26484009,17 7.4041679,17 C11.463736,17 14.5228466,17 16.5815,17 C16.9988413,17 17.0053266,16.6221713 16.9988413,16.5 C16.8360465,13.4332455 14.6506758,12 11.9907452,12 C9.36772908,12 7.21569918,13.5165724 7.00036205,16.4995035 Z" fill="#000000" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мой профиль</div>
<div class="text-muted">Личные данные</div>
</div>
</div>
</a>
<a href="/servers" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-success">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M7,3 L17,3 C19.209139,3 21,4.790861 21,7 C21,9.209139 19.209139,11 17,11 L7,11 C4.790861,11 3,9.209139 3,7 C3,4.790861 4.790861,3 7,3 Z M7,9 C8.1045695,9 9,8.1045695 9,7 C9,5.8954305 8.1045695,5 7,5 C5.8954305,5 5,5.8954305 5,7 C5,8.1045695 5.8954305,9 7,9 Z" fill="#000000" />
<path d="M7,13 L17,13 C19.209139,13 21,14.790861 21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 C3,14.790861 4.790861,13 7,13 Z M17,19 C18.1045695,19 19,18.1045695 19,17 C19,15.8954305 18.1045695,15 17,15 C15.8954305,15 15,15.8954305 15,17 C15,18.1045695 15.8954305,19 17,19 Z" fill="#000000" opacity="0.3" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мои сервера</div>
<div class="text-muted">Список серверов</div>
</div>
</div>
</a>
<a href="/account/invoices" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" opacity="0.3" cx="20.5" cy="12.5" r="1.5"/>
<rect fill="#000000" opacity="0.3" transform="translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) " x="3" y="3" width="18" height="7" rx="1"/>
<path d="M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z" fill="#000000"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">История баланса</div>
<div class="text-muted">Список пополнений</div>
</div>
</div>
</a>
<a href="/account/waste" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-warning">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect opacity="0.200000003" x="0" y="0" width="24" height="24"/>
<path d="M4.5,7 L9.5,7 C10.3284271,7 11,7.67157288 11,8.5 C11,9.32842712 10.3284271,10 9.5,10 L4.5,10 C3.67157288,10 3,9.32842712 3,8.5 C3,7.67157288 3.67157288,7 4.5,7 Z M13.5,15 L18.5,15 C19.3284271,15 20,15.6715729 20,16.5 C20,17.3284271 19.3284271,18 18.5,18 L13.5,18 C12.6715729,18 12,17.3284271 12,16.5 C12,15.6715729 12.6715729,15 13.5,15 Z" fill="#000000" opacity="0.3"/>
<path d="M17,11 C15.3431458,11 14,9.65685425 14,8 C14,6.34314575 15.3431458,5 17,5 C18.6568542,5 20,6.34314575 20,8 C20,9.65685425 18.6568542,11 17,11 Z M6,19 C4.34314575,19 3,17.6568542 3,16 C3,14.3431458 4.34314575,13 6,13 C7.65685425,13 9,14.3431458 9,16 C9,17.6568542 7.65685425,19 6,19 Z" fill="#000000"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">История операций</div>
<div class="text-muted">Список операций</div>
</div>
</div>
</a>
<a href="/tickets" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-info">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24" />
<path d="M6,2 L18,2 C18.5522847,2 19,2.44771525 19,3 L19,12 C19,12.5522847 18.5522847,13 18,13 L6,13 C5.44771525,13 5,12.5522847 5,12 L5,3 C5,2.44771525 5.44771525,2 6,2 Z M7.5,5 C7.22385763,5 7,5.22385763 7,5.5 C7,5.77614237 7.22385763,6 7.5,6 L13.5,6 C13.7761424,6 14,5.77614237 14,5.5 C14,5.22385763 13.7761424,5 13.5,5 L7.5,5 Z M7.5,7 C7.22385763,7 7,7.22385763 7,7.5 C7,7.77614237 7.22385763,8 7.5,8 L10.5,8 C10.7761424,8 11,7.77614237 11,7.5 C11,7.22385763 10.7761424,7 10.5,7 L7.5,7 Z" fill="#000000" opacity="0.3" />
<path d="M3.79274528,6.57253826 L12,12.5 L20.2072547,6.57253826 C20.4311176,6.4108595 20.7436609,6.46126971 20.9053396,6.68513259 C20.9668779,6.77033951 21,6.87277228 21,6.97787787 L21,17 C21,18.1045695 20.1045695,19 19,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,6.97787787 C3,6.70173549 3.22385763,6.47787787 3.5,6.47787787 C3.60510559,6.47787787 3.70753836,6.51099993 3.79274528,6.57253826 Z" fill="#000000" />
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Мои тикеты</div>
<div class="text-muted">Список запросов</div>
</div>
</div>
</a>
<span class="navi-item mt-2">
<span class="navi-link">
<a href="/account/logout" class="btn btn-sm btn-light-primary font-weight-bolder py-3 px-6">Выйти</a>
</span>
</span>
<?if($user_access_level > 1):?>
<div class="separator separator-dashed mt-8 mb-5"></div>
<a href="/admin" class="navi-item">
<div class="navi-link">
<div class="symbol symbol-40 bg-light mr-3">
<div class="symbol-label">
<span class="svg-icon svg-icon-md svg-icon-dark">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"/>
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3"/>
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero"/>
</g>
</svg>
</span>
</div>
</div>
<div class="navi-text">
<div class="font-weight-bold">Управление</div>
<div class="text-muted">Панель <?if($user_access_level == 3):?> Администратора<?elseif($user_access_level == 2):?> Тех.поддержки<?endif;?></div>
</div>
</div>
</a>
<?endif;?>
</div>
</div>
</div>
<div id="kt_quick_panel" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Тикеты
<small class="text-muted font-size-sm ml-2">Список запросов</small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_panel_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="tab-pane fade pt-2 pr-5 mr-n5 scroll active show" id="kt_quick_panel_notifications" role="tabpanel" style="height: auto; overflow: hidden;">
<ul class="navi navi-hover navi-active">
<?php foreach($tickets as $item): ?>
<li class="navi-item">
<a class="navi-link" href="/tickets/view/index/<?php echo $item['ticket_id'] ?>">
<div class="navi-text">
<span class="d-block font-weight-bold"><?php echo $item['ticket_name'] ?></span>
<span class="text-muted"><?php if($item['ticket_status'] == 0): ?> Вопрос закрыт.
<?php elseif($item['ticket_status'] == 1): ?> Ваш вопрос рассматривают.
<?php elseif($item['ticket_status'] == 2): ?> Ответ от администрации.
<?php endif; ?></span>
</div>
<?php if($item['ticket_status'] == 2): ?>
<span class="label label-light-primary font-weight-bold label-inline">new</span>
<?php endif; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php if(empty($tickets)): ?>
<div class="alert alert-primary" role="alert">
На данный момент у вас нет запросов.
</div>
<?php endif; ?>
</div>
</div>
<div id="kt_quick_actions" class="offcanvas offcanvas-right p-10">
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
<h3 class="font-weight-bold m-0">Авторизация
<small class="text-muted font-size-sm ml-2">История авторизации</small>
</h3>
<a href="javascript:;" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_actions_close">
<i class="ki ki-close icon-xs text-muted"></i>
</a>
</div>
<div class="offcanvas-content pr-5 mr-n5 scroll" style="height: auto; overflow: hidden;">
<?php foreach($visitors as $item):?>
<div class="d-flex align-items-center bg-light-<?php if($item['status'] == 0): ?>danger<?php elseif($item['status'] == 1): ?>success<?php elseif($item['status'] == 2): ?>warning<?php endif; ?> rounded p-5 mb-9">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="/main/acc" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">IP: <?php echo $item['ip'] ?></a>
<span class="text-muted font-weight-bold"><?php if($item['status'] == 0): ?>
Попытка входа в аккаунт -
<?php elseif($item['status'] == 1): ?>
Вход в аккаунт -
<?php elseif($item['status'] == 2): ?>
Выход с аккаунта -
<?php endif; ?>
<?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?></span>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($visitors)): ?>
<span class="m-widget14__desc">
<center>У вас нет активов.</center>
</span>
<?php endif; ?>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="hostin" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Пополнение баланса</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="samirForm" method="POST" class="form_0" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Введите сумму</label>
<input class="form-control" id="ammount" name="ammount" placeholder="100">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Пополнить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<div id="kt_scrolltop" class="scrolltop">
<span class="svg-icon">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24" />
<rect fill="#000000" opacity="0.3" x="11" y="10" width="2" height="10" rx="1" />
<path d="M6.70710678,12.7071068 C6.31658249,13.0976311 5.68341751,13.0976311 5.29289322,12.7071068 C4.90236893,12.3165825 4.90236893,11.6834175 5.29289322,11.2928932 L11.2928932,5.29289322 C11.6714722,4.91431428 12.2810586,4.90106866 12.6757246,5.26284586 L18.6757246,10.7628459 C19.0828436,11.1360383 19.1103465,11.7686056 18.7371541,12.1757246 C18.3639617,12.5828436 17.7313944,12.6103465 17.3242754,12.2371541 L12.0300757,7.38413782 L6.70710678,12.7071068 Z" fill="#000000" fill-rule="nonzero" />
</g>
</svg>
</span>
</div>
<script>var KTAppSettings = { "breakpoints": { "sm": 576, "md": 768, "lg": 992, "xl": 1200, "xxl": 1200 }, "colors": { "theme": { "base": { "white": "#ffffff", "primary": "#0BB783", "secondary": "#E5EAEE", "success": "#1BC5BD", "info": "#8950FC", "warning": "#FFA800", "danger": "#F64E60", "light": "#F3F6F9", "dark": "#212121" }, "light": { "white": "#ffffff", "primary": "#D7F9EF", "secondary": "#ECF0F3", "success": "#C9F7F5", "info": "#EEE5FF", "warning": "#FFF4DE", "danger": "#FFE2E5", "light": "#F3F6F9", "dark": "#D6D6E0" }, "inverse": { "white": "#ffffff", "primary": "#ffffff", "secondary": "#212121", "success": "#ffffff", "info": "#ffffff", "warning": "#ffffff", "danger": "#ffffff", "light": "#464E5F", "dark": "#ffffff" } }, "gray": { "gray-100": "#F3F6F9", "gray-200": "#ECF0F3", "gray-300": "#E5EAEE", "gray-400": "#D6D6E0", "gray-500": "#B5B5C3", "gray-600": "#80808F", "gray-700": "#464E5F", "gray-800": "#1B283F", "gray-900": "#212121" } }, "font-family": "Poppins" };</script>
<script src="/assets/js/plugins.bundle.js"></script>
<script src="/assets/js/prismjs.bundle.js"></script>
<script src="/assets/js/scripts.bundle.js"></script>
<script src="/application/public/js/main.js"></script>
<script src="/application/public/js/jquery.form.min.js"></script>
<script src="/assets/js/fullcalendar.bundle.js"></script>
<script src="/assets/js/widgets.js"></script>
<script>
$('#hostin').ajaxForm({
url: '/account/pay/<?php echo $oplatahostinpl ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
redirect(data.url);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php if(isset($error)): ?><script>toastr.error('<?php echo $error ?>');</script><?php endif; ?>
<?php if(isset($warning)): ?><script>toastr.warning('<?php echo $warning ?>');</script><?php endif; ?>
<?php if(isset($success)): ?><script>toastr.success('<?php echo $success ?>');</script><?php endif; ?>
</body>
</html>
@@ -0,0 +1,25 @@
<?php
/*
Copyright (c) 2018 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko (https://vk.com/id00v)
*/
?>
<script>
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "3500",
"extendedTimeOut": "3000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
</script>
@@ -0,0 +1,418 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title><?php echo $title ?> | <?php echo $description ?></title>
<meta name="description" content="<?php echo $description ?>">
<meta name="keywords" content="<?php echo $keywords ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/prismjs.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-header py-10 flex-column-auto">
</div>
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<form class="form w-xxl-550px rounded-lg p-20" novalidate="novalidate" id="kt_login_signin_form" method="POST">
<div class="form-group">
<label class="font-size-h6 font-weight-bolder text-dark">E-Mail</label>
<input class="form-control form-control-solid h-auto p-6 rounded-lg" type="text" name="email" placeholder="Введите свой E-Mail">
</div>
<div class="form-group">
<div class="d-flex justify-content-between mt-n5">
<label class="font-size-h6 font-weight-bolder text-dark pt-5">Пароль</label>
<a href="javascript:;" class="text-primary font-size-h6 font-weight-bolder text-hover-primary pt-5" id="kt_login_forgot">Забыли пароль?</a>
</div>
<input class="form-control form-control-solid h-auto p-6 rounded-lg" type="password" name="password" placeholder="Введите свой Пароль">
</div>
<?php if(@$captcha_enable == '1'): ?>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<center>
<div class="g-recaptcha" data-sitekey="<?php echo $recaptcha ?>" id="recaptcha1"></div>
</center>
</div>
<?php endif; ?>
<div class="pb-lg-0 pb-5">
<div class="btn-group btn-block" role="group">
<button type="submit" class="btn btn-primary btn-block font-weight-bolder font-size-h6">Войти</button>
<button href="javascript:;" onclick="VK.Auth.login(authInfo); return false;" class="btn btn-outline-primary"><i class="socicon-vkontakte icon-x2"></i></button>
</div>
</div>
<hr>
<center>
<span class="text-muted font-weight-bold font-size-h4">У вас ещё нет аккаунта?<br>
<a href="javascript:;" id="kt_login_signup" class="text-primary font-weight-bolder">Создать аккаунт</a></span>
</center>
</form>
</div>
<div class="login-form login-signup">
<form class="form w-xxl-550px rounded-lg p-20" novalidate="novalidate" id="kt_login_signup_form" method="GET">
<div class="form-group">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" type="text" id="ref" name="ref" disabled placeholder="<?php
if(isset($_GET['ref'])) {
echo ' Приглашение от: '.$user['user_firstname'].'('.$_GET['ref'].')';
}else echo ' Без приглашения';
?>">
</div>
<div class="form-group">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6"type="text" id="firstname" name="firstname" placeholder="Введите Ваше Имя">
</div>
<div class="form-group">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" type="text" id="lastname" name="lastname" placeholder="Введите Вашу Фамилию">
</div>
<div class="form-group">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" type="text" id="email" name="email" placeholder="Введите Ваш E-Mail">
</div>
<div class="form-group m-form__group">
<div class="row">
<div class="col">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" type="password" id="password" name="password" placeholder="Введите Пароль">
</div>
<div class="col">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" type="password" id="password2" name="password2" placeholder="Повторите Пароль">
</div>
</div>
</div>
<input type="hidden" name="ref" id="ref" value="<?php echo isset($_GET['ref']) ? htmlspecialchars($_GET['ref'], ENT_QUOTES, 'UTF-8') : '' ?>">
<?php if(@$captcha_enable == '1'): ?>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<center>
<div class="g-recaptcha" data-sitekey="<?php echo $recaptcha ?>" id="recaptcha2"></div>
</center>
</div>
<?php endif; ?>
<div class="form-group d-flex flex-wrap pb-lg-0 pb-3">
<div class="btn-group btn-block" role="group">
<button type="submit" class="btn btn-primary btn-block font-weight-bolder font-size-h6">Создать аккаунт</button>
<button type="button" id="kt_login_signup_cancel" class="btn btn-outline-primary"><i class="flaticon2-reply-1 icon-x2"></i></button>
</div>
</div>
</form>
</div>
<div class="login-form login-forgot">
<form class="form w-xxl-550px rounded-lg p-20" novalidate="novalidate" id="kt_login_forgot_form" method="POST">
<div class="form-group">
<input class="form-control form-control-solid h-auto p-6 rounded-lg font-size-h6" id="email" name="email" placeholder="Введите свой E-Mail">
</div>
<?php if(@$captcha_enable == '1'): ?>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<center>
<div class="g-recaptcha" data-sitekey="<?php echo $recaptcha ?>" id="recaptcha3"></div>
</center>
</div>
<?php endif; ?>
<div class="form-group d-flex flex-wrap pb-lg-0">
<div class="btn-group btn-block" role="group">
<button type="submit" class="btn btn-primary btn-block font-weight-bolder font-size-h6">Восстановить пароль</button>
<button type="button" id="kt_login_forgot_cancel" class="btn btn-outline-primary"><i class="flaticon2-reply-1 icon-x2"></i></button>
</div>
</div>
</form>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/hostinpl56.png)"></div>
</div>
</div>
<div class="login-footer py-10 flex-column-auto">
<div class="container d-flex flex-column flex-md-row align-items-center justify-content-center justify-content-md-between">
<div class="font-size-h6 font-weight-bolder order-2 order-md-1 py-2 py-md-0">
<span class="text-muted font-weight-bold mr-2">2026©</span>
<a href="https://redl.io" target="_blank" class="text-dark-50 text-hover-primary"><?php echo $description ?></a>
</div>
<div class="font-size-h5 font-weight-bolder order-1 order-md-2 py-2 py-md-0">
<a href="javascript:;" data-toggle="modal" data-target="#hostin_supports" class="text-primary">Обратная связь</a>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="hostin_supports" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Обратная связь</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<form id="sendForm" method="POST" style="padding:0px; margin:0px;">
<div class="form-group m-form__group">
<input class="form-control m-input" type="text" id="firstname" name="firstname" placeholder="Введите ваше имя..">
</div>
<div class="form-group m-form__group">
<input class="form-control m-input" id="lastname" name="lastname" placeholder="Введите вашу фамилию..">
</div>
<div class="form-group m-form__group">
<input class="form-control m-input" type="email" id="email" name="email" placeholder="Введите ваш email..">
</div>
<div class="form-group form-md-line-input">
<select class="form-control" id="subject" name="subject" size="1" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<option value="Вопроос">Вопрос</option>
<option value="Проблемы с сервером">Проблемы с сервером</option>
<option value="Проблемы с аккаунтом">Проблемы с аккаунтом</option>
<option value="Сотрудничество">Сотрудничество</option>
</select>
</div>
<div class="form-group form-md-line-input">
<textarea class="form-control" id="msg" name="msg" rows="3" placeholder="Сообщение..."></textarea>
</div>
<?php if(@$captcha_enable == '1'): ?>
<div class="recaptcha">
<center>
<div class="g-recaptcha" data-sitekey="<?php echo $recaptcha ?>" id="recaptcha4"></div>
</center>
</div>
<?php endif; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Отправить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<script src="/assets/js/plugins.bundle.js"></script>
<script src="/assets/js/prismjs.bundle.js"></script>
<script src="/assets/js/scripts.bundle.js"></script>
<script src="/application/public/js/jquery.form.min.js"></script>
<script src="/application/public/js/main.js"></script>
<script src="/assets/js/fullcalendar.bundle.js"></script>
<?php if(@$captcha_enable == '1'): ?><script src="https://www.google.com/recaptcha/api.js?onload=recaptha&render=explicit" async defer></script><?php endif; ?>
</body>
</html>
<script>
// Class Definition
var KTLogin = function() {
var _login;
var _showForm = function(form) {
var cls = 'login-' + form + '-on';
var form = 'kt_login_' + form + '_form';
_login.removeClass('login-forgot-on');
_login.removeClass('login-signin-on');
_login.removeClass('login-signup-on');
_login.addClass(cls);
KTUtil.animateClass(KTUtil.getById(form), 'animate__animated animate__backInUp');
}
var _handleSignInForm = function() {
// Handle forgot button
$('#kt_login_forgot').on('click', function (e) {
e.preventDefault();
_showForm('forgot');
});
// Handle signup
$('#kt_login_signup').on('click', function (e) {
e.preventDefault();
_showForm('signup');
});
}
var _handleSignUpForm = function(e) {
var form = KTUtil.getById('kt_login_signup_form');
// Handle cancel button
$('#kt_login_signup_cancel').on('click', function (e) {
e.preventDefault();
_showForm('signin');
});
}
var _handleForgotForm = function(e) {
// Handle cancel button
$('#kt_login_forgot_cancel').on('click', function (e) {
e.preventDefault();
_showForm('signin');
});
}
// Public Functions
return {
// public functions
init: function() {
_login = $('#kt_login');
_handleSignInForm();
_handleSignUpForm();
_handleForgotForm();
}
};
}();
// Class Initialization
jQuery(document).ready(function() {
KTLogin.init();
});
var captcha_login, captcha_register, captcha_restore, captcha_infobox;
var recaptha = function() {
captcha_login = grecaptcha.render('recaptcha1', {
'sitekey' : '<?php echo $recaptcha ?>',
'theme' : 'light'
});
captcha_register = grecaptcha.render('recaptcha2', {
'sitekey' : '<?php echo $recaptcha ?>',
'theme' : 'light'
});
captcha_restore = grecaptcha.render('recaptcha3', {
'sitekey' : '<?php echo $recaptcha ?>',
'theme' : 'light'
});
captcha_infobox = grecaptcha.render('recaptcha4', {
'sitekey' : '<?php echo $recaptcha ?>',
'theme' : 'light'
});
};
$('#sendForm').ajaxForm({
url: '/common/loginheader/ajax_infobox',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
window.grecaptcha && grecaptcha.reset(captcha_infobox);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#kt_login_signin_form').ajaxForm({
url: '/account/login/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
window.grecaptcha && grecaptcha.reset(captcha_login);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#kt_login_signup_form').ajaxForm({
url: '/common/loginheader/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
window.grecaptcha && grecaptcha.reset(captcha_register);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
if(data.user_activate){
setTimeout("redirect('/account/login/complete')", 1500);
}else{
setTimeout("redirect('/')", 1500);
}
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#kt_login_forgot_form').ajaxForm({
url: '/account/restore/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
window.grecaptcha && grecaptcha.reset(captcha_restore);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<script src="//vk.com/js/api/openapi.js" type="text/javascript"></script>
<script>
VK.init({
apiId: <?php echo $vk_id ?>
});
function authInfo(response) {
if(response.session) {
$.ajax({
url: "/account/login/vk",
type: "POST",
data: {auth: true, response: response},
success: function (data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'auth_error':
toastr.error(data.auth_error);
break;
case 'success':
toastr.info(data.success);
setTimeout("redirect('/')", 1500);
break;
}
}
});
}
}
</script>
<?php if(isset($error)): ?><script>toastr.error('<?php echo $error ?>');</script><?php endif; ?>
<?php if(isset($warning)): ?><script>toastr.warning('<?php echo $warning ?>');</script><?php endif; ?>
<?php if(isset($success)): ?><script>toastr.success('<?php echo $success ?>');</script><?php endif; ?>
@@ -0,0 +1,98 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<div class="card card-custom mb-3">
<div class="card-header card-header-tabs-line">
<div class="card-toolbar">
<ul class="nav nav-tabs nav-bold nav-tabs-line">
<li class="nav-item">
<a href="/servers/control/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "control"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-chalkboard-teacher"></i>
</span>
<span class="nav-text"><?php echo $server['location_ip'] ?>:<?php echo $server['server_port'] ?></span>
</a>
</li>
<?if($server['server_status'] == 1 or $server['server_status'] == 2 or $server['server_status'] == 7):?>
<li class="nav-item">
<a href="/servers/ftp/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "ftp"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-server"></i>
</span>
<span class="nav-text">FTP</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/mysql/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "mysql"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-database"></i>
</span>
<span class="nav-text">MySQL</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/console/index/<?php echo $server['server_id'] ?><?php if($server['game_query'] == "samp"): ?>?open=samp_1<?php endif; ?><?php if($server['game_query'] == "mtasa"): ?>?open=mtasa_1<?php endif; ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "console"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-terminal"></i>
</span>
<span class="nav-text">Console</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/config/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "config"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-edit"></i>
</span>
<span class="nav-text">Config</span>
</a>
</li>
<?php if($server['game_code'] == "mtasa" || $server['game_code'] == "samp" || $server['game_code'] == "crmp" || $server['game_code'] == "crmp037" || $server['game_code'] == "unit"): ?>
<li class="nav-item">
<a href="/servers/autoinstall/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "autoinstall"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-fast-forward"></i>
</span>
<span class="nav-text">Автоустановка</span>
</a>
</li>
<?php endif; ?>
<li class="nav-item">
<a href="/servers/firewall/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "firewall"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-user-shield"></i>
</span>
<span class="nav-text">Firewall</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/owner/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "owner"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fa fa-user-friends"></i>
</span>
<span class="nav-text">Друзья</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/tasks/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "tasks"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fas fa-clock"></i>
</span>
<span class="nav-text">Задачи</span>
</a>
</li>
<li class="nav-item">
<a href="/servers/repo/index/<?php echo $server['server_id'] ?>" class="nav-link <?php if($activesection == "servers" && $activeitem == "repo"): ?>active<?php endif; ?>">
<span class="nav-icon">
<i class="fas fa-folder"></i>
</span>
<span class="nav-text">Репозиторий</span>
</a>
</li>
<?endif;?>
</ul>
</div>
</div>
</div>
@@ -0,0 +1,46 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($users as $item): ?>
<? if (!($item['user_access_level'] == 3)) {
continue;
}?>
<div class="col-lg-6 mb-4">
<div class="card card-custom card-sticky card-shadowless bg-gray-100 mb-4">
<div class="card-body pt-7" style="padding: 0.5rem 2.25rem;">
<div class="d-flex align-items-center mb-6">
<div class="symbol symbol-35 flex-shrink-0 mr-3">
<img alt="Pic" src="<?php echo $url ?><?if($item['user_img']) {echo $item['user_img'];}else{ echo '/application/public/img/user.png';}?>">
</div>
<div class="d-flex align-items-center flex-wrap flex-row-fluid">
<div class="d-flex flex-column pr-5 flex-grow-1">
<a href="#" class="text-dark text-hover-primary font-weight-bolder font-size-lg"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?></a>
<span class="text-muted font-weight-bold">Администратор</span>
</div>
<span class="text-dark-50 font-weight-bold font-size-lg py-2">
<a href="https://vk.com/write<?php echo $item['user_vk_id'] ?>" target="blank" class="btn btn-icon btn-light-primary mr-2">
<i class="far fa-envelope"></i>
</a>
<a href="https://vk.com/id<?php echo $item['user_vk_id'] ?>" target="blank" class="btn btn-icon btn-light-primary mr-2">
<i class="fab fa-vk"></i>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
@@ -0,0 +1,139 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Если вы не пытались сменить E-Mail, проигнорируйте данное сообщение и смените пароль от аккаунта!<br>
Новый E-Mail: <?php echo $new_email ?><br>Ключ для смены E-Mail: <b><?php echo $key ?></b></p>
</center>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>main/acc/change_email_verifity/<?php echo $userid ?>/<?php echo $key ?>" target="_blank" style="color:white;" class="button">Сменить E-Mail</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,132 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Ваш пароль бы успешно сменен!</p>
<p>Данные для входа в систему:</p><b>
<p>E-Mail: <?php echo $email ?></p>
<p>Пароль: <?php echo $password ?></p></b></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,140 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Благодарим Вас за регистрацию на сайте игрового хостинга <?php echo $title ?>! Мы благодарны Вам за то, что Вы выбрали именно нашу хостинг-компанию!</p></center>
<p>Данные для входа в систему:</p>
<p>E-Mail: <?php echo $email ?> </p>
<p>Пароль: <?php echo $password ?> </p>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>" target="_blank" style="color:white;" class="button">Перейти на сайт</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,140 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Благодарим Вас за регистрацию на сайте игрового хостинга <?php echo $title ?>! Мы благодарны Вам за то, что Вы выбрали именно нашу хостинг-компанию!</p></center>
<p>Данные для входа в систему:</p>
<p>E-Mail: <?php echo $email ?> </p>
<p>Пароль: <?php echo $password ?> </p>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>account/login/activate?key=<?php echo $key ?>" target="_blank" style="color:white;" class="button">Активировать учетную запись</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,139 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Если вы не пытались сменить пароль, проигнорируйте данное сообщение!<br>
Запрос на восстановления пароля был выполнен с IP: <b><?php echo $ip ?></b></p>
<p><b>E-Mail: <?php echo $email ?></b></p></center>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $restorelink ?>" target="_blank" style="color:white;" class="button">Сменить пароль</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
+130
View File
@@ -0,0 +1,130 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>У нас есть новость для Вас:</p>
<p><?php echo $text ?></p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,130 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Вы получили ответ:</p>
<p><?php echo $text ?></p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,137 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас об удалении сервера #<?php echo $serverid ?>.</p></center>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>" target="_blank" style="color:white;" class="button">Перейти на сайт</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,129 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас о блокировке сервера #<?php echo $serverid ?>. Сервер будет удален через 3 дня после блокировки.</p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,129 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас о необходимости оплаты сервера #<?php echo $serverid ?>. До окончания оплаченного периода осталось <?php echo $days ?> дня.</p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,137 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Вами была подана заявка на добавление совладельца сервера, под USERID <?php echo $user_id ?> на сервер gs<?php echo $server_id ?></p></center>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>servers/owner/email_confirm/<?php echo $server_id ?>/<?php echo $owner_id ?>/<?php echo $token ?>" target="_blank" style="color:white;" class="button">Подтвердить</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,129 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас о том, что в тикете #<?php echo $ticketid ?> появилось новое сообщение.</p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,137 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас об удалении веб-хостинга #<?php echo $webid ?>.</p></center>
<table>
<tr>
<td align="center">
<p>
<a href="<?php echo $url ?>" target="_blank" style="color:white;" class="button">Перейти на сайт</a>
</p>
</td>
</tr>
</table>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,129 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас о блокировке веб-хостинга #<?php echo $webid ?>. Веб-хостинг будет удален через 3 дня после блокировки.</p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,129 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
* {
margin: 0;
padding: 0;
font-size: 100%;
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
line-height: 1.65; }
img {
max-width: 100%;
margin: 0 auto;
display: block; }
body,
.body-wrap {
width: 100% !important;
height: 100%;
background: #efefef;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none; }
a {
color: #8950FC;
text-decoration: none; }
.text-center {
text-align: center; }
.text-right {
text-align: right; }
.text-left {
text-align: left; }
.button {
display: inline-block;
color: white;
background: #8950FC;
border: solid #8950FC;
border-width: 10px 20px 8px;
font-weight: bold;
border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
line-height: 1.25; }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24px; }
h4 {
font-size: 20px; }
h5 {
font-size: 16px; }
p, ul, ol {
font-size: 16px;
font-weight: normal;
margin-bottom: 20px; }
.container {
display: block !important;
clear: both !important;
margin: 0 auto !important;
max-width: 680px !important; }
.container table {
width: 100% !important;
border-collapse: collapse; }
.container .masthead {
padding: 40px 0;
background: #8950FC;
color: white; }
.container .masthead h1 {
margin: 0 auto !important;
max-width: 90%;
text-transform: uppercase; }
.container .content {
background: white;
padding: 30px 35px; }
.container .content.footer {
background: none; }
.container .content.footer p {
margin-bottom: 0;
color: #888;
text-align: center;
font-size: 14px; }
.container .content.footer a {
color: #888;
text-decoration: none;
font-weight: bold; }
</style>
</head>
<body>
<table class="body-wrap">
<tr>
<td class="container">
<table>
<tr>
<td align="center" class="masthead">
<h1>REDL.IO</h1>
<p style="margin:4px 0 0;font-size:13px;color:#ffffff;">Хостинг с искусственным интеллектом</p>
</td>
</tr>
<tr>
<td class="content">
<center><h2>Здравствуйте, <?php echo $lastname ?> <?php echo $firstname ?>!</h2>
<p>Уведомляем Вас о необходимости оплаты веб-хостинга #<?php echo $webid ?>. До окончания оплаченного периода осталось <?php echo $days ?> дня.</p></center>
<br>
<center><p><em>С уважением, Администрация REDL.IO!</em></p></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
+577
View File
@@ -0,0 +1,577 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4">
<div class="card card-custom gutter-b">
<div class="card-body">
<div class="text-center mb-1">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label" style="background-image:url('<?php echo $url ?><?php echo $user_img ?>')"></div>
<i class="symbol-badge symbol-badge-bottom bg-success"></i>
</div>
<h4 class="font-weight-bold my-2"><?php echo $user_firstname ?> <?php echo $user_lastname ?></h4>
<div class="text-muted mb-2">Вы с нами: <?php echo $user_date_reg ?> дней</div>
</div>
<div class="mb-1 text-center">
<a href="javascript:;" data-toggle="modal" data-target="#loadhostin" class="btn btn-icon btn-sm btn-default btn-hover-light-primary mr-1">
<i class="fas fa-camera icon-md"></i>
</a>
<a href="javascript:;" data-toggle="modal" data-target="#loadvk" class="btn btn-icon btn-sm btn-default btn-hover-light-primary mr-1">
<i class="fab fa-vk icon-md"></i>
</a>
<a href="javascript:;" data-toggle="modal" data-target="#loadreg" class="btn btn-icon btn-sm btn-default btn-hover-light-primary">
<i class="fas fa-cog icon-md"></i>
</a>
<a href="javascript:;" data-toggle="modal" data-target="#loademail" class="btn btn-icon btn-sm btn-default btn-hover-light-primary">
<i class="fas fa-mail-bulk"></i>
</a>
</div>
<div class="separator separator-dashed mt-8 mb-0"></div>
</div>
<ul class="navi">
<li class="navi-item">
<a class="navi-link">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fab fa-vk text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bold">VK</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline"><?php if(!$users['user_vk_id']): ?>Не привязан<?php else: ?><?php echo $users['user_vk_id'] ?><?php endif; ?></span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="mailto:<?php echo $user['user_email'] ?>">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fas fa-envelope-open-text text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bold">Email</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline"><?php echo $user['user_email'] ?></span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="/account/bonus">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fas fa-smile-beam text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bolder">Бонусы</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline"><?echo $users['bonuses']?></span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="/servers">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fas fa-server text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bolder">Сервера</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline">
<?$serverov = 0; foreach($servers as $item): ?>
<? $serverov++; ?>
<?endforeach;echo $serverov; ?>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="/tickets">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fas fa-headset text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bolder">Тикеты</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline">
<?$ticketov = 0; foreach($tickets as $item): ?>
<? $ticketov++; ?>
<?endforeach;echo $ticketov; ?>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="/account/invoices">
<span class="symbol symbol-30 mr-3">
<span class="symbol-label"><i class="fas fa-piggy-bank text-primary"></i></span>
</span>
<div class="navi-text">
<span class="d-block font-weight-bolder">Баланс</span>
</div>
<span class="label label-light-primary font-weight-bold label-inline"><?php echo $user_balance ?></span>
</a>
</li>
</ul>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom">
<div class="card-header card-header-tabs-line nav-tabs-line-3x">
<div class="card-toolbar">
<ul class="nav nav-tabs nav-bold nav-tabs-line nav-tabs-line-3x">
<li class="nav-item mr-3">
<a class="nav-link active" data-toggle="tab" href="#partner">
<span class="nav-icon">
<i class="fas fa-people-arrows"></i>
</span>
<span class="nav-text font-size-lg">Партнерская программа</span>
</a>
</li>
<li class="nav-item mr-3">
<a class="nav-link" data-toggle="tab" href="#waste">
<span class="nav-icon">
<i class="fas fa-retweet"></i>
</span>
<span class="nav-text font-size-lg">Операции</span>
</a>
</li>
<li class="nav-item mr-3">
<a class="nav-link" data-toggle="tab" href="#visitors">
<span class="nav-icon">
<i class="fas fa-door-open"></i>
</span>
<span class="nav-text font-size-lg">Логи авторизации</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#auths">
<span class="nav-icon">
<i class="fas fa-chalkboard-teacher"></i>
</span>
<span class="nav-text font-size-lg">Сеансы</span>
</a>
</li>
</ul>
</div>
</div>
<div class="card-body">
<div class="tab-content mt-5">
<div class="tab-pane fade show active" id="partner" role="tabpanel">
<div class="alert alert-primary mb-5 p-5" role="alert">
<h4 class="alert-heading">Партнерская программа</h4>
<p>У вас есть возможность заработать вместе с нами, приглашая друзей.</p>
<div class="border-bottom border-white opacity-20 mb-5"></div>
<p class="mb-0">Всего заработано: <?echo $users['rmoney']; ?> руб.</p>
</div>
<div class="alert alert-primary mb-5 p-5" role="alert">
<div class="input-group">
<input type="text" class="form-control" id="hostinreff" placeholder="http://<?echo $_SERVER['SERVER_NAME']?>/account/login?ref=<?php echo $user_id ?>" value="http://<?echo $_SERVER['SERVER_NAME']?>/account/login?ref=<?php echo $user_id ?>">
<div class="input-group-append" style="z-index: 0;">
<a class="btn btn-light-primary btn-icon" data-clipboard="true" data-clipboard-target="#hostinreff"><i class="flaticon2-document"></i></a>
</div>
</div>
</div>
<?php foreach($userg as $item):?>
<? if (!($item['ref'] == $user_id)) { // пропуск нечетных чисел
continue;
}?>
<div class="card card-custom bg-gray-100 mb-4">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?><small class="text-muted font-size-sm ml-2"><?php echo $item['user_date_reg'] ?></small></h3>
<div class="card-toolbar">
<span class="badge badge-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="ID">ID <?php echo $item['user_id'] ?></span>
</div>
</div>
</div>
<?php endforeach; ?>
<?$ust = 0;
foreach($userg as $item): ?>
<? if (!($item['ref'] == $user_id)) { // пропуск нечетных чисел
continue;
}?>
<? $ust++; ?>
<?endforeach; ?>
<?php if(empty($ust)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент у вас нет приглашенных друзей.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
<div class="tab-pane fade" id="waste" role="tabpanel">
<?php foreach($waste as $item): ?>
<div class="card card-custom bg-gray-100 mb-4">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><?php echo $item['waste_usluga'] ?></h3>
<div class="card-toolbar">
<?php if($item['waste_status'] == 1): ?>
<span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>">- <?php echo $item['waste_ammount'] ?> руб</span>
<?php elseif($item['waste_status'] == 0): ?>
<span class="badge badge-success" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['waste_date_add'])) ?>">+ <?php echo $item['waste_ammount'] ?> руб</span>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($waste)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент у вас нет операций со счетом.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
<div class="tab-pane fade" id="visitors" role="tabpanel">
<?php foreach($visitors as $item):?>
<div class="card card-custom bg-gray-100 mb-4">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><?php echo $item['country'] ?>(<?php echo $item['code'] ?>) <?php echo $item['city'] ?><small class="text-muted font-size-sm ml-2"><?php echo $item['ip'] ?></small></h3>
<div class="card-toolbar">
<?php if($item['status'] == 0): ?>
<span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?>">Ошибка входа (пароль <?php echo $item['password'] ?>)</span>
<?php elseif($item['status'] == 1): ?>
<span class="badge badge-success" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?>">Вход в систему</span>
<?php elseif($item['status'] == 2): ?>
<span class="badge badge-warning" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата операции: <?php echo date("d.m.Y в H:i", strtotime($item['datetime'])) ?>">Выход из системы</span>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="tab-pane fade" id="auths" role="tabpanel">
<?php foreach($auths as $item): ?>
<div class="card card-custom bg-gray-100 mb-4" id="session-<?php echo $item['auth_id'] ?>">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><span class="card-icon">
<a href="javascript:;" class="btn btn-icon btn-light-primary btn-sm" data-toggle="tooltip" data-placement="right" title="" data-original-title="<?php if($item['auth_type'] == "Vk"): ?>Тип сеанса: ВКонтакте<?php elseif($item['auth_type'] == "Password"): ?>Тип сеанса: E-mail/Пароль<?php else: ?>Тип сеанса: Другой<?php endif; ?>">
<i class="fa fa-info-circle"></i>
</a></span><?php if($item['auth_key'] == @$_COOKIE['uid']): ?>Текущий<?php else: ?>Активный<?php endif; ?><small class="text-muted font-size-sm ml-2"><?php echo $item['user_ip'] ?></small>
</h3>
<div class="card-toolbar">
<span class="badge badge-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Дата создания" style="margin-right: .25rem"><?php echo date("d.m.Y в H:i", strtotime($item['auth_date_add'])) ?></span>
<span class="badge badge-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Последняя активность" style="margin-right: .25rem"><?php echo date("d.m.Y в H:i", strtotime($item['user_last_activity'])) ?></span>
<a href="javascript:;" onClick="sendAction('closeSession',<?php echo $item['auth_id'] ?>)" class="btn btn-icon btn-light-danger btn-xs" data-toggle="tooltip" data-placement="right" title="" data-original-title="Завершить сеанс">
<i class="fa fa-times"></i>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="loadvk" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Редактирование профиля VK</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<div class="alert alert-primary mb-5 p-5" role="alert">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fab fa-vk text-primary"></i>
</span>
</div>
<?php if(!$users['user_vk_id']): ?>
<input type="text" class="form-control" disabled="disabled" value="Профиль не привязан">
<div class="input-group-append">
<a href="javascript:;" onclick="VK.Auth.login(authInfo); return false;" class="btn btn-light-primary btn-icon" data-toggle="tooltip" data-placement="right" title="" data-original-title="Привязать"><i class="fas fa-user-plus"></i></a>
</div>
<?php else:?>
<input type="text" class="form-control" disabled="disabled" value="<?php echo $users['user_vk_id'] ?>">
<div class="input-group-append">
<a href="javascript:;" onClick="sendAction('unsetVk', null)" class="btn btn-light-primary btn-icon" data-toggle="tooltip" data-placement="right" title="" data-original-title="Отвязать"><i class="fas fa-user-times"></i></a>
</div>
<?php endif;?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<!--begin::Modal-->
<div class="modal fade" id="loadhostin" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Загрузка аватара</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<form id="imgForm" method="POST" style="padding:0px; margin:0px;">
<div class="alert alert-primary mb-5 p-5" role="alert">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fas fa-camera text-primary"></i>
</span>
</div>
<input class="form-control" id="file" name="userfile" type="file">
<div class="input-group-append">
<button type="submit" class="btn btn-light-primary btn-icon"><i class="fa fa-download"></i></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<!--begin::Modal-->
<div class="modal fade" id="loadreg" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Настройки профиля<small class="text-muted font-size-sm ml-2">Ваш ID <?php echo $user_id ?></small></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="editForm" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Ваше Имя</label>
<input class="form-control" id="firstname" name="firstname" placeholder="Введите ваше имя" value="<?php echo $user['firstname'] ?>">
</div>
<div class="form-group">
<label>Ваша Фамилия</label>
<input class="form-control" id="lastname" name="lastname" placeholder="Введите вашу фамилию" value="<?php echo $user['lastname'] ?>">
</div>
<div class="form-group">
<label>Ваш E-mail</label>
<input class="form-control" id="user_email" name="user_email" placeholder="Ваш E-mail" value="<?php echo $user['user_email'] ?>" disabled>
</div>
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onChange="togglePassword()">
<span></span>
Сменить пароль
</label>
</div>
</div>
</div>
<div class="form-group">
<label>Пароль</label>
<input class="form-control" id="password" name="password" placeholder="Пароль" disabled>
</div>
<div class="form-group">
<label>Повторите пароль</label>
<input class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Сохранить</button>
</div>
</form>
</div>
</div>
</div>
<!--begin::Modal-->
<!--begin::Modal-->
<div class="modal fade" id="loademail" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Смена E-Mail <small class="text-muted font-size-sm ml-2">Ваш E-Mail <?php echo $user['user_email'] ?></small></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="editFormEmail" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group">
<label>Новый E-Mail</label>
<input class="form-control" id="email" name="email" placeholder="Введите новый E-mail">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Отправить</button>
</div>
</form>
</div>
</div>
</div>
<!--begin::Modal-->
<script src="/assets/js/clipboard.js" type="text/javascript"></script>
<script src="//vk.com/js/api/openapi.js" type="text/javascript"></script>
<script>
function sendAction(action, auth_id) {
switch(action) {
case "closeSession":
{
if(!confirm("Вы действительно хотите закончить данный сеанс?")) return;
break;
}
}
$.ajax({
url: '/main/acc/action/'+action,
type: "POST",
data: {auth_id: auth_id},
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
$("div[id=session-"+auth_id+']').remove();
toastr.success(data.success);
break;
}
}
});
}
$('#editForm').ajaxForm({
url: '/main/acc/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
$('button[type=submit]').prop('disabled', false);
toastr.error(data.error);
break;
case 'success':
$('button[type=submit]').prop('disabled', false);
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#editFormEmail').ajaxForm({
url: '/main/acc/change_email',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
$('button[type=submit]').prop('disabled', false);
toastr.error(data.error);
break;
case 'success':
$('button[type=submit]').prop('disabled', false);
toastr.success(data.success);
setTimeout("reload()", 2250);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$('#imgForm').ajaxForm({
url: '/main/acc/img',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
$('button[type=submit]').prop('disabled', false);
toastr.error(data.error);
$("#file").val("");
break;
case 'success':
$('button[type=submit]').prop('disabled', false);
toastr.success(data.success);
$('#loadhostin').modal('hide');
$("#file").val("");
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<script>
VK.init({
apiId: <?php echo $vk_id ?>
});
function authInfo(response) {
if(response.session) {
$.ajax({
url: "/main/acc/action/setVk",
type: "POST",
data: {auth: true, response: response},
success: function (data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
case 'info':
toastr.info(data.info);
setTimeout("reload()", 1500);
break;
}
}
});
}
}
</script>
<?php echo $footer ?>
+41
View File
@@ -0,0 +1,41 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title><?php echo $error ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<div class="form rounded-lg p-3">
<div class="alert alert-primary text-center h5" role="alert"><?php echo $error ?></div>
<hr>
<center>
<span class="text-muted font-weight-bold font-size-h4">Упс... Что-то пошло не так.<br>
<a href="/" id="kt_login_signup" class="text-primary font-weight-bolder">Вернутся на главную</a></span>
</center>
</div>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/error.gif)"></div>
</div>
</div>
</div>
</div>
</body>
</html>
+99
View File
@@ -0,0 +1,99 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko (https://vk.com/id00v)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-lg-6 col-xl-6 mb-5">
<div class="card card-custom wave wave-animate-slow mb-8 mb-lg-0">
<div class="card-body">
<div class="d-flex align-items-center p-5">
<div class="mr-6">
<span class="svg-icon svg-icon-primary svg-icon-4x">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path d="M3,4 L20,4 C20.5522847,4 21,4.44771525 21,5 L21,7 C21,7.55228475 20.5522847,8 20,8 L3,8 C2.44771525,8 2,7.55228475 2,7 L2,5 C2,4.44771525 2.44771525,4 3,4 Z M10,10 L20,10 C20.5522847,10 21,10.4477153 21,11 L21,19 C21,19.5522847 20.5522847,20 20,20 L10,20 C9.44771525,20 9,19.5522847 9,19 L9,11 C9,10.4477153 9.44771525,10 10,10 Z" fill="#000000"/>
<rect fill="#000000" opacity="0.3" x="2" y="10" width="5" height="10" rx="1"/>
</g>
</svg>
</span>
</div>
<div class="d-flex flex-column">
<a href="#" class="text-dark text-hover-primary font-weight-bold font-size-h4 mb-3">Удобная панель управления</a>
<div class="text-dark-75">С нашей панелью управления, управлять сервером легко и просто с ней справится как опытный пользователь так и новичок.</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-xl-6 mb-5">
<div class="card card-custom wave wave-animate-slow mb-8 mb-lg-0">
<div class="card-body">
<div class="d-flex align-items-center p-5">
<div class="mr-6">
<span class="svg-icon svg-icon-primary svg-icon-4x">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M14.4862 18L12.7975 21.0566C12.5304 21.54 11.922 21.7153 11.4386 21.4483C11.2977 21.3704 11.1777 21.2597 11.0887 21.1255L9.01653 18H5C3.34315 18 2 16.6569 2 15V6C2 4.34315 3.34315 3 5 3H19C20.6569 3 22 4.34315 22 6V15C22 16.6569 20.6569 18 19 18H14.4862Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H6C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7ZM6 11H11C11.5523 11 12 11.4477 12 12C12 12.5523 11.5523 13 11 13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11Z" fill="black"/>
</g>
</svg>
</span>
</div>
<div class="d-flex flex-column">
<a href="#" class="text-dark text-hover-primary font-weight-bold font-size-h4 mb-3">Техническая поддержка</a>
<div class="text-dark-75">Наша техническая поддержка работает "7" дней в неделю "24" часа в сутки "365" дней в году. Мы готовы помочь вам в любое время суток.</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-xl-12 mb-5">
<div class="timeline timeline-justified timeline-4">
<div class="timeline-items">
<?php foreach($news as $item): ?>
<div class="timeline-item">
<div class="timeline-badge">
<div class="bg-primary"></div>
</div>
<div class="timeline-label text-primary">
<span class="text-primary font-weight-bold"><?php echo date("d.m.Y в H:i", strtotime($item['news_date_add'])) ?></span>
</div>
<div class="timeline-content">
<?php echo $item['news_title'] ?>
<br>
<a href="/news/view/index/<?echo $item['news_id']?>" class="text-hover-danger">Читать полностью</a>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($news)): ?>
<div class="timeline-item">
<div class="timeline-badge">
<div class="bg-primary"></div>
</div>
<div class="timeline-label text-primary">
<span class="text-primary font-weight-bold">News</span>
</div>
<div class="timeline-content">
К сожалению, на данный момент на хостинге нет новостей
<br>
<a href="https://redl.io" target="_blank" class="text-hover-danger">Новости и статусы на REDL.IO</a>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
+103
View File
@@ -0,0 +1,103 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php foreach($news as $item): ?>
<div class="card card-custom mb-4">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M8,3 L8,3.5 C8,4.32842712 8.67157288,5 9.5,5 L14.5,5 C15.3284271,5 16,4.32842712 16,3.5 L16,3 L18,3 C19.1045695,3 20,3.8954305 20,5 L20,21 C20,22.1045695 19.1045695,23 18,23 L6,23 C4.8954305,23 4,22.1045695 4,21 L4,5 C4,3.8954305 4.8954305,3 6,3 L8,3 Z" fill="#000000" opacity="0.3"></path>
<path d="M11,2 C11,1.44771525 11.4477153,1 12,1 C12.5522847,1 13,1.44771525 13,2 L14.5,2 C14.7761424,2 15,2.22385763 15,2.5 L15,3.5 C15,3.77614237 14.7761424,4 14.5,4 L9.5,4 C9.22385763,4 9,3.77614237 9,3.5 L9,2.5 C9,2.22385763 9.22385763,2 9.5,2 L11,2 Z" fill="#000000"></path>
<rect fill="#000000" opacity="0.3" x="7" y="10" width="5" height="2" rx="1"></rect>
<rect fill="#000000" opacity="0.3" x="7" y="14" width="9" height="2" rx="1"></rect>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="/news/view/index/<?echo $item['news_id']?>" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder"><?php echo $item['news_title'] ?></a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5" data-toggle="tooltip" title="" data-placement="right" data-original-title="Дата публикации">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M12,22 C7.02943725,22 3,17.9705627 3,13 C3,8.02943725 7.02943725,4 12,4 C16.9705627,4 21,8.02943725 21,13 C21,17.9705627 16.9705627,22 12,22 Z" fill="#000000" opacity="0.3"></path>
<path d="M11.9630156,7.5 L12.0475062,7.5 C12.3043819,7.5 12.5194647,7.69464724 12.5450248,7.95024814 L13,12.5 L16.2480695,14.3560397 C16.403857,14.4450611 16.5,14.6107328 16.5,14.7901613 L16.5,15 C16.5,15.2109164 16.3290185,15.3818979 16.1181021,15.3818979 C16.0841582,15.3818979 16.0503659,15.3773725 16.0176181,15.3684413 L11.3986612,14.1087258 C11.1672824,14.0456225 11.0132986,13.8271186 11.0316926,13.5879956 L11.4644883,7.96165175 C11.4845267,7.70115317 11.7017474,7.5 11.9630156,7.5 Z" fill="#000000"></path>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold"><?php echo date("d.m.Y в H:i", strtotime($item['news_date_add'])) ?></span>
</div>
<div class="d-flex align-items-center" data-toggle="tooltip" title="" data-placement="right" data-original-title="Просмотров">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M5.5,4 L9.5,4 C10.3284271,4 11,4.67157288 11,5.5 L11,6.5 C11,7.32842712 10.3284271,8 9.5,8 L5.5,8 C4.67157288,8 4,7.32842712 4,6.5 L4,5.5 C4,4.67157288 4.67157288,4 5.5,4 Z M14.5,16 L18.5,16 C19.3284271,16 20,16.6715729 20,17.5 L20,18.5 C20,19.3284271 19.3284271,20 18.5,20 L14.5,20 C13.6715729,20 13,19.3284271 13,18.5 L13,17.5 C13,16.6715729 13.6715729,16 14.5,16 Z" fill="#000000"></path>
<path d="M5.5,10 L9.5,10 C10.3284271,10 11,10.6715729 11,11.5 L11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L5.5,20 C4.67157288,20 4,19.3284271 4,18.5 L4,11.5 C4,10.6715729 4.67157288,10 5.5,10 Z M14.5,4 L18.5,4 C19.3284271,4 20,4.67157288 20,5.5 L20,12.5 C20,13.3284271 19.3284271,14 18.5,14 L14.5,14 C13.6715729,14 13,13.3284271 13,12.5 L13,5.5 C13,4.67157288 13.6715729,4 14.5,4 Z" fill="#000000" opacity="0.3"></path>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold"><?php echo $item['look']?></span>
</div>
</div>
</div>
<div class="dropdown dropdown-inline ml-2" data-toggle="tooltip" title="" data-placement="left" data-original-title="Перейти">
<a href="/news/view/index/<?echo $item['news_id']?>" class="btn btn-hover-light-primary btn-sm btn-icon">
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
<div class="pt-3">
<p class="text-dark-75 font-size-lg font-weight-normal pt-5 mb-2"><?
$string = nl2br($item['news_text']);
$string = strip_tags($string);
$string = substr($string, 0, 250);
$string = rtrim($string, "!,.-");
$string = substr($string, 0, strrpos($string, ' '));
echo $string."… ";
?></p>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($news)): ?>
<div class="col-xl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">К сожалению, на данный момент на хостинге нет новостей.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
<?php echo $pagination ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
+150
View File
@@ -0,0 +1,150 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom mb-4">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-45 symbol-light mr-5">
<span class="symbol-label">
<span class="svg-icon svg-icon-lg svg-icon-primary">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M8,3 L8,3.5 C8,4.32842712 8.67157288,5 9.5,5 L14.5,5 C15.3284271,5 16,4.32842712 16,3.5 L16,3 L18,3 C19.1045695,3 20,3.8954305 20,5 L20,21 C20,22.1045695 19.1045695,23 18,23 L6,23 C4.8954305,23 4,22.1045695 4,21 L4,5 C4,3.8954305 4.8954305,3 6,3 L8,3 Z" fill="#000000" opacity="0.3"></path>
<path d="M11,2 C11,1.44771525 11.4477153,1 12,1 C12.5522847,1 13,1.44771525 13,2 L14.5,2 C14.7761424,2 15,2.22385763 15,2.5 L15,3.5 C15,3.77614237 14.7761424,4 14.5,4 L9.5,4 C9.22385763,4 9,3.77614237 9,3.5 L9,2.5 C9,2.22385763 9.22385763,2 9.5,2 L11,2 Z" fill="#000000"></path>
<rect fill="#000000" opacity="0.3" x="7" y="10" width="5" height="2" rx="1"></rect>
<rect fill="#000000" opacity="0.3" x="7" y="14" width="9" height="2" rx="1"></rect>
</g>
</svg>
</span>
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="javascript:;" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder"><?echo $new['news_title']?></a>
<div class="d-flex">
<div class="d-flex align-items-center pr-5" data-toggle="tooltip" title="" data-placement="right" data-original-title="Дата публикации">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M12,22 C7.02943725,22 3,17.9705627 3,13 C3,8.02943725 7.02943725,4 12,4 C16.9705627,4 21,8.02943725 21,13 C21,17.9705627 16.9705627,22 12,22 Z" fill="#000000" opacity="0.3"></path>
<path d="M11.9630156,7.5 L12.0475062,7.5 C12.3043819,7.5 12.5194647,7.69464724 12.5450248,7.95024814 L13,12.5 L16.2480695,14.3560397 C16.403857,14.4450611 16.5,14.6107328 16.5,14.7901613 L16.5,15 C16.5,15.2109164 16.3290185,15.3818979 16.1181021,15.3818979 C16.0841582,15.3818979 16.0503659,15.3773725 16.0176181,15.3684413 L11.3986612,14.1087258 C11.1672824,14.0456225 11.0132986,13.8271186 11.0316926,13.5879956 L11.4644883,7.96165175 C11.4845267,7.70115317 11.7017474,7.5 11.9630156,7.5 Z" fill="#000000"></path>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold"><?echo $new['news_date_add']?></span>
</div>
<div class="d-flex align-items-center" data-toggle="tooltip" title="" data-placement="right" data-original-title="Просмотров">
<span class="svg-icon svg-icon-md svg-icon-primary pr-1">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M5.5,4 L9.5,4 C10.3284271,4 11,4.67157288 11,5.5 L11,6.5 C11,7.32842712 10.3284271,8 9.5,8 L5.5,8 C4.67157288,8 4,7.32842712 4,6.5 L4,5.5 C4,4.67157288 4.67157288,4 5.5,4 Z M14.5,16 L18.5,16 C19.3284271,16 20,16.6715729 20,17.5 L20,18.5 C20,19.3284271 19.3284271,20 18.5,20 L14.5,20 C13.6715729,20 13,19.3284271 13,18.5 L13,17.5 C13,16.6715729 13.6715729,16 14.5,16 Z" fill="#000000"></path>
<path d="M5.5,10 L9.5,10 C10.3284271,10 11,10.6715729 11,11.5 L11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L5.5,20 C4.67157288,20 4,19.3284271 4,18.5 L4,11.5 C4,10.6715729 4.67157288,10 5.5,10 Z M14.5,4 L18.5,4 C19.3284271,4 20,4.67157288 20,5.5 L20,12.5 C20,13.3284271 19.3284271,14 18.5,14 L14.5,14 C13.6715729,14 13,13.3284271 13,12.5 L13,5.5 C13,4.67157288 13.6715729,4 14.5,4 Z" fill="#000000" opacity="0.3"></path>
</g>
</svg>
</span>
<span class="text-muted font-weight-bold"><?echo $new['look']?></span>
</div>
</div>
</div>
</div>
<div class="pt-3">
<p class="text-dark-75 font-size-lg font-weight-normal pt-5 mb-2"><?echo nl2br($new['news_text'])?></p>
</div>
</div>
</div>
<form id="sendForm" action="" method="POST">
<div class="card card-custom mb-4">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-40 mr-5">
<span class="symbol-label">
<img src="<?php echo $url ?><?if($item['user_img']) {echo $item['user_img'];}else{ echo '/application/public/img/user.png';}?>" class="h-75" alt="">
</span>
</div>
<span class="text-muted font-weight-bold font-size-lg">Хочешь оставить свой комментарий?</span>
</div>
<hr>
<div class="input-group">
<input type="text" class="form-control" type="text" id="text" name="text" placeholder="Ваш комментарий...">
<div class="input-group-append">
<button class="btn btn-primary btn-icon" type="submit"><i class="flaticon2-paper-plane"></i></button>
</div>
</div>
</div>
</div>
<?php foreach($messages as $item): ?>
<div class="card card-custom mb-4">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="symbol symbol-50 mr-5">
<span class="symbol-label">
<img src="<?php echo $url ?><?if($item['user_img']) {echo $item['user_img'];}else{ echo '/application/public/img/user.png';}?>" class="h-75" alt="">
</span>
</div>
<div class="d-flex flex-column flex-grow-1">
<a href="javascript:;" class="text-dark-75 text-hover-primary mb-1 font-size-lg font-weight-bolder"><?php if($item['user_firstname']){echo $item['user_firstname'];} else {echo 'Гость';} ?> <?php echo $item['user_lastname'] ?></a>
<span class="text-muted font-weight-bold"><?php echo nl2br($item['news_message']) ?></span>
</div>
<span class="text-muted font-weight-normal font-size-sm"><?php echo date("d.m.Y в H:i", strtotime($item['news_message_date_add'])) ?></span>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($messages)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">К сожалению, на данный момент нет комментариев.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$('#sendForm').ajaxForm({
url: '/news/view/ajax/<?php echo $new['news_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
$('#text').val('');
setTimeout("reload()", 1500);
ajax_url("/news/view/"+data);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>
+153
View File
@@ -0,0 +1,153 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko (https://vk.com/id00v)
*/
?>
<?php echo $header ?>
<div class="kt-container kt-container--fluid kt-grid__item kt-grid__item--fluid" style="margin: 15px 0;">
<div class="kt-portlet">
<div class="kt-portlet__head">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title">
<?echo $new['news_title']?>
<small><?echo $new['look']?> Просмотров.</small>
</h3>
</div>
<div class="kt-portlet__head-toolbar">
<?echo $new['news_date_add']?>
</div>
</div>
<div class="kt-portlet__body">
<div class="kt-portlet__content">
<p>
<?echo nl2br($new['news_text'])?>
</p>
</div>
</div>
</div>
<form id="sendForm" action="" method="POST">
<div class="kt-portlet">
<div class="kt-portlet__head">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title">
Оставить комментарий
</h3>
</div>
</div>
<div class="kt-portlet__body">
<div class="media-body">
<textarea class="form-control todo-taskbody-taskdesc" rows="4" name="text" id="text"></textarea>
</div>
<hr>
<button type="submit" class="btn btn-brand m-btn m-btn--air btn-outline btn-block sbold uppercase">Оставить комментарий</button>
</div>
</div>
<div class="kt-portlet kt-portlet--height-fluid">
<div class="kt-portlet__head">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title">Комментарии</h3>
</div>
</div>
<div class="kt-portlet__body">
<div class="kt-widget3">
<?php foreach($messages as $item): ?>
<div class="kt-widget3__item">
<div class="kt-widget3__header">
<div class="kt-widget3__user-img">
<img class="kt-widget3__img" src="<?php echo $url ?><?if($item['user_img']) {echo $item['user_img'];}else{ echo '/application/public/img/user.png';}?>" alt="">
</div>
<div class="kt-widget3__info">
<a href="#" class="kt-widget3__username">
<?php if($item['user_firstname']){echo $item['user_firstname'];} else {echo 'Гость';} ?> <?php echo $item['user_lastname'] ?>
</a><br>
<span class="kt-widget3__time"><?php echo date("d.m.Y в H:i", strtotime($item['news_message_date_add'])) ?></span>
</div>
<span class="kt-widget3__status kt-font-info">
<?php if($item['user_access_level'] == 1): ?>
Пользователь
<?php endif; ?>
<?php if($item['user_access_level'] == 2): ?>
Тех.поддержка
<?php endif; ?>
<?php if($item['user_access_level'] == 3): ?>
Администратор
<?php endif; ?>
</span>
</div>
<div class="kt-widget3__body">
<p class="kt-widget3__text"><?php echo nl2br($item['news_message']) ?></p>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($messages)): ?>
<div class="alert alert-danger">
На данный момент нет коментариев.
</div>
<?php endif; ?>
</div>
</div>
</div>
</form>
</div>
<script>
$('#sendForm').ajaxForm({
url: '/news/view/ajax/<?php echo $new['news_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
$('#text').val('');
setTimeout("reload()", 1500);
ajax_url("/news/view/"+data);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});</script>
<script type="text/javascript">
$(function(){
$('#form_pr').submit(function(e){
//отменяем стандартное действие при отправке формы
e.preventDefault();
//берем из формы метод передачи данных
var m_method=$(this).attr('method');
//получаем данные, введенные пользователем в формате input1=value1&input2=value2...,то есть в стандартном формате передачи данных формы
var m_data=$(this).serialize();
$.ajax({
type: m_method,
url: '/news/view/ajax/<?php echo $new['news_id'] ?>',
data: m_data,
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
$('#text').val('');
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
});
});
</script>
<?php echo $footer ?>
+41
View File
@@ -0,0 +1,41 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title><?php echo $result ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<link href="/assets/css/login-2.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled page-loading">
<div class="d-flex flex-column flex-root">
<div class="login login-2 login-signin-on d-flex flex-column flex-column-fluid bg-white position-relative overflow-hidden" id="kt_login">
<div class="login-body d-flex flex-column-fluid align-items-stretch justify-content-center">
<div class="container row">
<div class="col-lg-6 d-flex align-items-center">
<div class="login-form login-signin">
<div class="form rounded-lg p-3">
<div class="alert alert-primary text-center h5" role="alert"><?php echo $result ?></div>
<hr>
<center>
<span class="text-muted font-weight-bold font-size-h4">Хостинг возобновит работу в ближайшие минуты!<br>
Вся подробная информация в <a href="https://redl.io" target="_blank" class="text-primary font-weight-bolder">REDL.IO</a></span>
</center>
</div>
</div>
</div>
<div class="col-lg-6 bgi-size-contain bgi-no-repeat bgi-position-y-center bgi-position-x-center min-h-150px mt-10 m-md-0 offcanvas-mobile" style="background-image: url(/application/public/img/error.gif)"></div>
</div>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,116 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<?php foreach($mods as $item):?>
<?php if($server['game_id'] == $item['game_id']): ?>
<div class="col-xl-4">
<div class="card card-custom gutter-b">
<div class="card-header border-0 pt-5 text-center">
<h3 class="card-title font-weight-bolder"><?php echo $item['mod_name']?></h3>
</div>
<div class="card-body d-flex flex-column">
<div class="flex-grow-1 text-center">
<img src="<?php echo $item['mod_img'] ?>" alt="" class="mw-100 w-200px">
</div>
<div class="pt-5">
<div class="mb-5" data-scroll="true" data-height="70">
<p class="text-center font-weight-normal font-size-lg pb-7"><?php echo $item['mod_textx']?></p>
</div>
<hr>
<?php if($item['mod_price'] > 0): ?>
<?php foreach($usermods as $mod): ?>
<? if($mod['mod_id'] == $item['mod_id']) $item['free_mode'] = 1; ?>
<?php endforeach; ?>
<? if($item['free_mode'] == 1): ?>
<button type="submit" onClick="sendAction(<?php echo $server['server_id'] ?>,'<?echo $item['mod_id']?>')" class="btn btn-light-primary btn-shadow-hover font-weight-bolder w-100 py-3" data-toggle="tooltip" data-placement="right"data-original-title="Товар куплен">Установить</button>
<? else: ?>
<button type="submit" onClick="sendAction(<?php echo $server['server_id'] ?>,'<?echo $item['mod_id']?>')" class="btn btn-primary btn-shadow-hover font-weight-bolder w-100 py-3">Купить за <?php echo $item['mod_price']?> RUB.</button>
<?php endif;?>
<?php elseif($item['mod_price'] == 0): ?>
<button type="submit" onClick="sendAction(<?php echo $server['server_id'] ?>,'<?echo $item['mod_id']?>')" class="btn btn-primary btn-shadow-hover font-weight-bolder w-100 py-3">Установить</button>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php if(empty($mods)): ?>
<div class="col-xl-12 col-xxl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент список пуст.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<script>
function sendAction(serverid, action) {
$.ajax({
url: '/servers/autoinstall/action/'+serverid+'/'+action,
type: 'POST',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.info(data.success);
$.ajax({
url: '/servers/control/action/'+serverid+"/start",
dataType: 'text',
success: function(data){
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success("Сервер успешно был запущен!");
setTimeout("location.replace('/servers/control/index/<?php echo $server['server_id'] ?>')", 1500);
break;
}
}
});
break;
}
},
beforeSend: function(arr, options) {
$('button[type=submit]').prop('disabled', true);
<?php foreach($mods as $item): ?>
if(action == "<?echo $item['mod_id']?>") toastr.warning("Идет установка <?echo $item['mod_name']?>, пожалуйста, подождите...");
<?endforeach;?>
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,48 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<form id="configEdit" method="POST">
<textarea name="config" style="border: 6px solid #121921; border-radius:10px; color: #FFF; background-color: #121921;min-width: 100%; max-width: 100%; min-height: 400px; margin-bottom: 10px;"><?php echo $config ?></textarea>
<button type="submit" class="btn btn-primary">Сохранить</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$('#configEdit').ajaxForm({
url: '/servers/config/send_config/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
}
});
</script>
<?echo $footer?>
+298
View File
@@ -0,0 +1,298 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fa fa-terminal icon-3x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">Консоль</h4>
<div class="text-center font-weight-bold mb-2">
<div class="card card-body" style="margin-bottom: 0rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" checked id="autoscroll">
<span></span>
Автообновление
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#colorCMD" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-clone"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Сменить дизайн</span>
</a>
</div>
<?if($server['game_query'] == 'samp'):?>
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#infoCMD" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-info-circle"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Доступные команды</span>
</a>
</div>
<?endif;?>
<div class="navi-item my-2">
<a href="javascript:;" onclick="clearConsole()" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="flaticon2-rubbish-bin"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Очистить консоль</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="card card-custom gutter-b">
<div class="card-body">
<textarea style="<?php echo $theme ?>" disabled="" class="form-control console" id="console_data">Получение данных...</textarea>
<form class="form-inline" role="form" method='POST' id="console_form" action="" >
<div class="input-group" style="width: 100%;">
<input type="text" class="form-control" id="cmd" name="cmd" placeholder="Введите команду...">
<div class="input-group-append">
<button type="submit" class="btn btn-primary btn-icon" data-toggle="tooltip" title="" data-placement="right" data-original-title="Отправить"><i class="fa fa-terminal"></i></button>
</div>
</div>
</form>
<div class="subheader__wrapper">
<?php if($server['game_query'] == "samp"): ?>
<a href="/servers/console/index/<?php echo $server['server_id'] ?>" class="btn btn-default font-weight-bold px-1 py-1 mr-2">
./server_log.txt
</a>
<a href="/servers/console/index/<?php echo $server['server_id'] ?>?open=screenlog" class="btn btn-default font-weight-bold px-1 py-1 mr-2">
./screenlog.0
</a>
<?php elseif($server['game_query'] == "mtasa"): ?>
<a href="/servers/console/index/<?php echo $server['server_id'] ?>" class="btn btn-default font-weight-bold px-1 py-1 mr-2">
./mods/deathmatch/logs/server.log
</a>
<?php elseif($server['game_code'] == "mcpe"): ?>
<a href="/servers/console/index/<?php echo $server['server_id'] ?>" class="btn btn-default font-weight-bold px-1 py-1 mr-2">
./server.log
</a>
<?php else: ?>
<a href="/servers/console/index/<?php echo $server['server_id'] ?>" class="btn btn-default font-weight-bold px-1 py-1 mr-2">
./screenlog.0
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="infoCMD" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Доступные команды</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<code>cmdlist</code> - Показать список RCON команд<br>
<code>varlist</code> - Посмотреть список текущих настроек<br>
<code>kick [ID]</code> - Кикнуть пользователя по его ID (Пример: kick 3)<br>
<code>ban [ID]</code> - Забанить пользователя по его ID (Пример: ban 3)<br>
<code>banip [IP]</code> - Забанить IP (Пример: banip 127.0.0.1)<br>
<code>unbanip [IP]</code> - Разбанить IP (Пример: unbanip 127.0.0.1)<br>
<code>reloadbans</code> - Перезагрузить samp.ban<br>
<code>reloadlog</code> - Очистить лог сервера<br>
<code>exec [имя файла]</code> - Открыть файл .cfg (Пример: exec blah.cfg)<br>
<code>say [текст]</code> - Сказать в общий чат от лица админа (Пример: say Hello)<br>
<code>players</code> - Показать всех игроков на сервере с их именами, ip и пингом<br>
<code>gravity</code> - Изменить гравитацию на сервере - (Пример: gravity 0.008)<br>
<code>weather [ID]</code> - Изменить погоду на сервере (Пример: weather 2)<br>
<code>worldtime [время]</code> - Изменить время на сервере (Пример: worldtime 2)<br>
<code>maxplayers</code> - Изменить макс. количество мест на сервере<br>
<code>timestamp</code> - Установить часовой пояс<br>
<code>plugins</code> - Посмотреть список всех установленных плагинов<br>
<code>filterscripts</code> - Посмотреть список всех установленных фильтрскриптов<br>
<code>loadfs [название]</code> - Загрузить фильтрскрипт<br>
<code>unloadfs [название]</code> - Выгрузить фильтрскрипт<br>
<code>reloadfs [название]</code> - Перезагрузить фильтрскрипт<br>
<code>password [пароль]</code> - Установить пароль на сервере<br>
<code>changemode [название]</code> - Изменить режим игры на сервере на заданный<br>
<code>gmx</code> - Рестарт сервера<br>
<code>hostname [название]</code> - Изменить название сервера<br>
<code>gamemodetext [название]</code> - Изменить название мода<br>
<code>mapname [название]</code> - Изменить название карты<br>
<code>gamemode [1-15]</code> - Установить порядок гэйм-модов<br>
<code>instagib [bool]</code> - Включить функцию убийства с одной пули (1 или 0)<br>
<code>lanmode [bool]</code> - Установить LAN (1 или 0)<br>
<code>version</code> - Посмотреть версию сервера<br>
<code>weburl [url]</code> - Установить url сайта на сервере<br>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<!--begin::Modal-->
<div class="modal fade" id="colorCMD" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Смена дизайна</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<div class="row row-paddingless">
<div class="col-6">
<a href="javascript:;" onclick="sendAction('default')" class="d-block py-10 px-5 text-center bg-hover-light border-right border-bottom">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Default</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onclick="sendAction('Amethyst')" class="d-block py-10 px-5 text-center bg-hover-light border-bottom">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Amethyst</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onclick="sendAction('City')" class="d-block py-10 px-5 text-center bg-hover-light border-right">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема City</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onclick="sendAction('Flat')" class="d-block py-10 px-5 text-center bg-hover-light">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Flat</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onclick="sendAction('Modern')" class="d-block py-10 px-5 text-center bg-hover-light">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Modern</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onclick="sendAction('Smooth')" class="d-block py-10 px-5 text-center bg-hover-light">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Smooth</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script>
$('#console_form').ajaxForm({
url: '/servers/console/sendconsole/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
document.getElementById("cmd").value = "";
break;
}
}
});
function clearConsole() {
$.ajax({
url: '/servers/console/clearcon/<?php echo $server['server_id'] ?>',
type: 'POST',
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
break;
}
}
});
}
setInterval(function() {
var autoscroll = document.getElementById("autoscroll");
if (autoscroll.checked == true) {
$.get("/servers/console/getconsole/<?php echo $server['server_id'] ?>/<?php echo $fileid ?>")
.done(function (data) {
var console = document.getElementById("console_data");
console.innerHTML = data;
console.scrollTop = console.scrollHeight;
});
}
}, 1000);
function sendAction(action) {
$.ajax({
url: '/servers/console/action_theme_console/'+action,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
}
});
}
</script>
<?php echo $footer ?>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,178 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fa fa-user-shield icon-3x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">Firewall</h4>
<div class="text-center font-weight-bold mb-2">
Блокировка ip адресов
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#firewallinfo" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-exclamation-circle"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Информация</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="card card-custom mb-2">
<div class="card-body">
<form id="addForm" method="POST" style="padding:0px; margin:0px;">
<div class="input-group" style="width: 100%;">
<input type="text" class="form-control" id="address" name="address" placeholder="Введите IP адрес...">
<div class="input-group-append">
<button type="submit" class="btn btn-primary btn-icon" data-toggle="tooltip" title="" data-placement="right" data-original-title="Добавить"><i class="fas fa-plus"></i></button>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<?php foreach($Firewalls as $item): ?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title"><?php echo $item['server_ip'] ?><small class="text-muted font-size-sm ml-2"><?php echo $item['firewall_add'] ?></small></h3>
<div class="card-toolbar">
<a href="javascript:;" onclick="sendAction('delete', <?php echo $item['firewall_id'] ?>)" class="btn btn-clean btn-icon">
<i class="fa fa-times" data-toggle="tooltip" data-placement="right" title="" data-original-title="Разблокировать IP"></i>
</a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($Firewalls)): ?>
<div class="col-xl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент список пуст.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="firewallinfo" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Информация</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<p>
Firewall - это гарантированная защита Вашего сервера от нежелательных гостей. Он позволяет ограничить доступ определенным лицам по IP-адресу прямо из Панели управления. В отличие от бана в игре, такая блокировка полностью фильтрует весь трафик с данного IP-адреса.
</p>
<hr>
<h6 class="alert-heading">Примеры для блокировки IP</h6>
<p>
1.1.1.1 - Одиночный IP адрес<br>
1.1.1.0/24 - Сеть из 256 адресов (с 1.1.1.1 по 1.1.1.255)<br>
1.1.1.0/255.255.255.0 - Сеть из 256 адресов (с 1.1.1.1 по 1.1.1.255)<br>
1.1.0.0/16 - Сеть из 65536 адресов (с 1.1.1.1 по 1.1.255.255)<br>
1.1.0.0/255.255.0.0 - Сеть из 65536 адресов (с 1.1.1.1 по 1.1.255.255)
</p>
</h4>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script>
$('#addForm').ajaxForm({
url: '/servers/firewall/ajax/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function sendAction(action, firewallid) {
switch(action) {
case "delete":
{
if(!confirm("Вы уверенны в том, что хотите разблокировать IP адрес?")) return;
break;
}
}
$.ajax({
url: '/servers/firewall/action/'+action+'/<?php echo $server['server_id'] ?>/'+firewallid,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
}
});
}
</script>
<?php echo $footer ?>
+300
View File
@@ -0,0 +1,300 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fa fa-server icon-5x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">FTP Online</h4>
<div class="text-muted font-weight-bold mb-2"><?php echo $server['location_name'] ?></div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#ftpdiz" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-clone"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Сменить дизайн</span>
</a>
</div>
<div class="navi-item my-2">
<a href="http://filezilla.ru/get/" target="_blank" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-external-link-alt"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Скачать FTP Клиент</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Адрес для доступа по протоколу FTP<small class="text-muted font-size-sm ml-2"><?php echo $server['location_ip'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">FTP Порт<small class="text-muted font-size-sm ml-2">21</small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Имя пользователя<small class="text-muted font-size-sm ml-2">gs<?php echo $server['server_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Пароль пользователя<small class="text-muted font-size-sm ml-2"><?php echo $server['server_password'] ?></small></h3>
<div class="card-toolbar">
<a href="javascript:;" data-toggle="modal" data-target="#ftppass" class="btn btn-clean btn-icon">
<i class="fas fa-cogs" data-toggle="tooltip" data-placement="right" title="" data-original-title="Изменить"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Онлайн клиент</h3>
</div>
</div>
<div class="card-body">
<div id="elfinder"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="ftppass" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Изменить пароль FTP</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="editForm" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onchange="togglePassword()">
<span></span>
Сменить пароль FTP
</label>
</div>
</div>
</div>
<div class="form-group">
<label>Пароль</label>
<input class="form-control" id="password" name="password" placeholder="Пароль" disabled="">
</div>
<div class="form-group">
<label>Повторите пароль</label>
<input class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled="">
</div>
</div>
<div class="modal-footer" style="padding: 0.5rem;">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Сохранить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<!--begin::Modal-->
<div class="modal fade" id="ftpdiz" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Смена дизайна</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<div class="row row-paddingless">
<div class="col-6">
<a href="javascript:;" onClick="sendAction_theme('default')" class="d-block py-10 px-5 text-center bg-hover-light border-right border-bottom">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Default</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onClick="sendAction_theme('material')" class="d-block py-10 px-5 text-center bg-hover-light border-right">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Material</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onClick="sendAction_theme('materialgray')" class="d-block py-10 px-5 text-center bg-hover-light">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Material gray</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
<div class="col-6">
<a href="javascript:;" onClick="sendAction_theme('materiallight')" class="d-block py-10 px-5 text-center bg-hover-light">
<i class="flaticon2-drop text-primary icon-3x"></i>
<span class="d-block text-dark-75 font-weight-bold font-size-h6 mt-2 mb-1">Тема Material light</span>
<span class="d-block text-dark-50 font-size-lg">Применить</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script type="text/javascript">
$(function () {
var myCommands = elFinder.prototype._options.commands;
var disabled = ['resize', 'help', 'select'];
$.each(disabled, function (i, cmd) {
(idx = $.inArray(cmd, myCommands)) !== -1 && myCommands.splice(idx, 1); });
var selectedFile = null;
var options = {
url: '/servers/ftp/getftp/<?php echo $server['server_id'] ?>',
rememberLastDir: false,
commands: myCommands,
lang: 'ru',
uiOptions: {
toolbar: [ ['back', 'forward'], ['reload'], ['home', 'up'], ['mkdir', 'mkfile', 'upload'], ['open', 'download'], ['info'], ['quicklook'], ['copy', 'cut', 'paste'], ['rm'], ['duplicate', 'rename', 'edit','extract', 'archive'], ['view', 'sort'] ]
},
handlers: {
select: function (event, elfinderInstance) {
if (event.data.selected.length == 1) {
var item = $('#' + event.data.selected[0]);
if (!item.hasClass('directory')) {
selectedFile = event.data.selected[0];
$('#elfinder-selectFile').show(); return;
}
}
$('#elfinder-selectFile').hide(); selectedFile = null;
}
}
};
$('#elfinder').elfinder(options).elfinder('instance');
$('.elfinder-toolbar:first').append('<div class="ui-widget-content ui-corner-all elfinder-buttonset" id="elfinder-selectFile" style="display:none; float:right;">'+ '<div class="ui-state-default elfinder-button" title="Select" style="width: 100px;"></div>');
$('#elfinder-selectFile').click(function () {
if (selectedFile != null)
$.post('file/selectFile', {
target: selectedFile
},
function (response) {
alert(response);
});
});
});
</script>
<audio style="display: none;">
<source src="/application/public/sounds/rm.wav" type="audio/wav">
</audio>
<script src="/application/public/js/elfinder.min.js"></script>
<script src="/application/public/js/i18n/elfinder.ru.js"></script>
<script src="/application/public/js/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="/application/public/css/elfinder.full.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $theme ?>">
<script>
function sendAction_theme(action) {
$.ajax({
url: '/servers/ftp/action_theme_ftp/'+action,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 2500);
break;
}
}
});
}
</script>
<script>
$('#editForm').ajaxForm({
url: '/servers/ftp/ajax/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<?php echo $footer ?>
+149
View File
@@ -0,0 +1,149 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<?php foreach($servers as $item): ?>
<div class="col-lg-6 mb-10">
<div class="card card-custom wave mb-2 bg-light-<?php if($item['server_status'] == 0): ?>warning
<?php elseif($item['server_status'] == 1): ?>danger
<?php elseif($item['server_status'] == 2): ?>success
<?php elseif($item['server_status'] == 3): ?>primary
<?php elseif($item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>info
<?php endif; ?>">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="/servers/control/index/<?php echo $item['server_id'] ?>" class="h4 text-dark text-hover-primary mb-5"><?php echo $item['location_ip2'] ?>:<?php echo $item['server_port'] ?><small class="text-muted font-size-sm ml-2">ID <?php echo $item['server_id'] ?></small></a>
<p class="text-dark-50"><?php echo $item['game_name'] ?></p>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<?php if($item['server_status'] == 1): ?>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'start')" class="btn btn-icon btn-success" data-toggle="tooltip" title="Запустить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Сервер должен быть включен!">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 2): ?>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'stop')" class="btn btn-icon btn-danger" data-toggle="tooltip" title="Остановить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'restart')" class="btn btn-icon btn-info" data-toggle="tooltip" title="Перезапустить">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 0 || $item['server_status'] == 3 || $item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-redo"></i>
</a>
<?php endif; ?>
<a href="/servers/control/index/<?php echo $item['server_id'] ?>" class="btn btn-icon btn-primary" data-toggle="tooltip" title="Перейти">
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php foreach($serversOwners as $item): ?>
<div class="col-lg-6 mb-10">
<div class="card card-custom wave mb-2 bg-light-<?php if($item['server_status'] == 0): ?>warning
<?php elseif($item['server_status'] == 1): ?>danger
<?php elseif($item['server_status'] == 2): ?>success
<?php elseif($item['server_status'] == 3): ?>primary
<?php elseif($item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>info
<?php endif; ?>">
<div class="card-body">
<div class="d-flex align-items-center justify-content-between p-4 flex-lg-wrap flex-xl-nowrap">
<div class="d-flex flex-column mr-5">
<a href="/servers/control/index/<?php echo $item['server_id'] ?>" class="h4 text-dark text-hover-primary mb-5"><?php echo $item['location_ip2'] ?>:<?php echo $item['server_port'] ?><small class="text-muted font-size-sm ml-2">ID <?php echo $item['server_id'] ?></small></a>
<p class="text-dark-50"><?php echo $item['game_name'] ?></p>
</div>
<div class="ml-6 ml-lg-0 ml-xxl-6 flex-shrink-0">
<?php if($item['server_status'] == 1): ?>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'start')" class="btn btn-icon btn-success" data-toggle="tooltip" title="Запустить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Сервер должен быть включен!">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 2): ?>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'stop')" class="btn btn-icon btn-danger" data-toggle="tooltip" title="Остановить">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" onClick="sendAction(<?php echo $item['server_id'] ?>,'restart')" class="btn btn-icon btn-info" data-toggle="tooltip" title="Перезапустить">
<i class="fa fa-redo"></i>
</a>
<?php elseif($item['server_status'] == 0 || $item['server_status'] == 3 || $item['server_status'] == 4 || $item['server_status'] == 5 || $item['server_status'] == 6 || $item['server_status'] == 7): ?>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-power-off"></i>
</a>
<a href="javascript:;" class="btn btn-icon btn-light" data-toggle="tooltip" title="Вы не можете использовать это действие!">
<i class="fa fa-redo"></i>
</a>
<?php endif; ?>
<a href="/servers/control/index/<?php echo $item['server_id'] ?>" class="btn btn-icon btn-primary" data-toggle="tooltip" title="Перейти">
<i class="fa fa-sign-in-alt"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($servers) and empty($serversOwners)): ?>
<div class="col-xl-12 col-xxl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент у вас нет серверов.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php echo $pagination ?>
</div>
</div>
</div>
<script>
function sendAction(serverid, action) {
$.ajax({
url: '/servers/index/action/'+serverid+'/'+action,
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
}
</script>
<?php echo $footer ?>
+267
View File
@@ -0,0 +1,267 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fa fa-database icon-5x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">PHPMyAdmin</h4>
<div class="text-muted font-weight-bold mb-2"><?if($server['server_mysql'] == 1):?>
Пользователь активен
<?elseif($server['server_mysql'] == 0):?>
Пользователь не создан
<?elseif($server['server_mysql'] == 2):?>
Пользователь неактивен
<?endif;?>
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<?if($server['server_mysql'] == 1):?>
<div class="navi-item my-2">
<a href="http://<?php echo $server['location_ip'] ?>" target="_blank" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-user-circle"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Войти</span>
</a>
</div>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqloff')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-power-off"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Выключить</span>
</a>
</div>
<?elseif($server['server_mysql'] == 0):?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqlcr')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-user-plus"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Создать</span>
</a>
</div>
<?elseif($server['server_mysql'] == 2):?>
<div class="navi-item my-2">
<a href="javascript:;" onClick="sendAction(<?php echo $server['server_id'] ?>,'mysqlon')" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-power-off"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Включить</span>
</a>
</div>
<?endif;?>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<?if($server['server_mysql'] == 1):?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">MySQL Хост для локального подключения<small class="text-muted font-size-sm ml-2">127.0.0.1</small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">MySQL Хост для внешнего подключения<small class="text-muted font-size-sm ml-2"><?php echo $server['location_ip'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">MySQL Порт<small class="text-muted font-size-sm ml-2">3306</small></h3>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">База данных<small class="text-muted font-size-sm ml-2">gs<?php echo $server['server_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Имя пользователя<small class="text-muted font-size-sm ml-2">gs<?php echo $server['server_id'] ?></small></h3>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title">Пароль пользователя<small class="text-muted font-size-sm ml-2"><?php echo $server['db_pass'] ?></small></h3>
<div class="card-toolbar">
<a href="javascript:;" data-toggle="modal" data-target="#ftppass" class="btn btn-clean btn-icon">
<i class="fas fa-cogs" data-toggle="tooltip" data-placement="right" title="" data-original-title="Изменить"></i>
</a>
</div>
</div>
</div>
</div>
<?php else: ?>
<div class="col-xl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<?if($server['server_mysql'] == 0):?>
<div class="alert-text">На данный момент база данных не создана.</div>
<?elseif($server['server_mysql'] == 2):?>
<div class="alert-text">На данный момент база данных не включена.</div>
<?endif;?>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="ki ki-close"></i></span>
</button>
</div>
</div>
</div>
<?endif;?>
</div>
</div>
</div>
</div>
</div>
</div>
<?if($server['server_mysql'] == 1):?>
<!--begin::Modal-->
<div class="modal fade" id="ftppass" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Изменить пароль MySQL</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<form id="editForm" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="card card-body" style="margin-bottom: 1rem;padding: 1rem;">
<div class="form-group" style="margin-bottom: 0rem;">
<div class="checkbox-list">
<label class="checkbox">
<input type="checkbox" id="editpassword" name="editpassword" onchange="togglePassword()">
<span></span>
Сменить пароль MySQL
</label>
</div>
</div>
</div>
<div class="form-group">
<label>Пароль</label>
<input class="form-control" id="password" name="password" placeholder="Пароль" disabled="">
</div>
<div class="form-group">
<label>Повторите пароль</label>
<input class="form-control" id="password2" name="password2" placeholder="Повторите пароль" disabled="">
</div>
</div>
<div class="modal-footer" style="padding: 0.5rem;">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary font-weight-bold">Сохранить</button>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<?endif;?>
<script>
function sendAction(serverid, action) {
$.ajax({
url: '/servers/mysql/action/'+serverid+'/'+action,
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
if(action == "mysqloff") toastr.warning("Выключаем базу данных...");
if(action == "mysqlon") toastr.warning("Включаем базу данных...");
if(action == "mysqlcr") toastr.warning("Создаем базу данных...");
}
});
}
</script>
<?if($server['server_mysql'] == 1):?>
<script>
$('#editForm').ajaxForm({
url: '/servers/mysql/ajax/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function togglePassword() {
var status = $('#editpassword').is(':checked');
if(status) {
$('#password').prop('disabled', false);
$('#password2').prop('disabled', false);
} else {
$('#password').prop('disabled', true);
$('#password2').prop('disabled', true);
}
}
</script>
<?endif;?>
<?php echo $footer ?>
+407
View File
@@ -0,0 +1,407 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<form id="orderForm" method="POST" style="padding:0px; margin:0px;">
<div class="row">
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom card-stretch card-shadowless bg-gray-100 gutter-b">
<div class="card-header border-0 pt-7">
<h3 class="card-title align-items-start flex-column">
<span class="card-label font-weight-bold font-size-h4 text-dark-75">Параметры сервера</span>
</h3>
</div>
<div class="card-body pt-1 pb-4">
<div class="form-group form-md-line-input">
<label>Выберите игру</label>
<select class="form-control" id="gameid" name="gameid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error" onChange="updateForm()">
<?php foreach($games as $item): ?>
<option value="<?php echo $item['game_id'] ?>"><?php echo $item['game_name'] ?></option>
<?php endforeach; ?>
<?php if(empty($games)): ?>
<option value="0">На данный момент нет доступных игр</option>
<?php endif; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Выберите локацию</label>
<select class="form-control" id="locationid" name="locationid" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($locations as $item): ?>
<option value="<?php echo $item['location_id'] ?>" class="<?php echo $item['location_games'] ?>"><?php echo $item['location_name'] ?> | Загруженность <?php echo $item['location_cpu'] ?>%</option>
<?php endforeach; ?>
<?php if(empty($locations)): ?>
<option value="0">На данный момент нет доступных локаций</option>
<?php endif; ?>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Выберите период оплаты</label>
<select class="form-control" id="days" name="days" aria-required="true" aria-invalid="false" aria-describedby="delivery-error" onChange="updateForm()">
<option value="15">15 дней</option>
<option value="30">30 дней</option>
<option value="60">60 дней</option>
<option value="90">90 дней (-5%)</option>
<option value="180">180 дней (-10%)</option>
<option value="360">360 дней (-15%)</option>
<?if($serv_test == 1):?>
<option value="0">Тестовый период 3 дня</option>
<?endif;?>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Введите количество слотов</label>
<div class="input-group">
<div class="input-group-prepend">
<button type="button" onclick="plusSlots()" class="btn btn-light-primary btn-icon"><i class="fa fa-angle-up"></i></button>
</div>
<input oninput="this.value = this.value.replace(/\D/g, '')" class="form-control" id="slots" name="slots" onkeyup="updateForm(true)">
<div class="input-group-append">
<button type="button" onclick="minusSlots()" class="btn btn-light-primary btn-icon"><i class="fa fa-angle-down"></i></button>
</div>
</div>
</div>
<label>Придумайте пароль для FTP</label>
<div class="input-group">
<input type="text" class="form-control m-input" id="password" name="password" placeholder="Пароль">
<div class="input-group-append">
<button type="button" onClick="genPass()" class="btn btn-light-primary btn-icon"><i class="fa fa-undo"></i></button>
</div>
</div>
<br>
<div class="form-group form-md-line-input">
<label>Повторите пароль для FTP</label>
<input type="text" class="form-control" id="password2" name="password2" placeholder="Повторите пароль">
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-xxl-4">
<div class="card card-custom card-shadowless bg-gray-100 gutter-b">
<div class="card-header border-0 pt-7">
<h3 class="card-title align-items-start flex-column">
<span class="card-label font-weight-bold font-size-h4 text-dark-75">Информация о заказе</span>
</h3>
</div>
<div class="card-body pt-1 pb-4">
<div class="accordion accordion-toggle-arrow" id="accordionExample">
<div class="card">
<div class="card-header" id="heading3">
<div class="card-title collapsed" data-toggle="collapse" role="button" data-target="#collapse3" aria-expanded="false" aria-controls="collapseThree">
<i class="fa fa-gift"></i> Есть купон?
</div>
</div>
<div id="collapse3" class="card-body-wrapper collapse" aria-labelledby="heading3" data-parent="#accordionExample" style="">
<div class="card-body">
<div data-repeater-item="" class="kt--margin-bottom-10">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fa fa-gift"></i>
</span>
</div>
<input id="promo" type="text" class="form-control form-control-danger" type="promo" name="promo" placeholder="Купон">
<div class="input-group-append">
<button type="button" onclick="promoCode()" class="btn btn-light-primary btn-icon"><i class="fa fa-check"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="text-center">
<div class="font-size-h5 font-weight-boldest">Итого к оплате: <span id="price">0.00 руб.</span></div>
<div class="text-muted font-weight-bold mb-3" id="server">Получение данных...</div>
</div>
<hr>
<button type="submit" class="btn btn-light-primary btn-lg btn-block font-weight-bolder">Создать сервер</button>
</div>
</div>
</div>
</div>
</form>
<div class="card card-custom card-shadowless bg-gray-100">
<div class="card-header border-0 pt-7">
<h3 class="card-title align-items-start flex-column">
<span class="card-label font-weight-bold font-size-h4 text-dark-75">Преимущества нашего хостинга</span>
</h3>
</div>
<div class="card-body pt-0 pb-4">
<div class="row">
<div class="col-xl-6">
<ul class="navi">
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Мощные процессоры Intel</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Защита от DDoS атак на оборудование.</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Полный доступ к FTP</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Бесплатная база MySQL</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
</ul>
</div>
<div class="col-xl-6">
<ul class="navi">
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Создание резервных копий backup</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Смена версии сервера одним кликом</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Скоростные SSD диски</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
<li class="navi-item">
<a class="navi-link" href="javascript:;">
<span class="navi-bullet">
<i class="bullet"></i>
</span>
<span class="navi-text">Удобная панель управления</span>
<span class="navi-label">
<i class="fas fa-check text-primary"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
jQuery.fn.chained = function(parent_selector, options) {
return this.each(function() {
var self = this;
var backup = jQuery(self).clone();
jQuery(parent_selector).each(function() {
jQuery(this).bind("change", function() {
jQuery(self).html(backup.html());
var selected = "";
jQuery(parent_selector).each(function() {
selected += "\\" + jQuery(":selected", this).val();
});
selected = selected.substr(1);
var first = jQuery(parent_selector).first();
var selected_first = jQuery(":selected", first).val();
jQuery("option", self).each(function() {
if (!jQuery(this).hasClass(selected) && !jQuery(this).hasClass(selected_first) && jQuery(this).val() !== "") {
jQuery(this).remove();
}
});
if (1 == jQuery("option", self).size() && jQuery(self).val() === "") {
jQuery(self).attr("disabled", "disabled");
} else {
jQuery(self).removeAttr("disabled");
}
jQuery(self).trigger("change");
});
if ( !jQuery("option:selected", this).length ) {
jQuery("option", this).first().attr("selected", "selected");
}
jQuery(this).trigger("change");
});
});
};
jQuery.fn.chainedTo = jQuery.fn.chained;
jQuery(document).ready(function(){
jQuery("#locationid").chained("#gameid");
});
</script>
<script>
var gameData = {
<?php foreach($games as $item): ?>
<?php echo $item['game_id'] ?>: {
'minslots': <?php echo $item['game_min_slots'] ?>,
'maxslots': <?php echo $item['game_max_slots'] ?>,
'price': <?php echo $item['game_price'] ?>,
'cpu': <?php echo $item['game_cores'] ?>,
'ram': <?php echo $item['game_ram'] ?>,
'ssd': <?php echo $item['game_ssd'] ?>
},
<?php endforeach; ?>
};
$('#orderForm').ajaxForm({
url: '/servers/order/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/servers/control/index/" + data.id + "')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
toastr.warning("Ваш запрос обрабатывается, пожалуйста, подождите...");
}
});
$(document).ready(function() {
updateForm();
});
function promoCode(){
var promo = $("#promo").val();
$.post("/servers/order/promo",{code: promo},function(data){
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
updateForm();
break;
case 'success':
toastr.success(data.success);
updateForm(data.skidka);
break;
}
});
}
function updateForm(promo) {
var gameID = $("#gameid option:selected").val();
var slots = $("#slots").val();
if(slots < gameData[gameID]['minslots']) {
slots = gameData[gameID]['minslots'];
$("#slots").val(slots);
}
if(slots > gameData[gameID]['maxslots']) {
slots = gameData[gameID]['maxslots'];
$("#slots").val(slots);
}
var price = gameData[gameID]['price'] * slots;
var days = $("#days option:selected").val();
switch(days) {
case "0":
price = 0;
break;
case "15":
price = price / 2;
break;
case "30":
break;
case "60":
price = price * 2;
break;
case "90":
price = 3 * price * 0.95;
break;
case "180":
price = 6 * price * 0.90;
break;
case "360":
price = 12 * price * 0.85;
break;
}
if(promo != null){price = price * promo;}
$('#price').text(price.toFixed(2) + ' руб.');
$('#server').text('CPU: '+gameData[gameID]['cpu']+' ядер, RAM: '+gameData[gameID]['ram']+' МБ, SSD: '+gameData[gameID]['ssd']+' МБ');
}
function plusSlots() {
value = parseInt($('#slots').val());
$('#slots').val(value+1);
updateForm();
}
function minusSlots() {
value = parseInt($('#slots').val());
$('#slots').val(value-1);
updateForm();
}
function generatePwd() {
var length = 8,
charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
retVal = "";
for (var i = 0, n = charset.length; i < length; ++i) {
retVal += charset.charAt(Math.floor(Math.random() * n));
}
return retVal;
}
function genPass() {
document.getElementById('password').type = 'text';
document.getElementById('password2').type = 'text';
iString = generatePwd();
$('#password').val(iString);
$('#password2').val(iString);
}
</script>
<?php echo $footer ?>
+170
View File
@@ -0,0 +1,170 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fa fa-user-friends icon-3x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">Друзья</h4>
<div class="text-center font-weight-bold mb-2">
Совместное управление
</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#ownerinfo" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-exclamation-circle"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Информация</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="card card-custom mb-2">
<div class="card-body">
<form id="addForm" method="POST" style="padding:0px; margin:0px;">
<div class="input-group" style="width: 100%;">
<input type="text" class="form-control" id="ownerid" name="ownerid" placeholder="Введите ID друга...">
<div class="input-group-append">
<button type="submit" class="btn btn-primary btn-icon" data-toggle="tooltip" title="" data-placement="right" data-original-title="Добавить"><i class="fas fa-plus"></i></button>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<?php foreach($serversOwners as $item): ?>
<div class="col-xl-12">
<div class="card card-custom mb-3">
<div class="card-header border-0">
<h3 class="card-title"><?php echo $item['user_firstname'] ?> <?php echo $item['user_lastname'] ?><small class="text-muted font-size-sm ml-2"><?php if($item['owner_status'] == 0): ?>Не подтвержден<?php elseif($item['owner_status'] == 1): ?><?php echo $item['owner_add'] ?><?php endif; ?></small></h3>
<div class="card-toolbar">
<a href="javascript:;" onclick="sendAction('delete', <?php echo $item['owner_id'] ?>)" class="btn btn-clean btn-icon">
<i class="fa fa-times" data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить"></i>
</a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($serversOwners)): ?>
<div class="col-xl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент список пуст.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="ownerinfo" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Информация</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<p>
Система совладельцев серверов - это система, позволяющая добавить своего друга в совладельцы. Добавив друга, он также сможет как и вы управлять вашим сервером.
</p>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script>
$('#addForm').ajaxForm({
url: '/servers/owner/create/<?php echo $server['server_id'] ?>',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
function sendAction(action, ownerid) {
switch(action) {
case "delete":
{
if(!confirm("Вы действительно хотите удалить друга?")) return;
break;
}
}
$.ajax({
url: '/servers/owner/delete/<?php echo $server['server_id'] ?>/'+ownerid,
dataType: 'text',
type: 'POST',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('#controlBtns button').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
}
});
}
</script>
<?php echo $footer ?>
+96
View File
@@ -0,0 +1,96 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<?php foreach($repos as $item):?>
<?php if($server['game_id'] == $item['game_id']): ?>
<div class="col-xl-4">
<div class="card card-custom gutter-b">
<div class="card-header border-0 pt-5 text-center">
<h3 class="card-title font-weight-bolder"><?php echo $item['repo_name']?></h3>
</div>
<div class="card-body d-flex flex-column">
<div class="flex-grow-1 text-center">
<img src="<?php echo $item['repo_img'] ?>" alt="" class="mw-100 w-200px">
</div>
<div class="pt-5">
<div class="mb-5" data-scroll="true" data-height="70">
<p class="text-center font-weight-normal font-size-lg pb-7"><?php echo $item['repo_textx']?></p>
</div>
<hr>
<?php if($item['repo_price'] > 0): ?>
<?php foreach($userrepos as $repo): ?>
<? if($repo['repo_id'] == $item['repo_id']) $item['free_repo'] = 1; ?>
<?php endforeach; ?>
<? if($item['free_repo'] == 1): ?>
<a href="<?echo $item['repo_url']?>" class="btn btn-light-primary btn-shadow-hover font-weight-bolder w-100 py-3" data-toggle="tooltip" data-placement="right"data-original-title="Файл куплен">Скачать файл</a>
<? else: ?>
<button type="submit" onClick="sendAction(<?php echo $server['server_id'] ?>,'<?echo $item['repo_id']?>')" class="btn btn-primary btn-shadow-hover font-weight-bolder w-100 py-3">Купить за <?php echo $item['repo_price']?> RUB.</button>
<?php endif;?>
<?php elseif($item['repo_price'] == 0): ?>
<a href="<?echo $item['repo_url']?>" class="btn btn-primary btn-shadow-hover font-weight-bolder w-100 py-3">Скачать файл</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php if(empty($repos)): ?>
<div class="col-xl-12 col-xxl-12">
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент список пуст.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<script>
function sendAction(serverid, action) {
$.ajax({
url: '/servers/repo/action/'+serverid+'/'+action,
type: 'POST',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
},
beforeSend: function(arr, options) {
$('button[type=submit]').prop('disabled', true);
}
});
}
</script>
<?php echo $footer ?>
@@ -0,0 +1,302 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-lg-3">
<div class="d-flex align-items-center mb-3 bg-light-primary rounded p-5">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="javascript:;" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">CPU</a>
</div>
<span class="font-weight-bolder text-primary py-1 font-size-lg" id="cpu">
<div class="spinner spinner-primary mr-5"></div>
</span>
</div>
</div>
<div class="col-lg-3">
<div class="d-flex align-items-center mb-3 bg-light-primary rounded p-5">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="javascript:;" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">RAM</a>
</div>
<span class="font-weight-bolder text-primary py-1 font-size-lg" id="ram">
<div class="spinner spinner-primary mr-5"></div>
</span>
</div>
</div>
<div class="col-lg-3">
<div class="d-flex align-items-center mb-3 bg-light-primary rounded p-5">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="javascript:;" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">SSD</a>
</div>
<span class="font-weight-bolder text-primary py-1 font-size-lg" id="ssd">
<div class="spinner spinner-primary mr-5"></div>
</span>
</div>
</div>
<div class="col-lg-3">
<div class="d-flex align-items-center mb-3 bg-light-primary rounded p-5">
<div class="d-flex flex-column flex-grow-1 mr-2">
<a href="javascript:;" class="font-weight-bold text-dark-75 text-hover-primary font-size-lg mb-1">Players</a>
</div>
<span class="font-weight-bolder text-primary py-1 font-size-lg" id="players">
<div class="spinner spinner-primary mr-5"></div>
</span>
</div>
</div>
<div class="col-lg-6">
<div class="card card-custom mb-3">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">История количевства игроков</h3>
</div>
</div>
<div class="card-body" style="padding: 0.5rem 0.5rem;">
<div id="statsGraph"></div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card card-custom mb-3">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">История нагрузки сервера</h3>
</div>
</div>
<div class="card-body" style="padding: 0.5rem 0.5rem;">
<div id="loads"></div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card card-custom mb-3">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">История операций с сервером</h3>
</div>
</div>
<div class="card-body">
<div class="scroll scroll-pull" data-scroll="true" style="height: 200px; overflow: auto;" data-mobile-height="200">
<div class="timeline timeline-2">
<div class="timeline-bar"></div>
<?$nofire = false;?>
<?php foreach($logs as $item): ?>
<? if($server['server_id'] == $item['server_id']): ?>
<?$nofire = true;?>
<div class="timeline-item">
<div class="timeline-badge <?if($item['status'] == 1):?>bg-success<?elseif($item['status'] == 2):?>bg-warning<?elseif($item['status'] == 3):?>bg-danger<?endif;?>"></div>
<div class="timeline-content d-flex align-items-center justify-content-between">
<span class="mr-3">
<?=$item['reason']?>
</span>
<span class="text-muted text-right"><?=$item['date']?></span>
</div>
</div>
<?endif;?>
<?php endforeach; ?>
</div>
<?php if(empty($logs) || $nofire == false): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент история чиста.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
<i class="ki ki-close"></i>
</span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script>
function updateData() {
$.ajax({
url: '/servers/statistics/getData/<?=$server['server_id']?>',
dataType: 'text',
success: function (data) {
data = $.parseJSON(data);
$("#cpu").text(data.cpu+"%");
$("#ram").text(data.ram+"%");
$("#ssd").text(data.ssd+"%");
$("#players").text(data.players);
}
})
}
$(document).ready(function() {
updateData();
});
var online = [
<?php foreach($stats as $item): ?>
[<?php echo strtotime($item['server_stats_date']) * 1000 ?>, <?php echo $item['server_stats_players'] ?>],
<?php endforeach; ?>
];
var loads1 = [
<?php foreach($stats as $item): ?>
[<?php echo strtotime($item['server_stats_date']) * 1000 ?>, <?php echo $item['server_stats_cpu'] ?>],
<?php endforeach; ?>
];
var loads2 = [
<?php foreach($stats as $item): ?>
[<?php echo strtotime($item['server_stats_date']) * 1000 ?>, <?php echo $item['server_stats_hdd'] ?>],
<?php endforeach; ?>
];
var loads3 = [
<?php foreach($stats as $item): ?>
[<?php echo strtotime($item['server_stats_date']) * 1000 ?>, <?php echo $item['server_stats_ram'] ?>],
<?php endforeach; ?>
];
const primary = '#6993FF';
const success = '#1BC5BD';
const info = '#8950FC';
const warning = '#FFA800';
const danger = '#F64E60';
var ApexChartsStats = function () {
var players_chart = function () {
const apexChart = "#statsGraph";
var options = {
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
series: [{
name: 'Количевство игроков',
data: online
}],
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
var loads_chart = function () {
const apexChart = "#loads";
var options = {
series: [{
name: 'CPU (%)',
data: loads1
}, {
name: 'RAM (%)',
data: loads3
}, {
name: 'SSD (%)',
data: loads2
}],
chart: {
height: 350,
type: 'area',
defaultLocale: 'en',
locales: [{
name: 'en',
options: {
months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
shortMonths: ['Янв.', 'Фев.', 'Март.', 'Апр.', 'Май.', 'Июнь.', 'Июль.', 'Авг.', 'Сент.', 'Окт.', 'Ноя.', 'Дек.'],
days: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
shortDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
toolbar: {
exportToPNG: 'Скачать PNG',
exportToCSV: 'Скачать CSV',
exportToSVG: 'Скачать SVG',
selection: 'Выбор',
selectionZoom: 'Выбор Zoom',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
pan: 'Панорамирование',
reset: 'Сброс Масштаба',
}
}
}]
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'smooth'
},
xaxis: {
type: 'datetime'
},
tooltip: {
x: {
format: 'dd.MM.yy в HH:mm'
},
},
colors: [primary, success, danger]
};
var chart = new ApexCharts(document.querySelector(apexChart), options);
chart.render();
}
return {
init: function () {
players_chart();
loads_chart();
}
};
}();
jQuery(document).ready(function () {
ApexChartsStats.init();
});
</script>
<?php echo $footer ?>
+219
View File
@@ -0,0 +1,219 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-12">
<?php include 'application/views/common/menuserver.php';?>
</div>
<div class="col-xl-3">
<div class="card card-custom mb-3 pt-5">
<div class="card-body">
<div class="text-center">
<div class="symbol symbol-60 symbol-circle symbol-xl-90">
<div class="symbol-label">
<i class="fas fa-clock icon-5x text-primary"></i>
</div>
</div>
<h4 class="font-weight-bolder my-2">Планировщик задач</h4>
<div class="text-muted font-weight-bold mb-2">Выполнение команд по расписанию</div>
</div>
</div>
</div>
<div class="card card-custom mb-3">
<div class="card-body px-1" style="padding: 0.3rem 2.25rem;">
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#tasksinfo" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-exclamation-circle"></i>
</span>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Информация</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<div class="col-xl-12">
<div class="card card-custom gutter-b">
<div class="card-body">
<div class="form-group form-md-line-input">
<label>Задача</label>
<select class="form-control" id="task" name="task" onChange="editNewTask()">
<option value="enable" <?php if($server['server_status'] != 1): ?>disabled <?php endif; ?>>Включение</option>
<option value="disable" <?php if($server['server_status'] != 2): ?>disabled <?php endif; ?>>Выключение</option>
<option value="restart" <?php if($server['server_status'] != 2): ?>disabled <?php endif; ?>>Перезагрузка</option>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Тип задачи</label>
<select class="form-control" id="type" name="type">
<option value="single">Одноразовая</option>
</select>
</div>
<div class="form-group form-md-line-input">
<label>Время выполнения</label>
<select class="form-control" id="time" name="time">
<option value="15min">15 Минут</option>
<option value="30min">30 Минут</option>
<option value="1hour">1 Час</option>
<option value="12hours">12 Часов</option>
<option value="24hours">24 Часа</option>
</select>
</div>
<button id="createTask" class="btn btn-primary">Создать задачу</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">Список задач</h3>
</div>
</div>
<div class="card-body">
<?php foreach($tasks as $item): ?>
<div class="card card-custom bg-gray-100 mb-4" id="task-<?php echo $item['task_id'] ?>">
<div class="card-header border-0" style="min-height: 0;padding-top: 0.5rem;padding-bottom: 0.5rem;">
<h3 class="card-title"><span class="card-icon">
<a href="javascript:;" class="btn btn-icon btn-light-primary btn-sm" data-toggle="tooltip" data-placement="right" title="" data-original-title="Тип задачи: <?php echo str_replace("single", "Одноразовая", str_replace("repeating", "Повторяющаяся", $item['task_type'])) ?>">
<i class="fa fa-info-circle"></i>
</a></span><?php echo str_replace("restart", "Перезагрузка", str_replace("enable", "Включение", str_replace("disable", "Выключение", $item['task_name']))) ?><small class="text-muted font-size-sm ml-2"><?php echo str_replace("15min", "15 минут", str_replace("30min", "30 минут", str_replace("1hour", "1 час", str_replace("12hours", "12 часов", str_replace("24hours", "24 часа", $item['task_time']))))) ?></small>
</h3>
<div class="card-toolbar">
<span class="badge badge-primary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Будет выполнена в" style="margin-right: .25rem"><?php echo date("d.m.Y в H:i", strtotime($item['task_lead_time'])) ?></span>
<a href="javascript:;" onClick="sendAction('deleteTask',<?php echo $item['task_id'] ?>)" class="btn btn-icon btn-light-danger btn-xs" data-toggle="tooltip" data-placement="right" title="" data-original-title="Удалить задачу">
<i class="fa fa-times"></i>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
<?php if(empty($tasks)): ?>
<div class="alert alert-custom alert-light-primary fade show mb-4" role="alert">
<div class="alert-icon">
<i class="flaticon-exclamation"></i>
</div>
<div class="alert-text">На данный момент нет задач.</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="ki ki-close"></i></span>
</button>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--begin::Modal-->
<div class="modal fade" id="tasksinfo" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Информация</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i aria-hidden="true" class="ki ki-close"></i>
</button>
</div>
<div class="modal-body">
<p>
Система планировщик задач - это система, позволяет автоматически выполнять определенные действия на сервере (запуск, рестарт, выключение и т.д.), с заданным временем или периодичностью.
</p>
</div>
</div>
</div>
</div>
<!--end::Modal-->
<script>
function editNewTask() {
setTimeout(function() {
var task = $('#task option:selected').val();
if (task == 'enable' || task == 'disable') {
$("#type option[value='repeating']").remove();
} else {
$("#type").append('<option value="repeating">Повторяющаяся</option>');
}
}, 100);
}
$(document).ready(function() {
editNewTask();
});
$('#createTask').on('click', function() {
$.ajax({
url: '/servers/tasks/createTask/<?php echo $server['server_id'] ?>',
type: 'POST',
data: {
'task': $("#task option:selected").val(),
'type': $("#type option:selected").val(),
'time': $("#time option:selected").val()
},
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
$('#createTask').removeClass('loading');
},
beforeSubmit: function(arr, $form, options) {
$('#createTask').addClass('loading');
}
});
});
function sendAction(action, task_id) {
switch(action) {
case "deleteTask":
{
if(!confirm("Вы действительно хотите удалить задачу ID-"+task_id+"?")) return;
break;
}
}
$.ajax({
url: '/servers/tasks/deleteTask/<?php echo $server['server_id'] ?>',
type: "POST",
data: {task_id: task_id},
dataType: 'text',
success: function(data) {
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
break;
case 'success':
toastr.success(data.success);
setTimeout("reload()", 1500);
break;
}
}
});
}
</script>
<?php echo $footer ?>
+115
View File
@@ -0,0 +1,115 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4">
<div class="card card-custom mb-3">
<div class="card-body p-0" style="position: relative;">
<div class="d-flex align-items-center justify-content-between card-spacer flex-grow-1">
<span class="symbol symbol-50 symbol-light-primary mr-2">
<span class="symbol-label">
<i class="fa fa-users icon-xl text-primary"></i>
</span>
</span>
<div class="d-flex flex-column text-right">
<span class="text-dark-75 font-weight-bolder font-size-h3"></i><?$userov = 0;
foreach($users as $itemr): ?>
<? $userov++; ?>
<?endforeach;echo $userov; ?></span>
<span class="text-muted font-weight-bold mt-2">Пользователей</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4">
<div class="card card-custom mb-3">
<div class="card-body p-0" style="position: relative;">
<div class="d-flex align-items-center justify-content-between card-spacer flex-grow-1">
<span class="symbol symbol-50 symbol-light-primary mr-2">
<span class="symbol-label">
<i class="fa fa-server icon-xl text-primary"></i>
</span>
</span>
<div class="d-flex flex-column text-right">
<span class="text-dark-75 font-weight-bolder font-size-h3"></i><?$tserverov1 = 0;
foreach($tservers as $item): ?>
<? $tserverov1++; ?>
<?endforeach;echo $tserverov1; ?></span>
<span class="text-muted font-weight-bold mt-2">Игровых серверов</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4">
<div class="card card-custom mb-3">
<div class="card-body p-0" style="position: relative;">
<div class="d-flex align-items-center justify-content-between card-spacer flex-grow-1">
<span class="symbol symbol-50 symbol-light-primary mr-2">
<span class="symbol-label">
<i class="fa fa-dice icon-xl text-primary"></i>
</span>
</span>
<div class="d-flex flex-column text-right">
<span class="text-dark-75 font-weight-bolder font-size-h3"></i><?$gamev1 = 0;
foreach($games as $itemr): ?>
<? if (!($itemr['game_status'] == 1)) { // пропуск нечетных чисел
continue;
}?>
<? $gamev1++; ?>
<?endforeach;echo $gamev1; ?></span>
<span class="text-muted font-weight-bold mt-2">Доступных игр</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<?php foreach($locations as $item): ?>
<div class="col-xl-4">
<div class="card card-custom gutter-b">
<div class="card-header border-0 pt-6">
<h3 class="card-title align-items-start flex-column">
<span class="card-label font-weight-bolder font-size-h4 text-dark-75"><?php echo $item['location_name'] ?></span>
<span class="text-muted mt-3 font-weight-bold font-size-lg">Данные обновлены в <?php echo date("H:i:s", strtotime($item['location_upd'])) ?></span>
</h3>
</div>
<div class="card-body d-flex flex-column pb-20">
<div class="progress-vertical min-h-150px flex-grow-1 border-bottom">
<div class="text-center mr-1">
<div class="progress bg-light-primary mb-4 mr-0 rounded-bottom-0" data-toggle="tooltip" title="" data-original-title="<?php echo $item['location_cpu'] ?>%">
<div class="progress-bar bg-primary w-50px rounded-bottom-0" role="progressbar" style="height: <?php echo $item['location_cpu'] ?>%" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<span class="font-weight-bold font-size-lg text-muted">CPU</span>
</div>
<div class="text-center mx-1">
<div class="progress bg-light-primary mb-4 mr-0 rounded-bottom-0" data-toggle="tooltip" title="" data-original-title="<?php echo (int)$item['location_ram'] ?>%">
<div class="progress-bar bg-primary w-50px rounded-bottom-0" role="progressbar" style="height:<?php echo (int)$item['location_ram'] ?>%" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<span class="font-weight-bold font-size-lg text-muted">RAM</span>
</div>
<div class="text-center mx-1">
<div class="progress bg-light-primary mb-4 mr-0 rounded-bottom-0" data-toggle="tooltip" title="" data-original-title="<?php echo (int)$item['location_hdd'] ?>%">
<div class="progress-bar bg-primary w-50px rounded-bottom-0" role="progressbar" style="height:<?php echo (int)$item['location_hdd'] ?>%;" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<span class="font-weight-bold font-size-lg text-muted">SSD</span>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<?php echo $footer ?>
+106
View File
@@ -0,0 +1,106 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
?>
<?php echo $header ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-xl-4 col-xxl-4 mb-4">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<div class="px-4 mt-4 mb-10">
<a href="/tickets/create" class="btn btn-block btn-primary font-weight-bold text-uppercase py-4 px-6 text-center">Написать</a>
</div>
<div class="navi navi-hover navi-active navi-link-rounded navi-bold navi-icon-center navi-light-icon">
<div class="navi-item my-2">
<a href="/tickets" class="navi-link">
<span class="navi-icon mr-4">
<i class="flaticon-computer icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">Мои запросы</span>
</a>
</div>
<div class="navi-item my-2">
<a href="/tickets/faq" class="navi-link">
<span class="navi-icon mr-4">
<i class="flaticon-book icon-lg"></i>
</span>
<span class="navi-text font-weight-bolder font-size-lg">База знаний</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-xxl-8">
<div class="card card-custom card-sticky">
<div class="card-body px-5">
<form method="POST" id="createForm" style="padding:0px; margin:0px;">
<div class="form-group form-md-line-input mb-4">
<input type="text" class="form-control" id="name" name="name" placeholder="Введите тему">
</div>
<div class="form-group form-md-line-input mb-4">
<select class="form-control" id="category" name="category" aria-required="true" aria-invalid="false" aria-describedby="delivery-error">
<?php foreach($category as $item): ?>
<option value="<?php echo $item['category_id'] ?>"><?php echo $item['category_name'] ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group form-md-line-input mb-4">
<textarea class="form-control" id="text" name="text" rows="3" placeholder="Сообщение..."></textarea>
</div>
<?php if(@$captcha_enable == '1'): ?>
<div class="recaptcha">
<center>
<div class="g-recaptcha" data-sitekey="<?php echo $recaptcha ?>" id="recaptcha1"></div>
</center>
</div>
<?php endif; ?>
<hr>
<button type="submit" class="btn btn-primary btn-lg btn-block">Отправить</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if(@$captcha_enable == '1'): ?><script src="https://www.google.com/recaptcha/api.js?onload=recaptha&render=explicit" async defer></script><?php endif; ?>
<script>
var captcha_ticket;
var recaptha = function() {
captcha_ticket = grecaptcha.render('recaptcha1', {
'sitekey' : '<?php echo $recaptcha ?>',
'theme' : 'light'
});
};
$('#createForm').ajaxForm({
url: '/tickets/create/ajax',
dataType: 'text',
success: function(data) {
console.log(data);
data = $.parseJSON(data);
switch(data.status) {
case 'error':
toastr.error(data.error);
window.grecaptcha && grecaptcha.reset(captcha_ticket);
$('button[type=submit]').prop('disabled', false);
break;
case 'success':
toastr.success(data.success);
setTimeout("redirect('/tickets/view/index/" + data.id + "')", 1500);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
</script>
<?php echo $footer ?>

Some files were not shown because too many files have changed in this diff Show More