Сборка 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
+299
View File
@@ -0,0 +1,299 @@
<?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-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">
<div class="navi-item my-2">
<a href="javascript:;" data-toggle="modal" data-target="#pay" class="navi-link">
<span class="navi-icon mr-3">
<span class="svg-icon svg-icon-lg">
<i class="fa fa-cart-plus"></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-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 class="card-toolbar">
<a href="javascript:;" data-toggle="modal" data-target="#pay" 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 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>
<!--begin::Modal-->
<div class="modal fade" id="pay" 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="payForm" method="POST" style="padding:0px; margin:0px;">
<div class="modal-body">
<div class="form-group mb-2">
<div class="input-group">
<select style="width:340px;" class="form-control" id="days" name="days" onchange="updatePrice()">
<option value="15">15 дней</option>
<option value="30">30 дней</option>
<option value="60">60 дней</option>
<option value="90">90 дней</option>
<option value="180">180 дней</option>
<option value="360">360 дней</option>
</select>
</div>
</div>
<div class="d-flex align-items-center bg-light-primary rounded p-4 mb-2">
<i class="flaticon-exclamation icon-xl text-primary mr-5"></i>
<div class="d-flex flex-column flex-grow-1 mr-2">
<span class="font-weight-bolder text-primary py-1 font-size-lg">Итого к оплате: <span id="price2">0.00 RUB</span></span>
</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>
</div>
</form>
</div>
</div>
</div>
<!--end::Modal-->
<?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: '/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);
}
}
$('#payForm').ajaxForm({
url: '/webhost/control/buy_months/<?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()",1000);
break;
}
},
beforeSubmit: function(arr, $form, options) {
$('button[type=submit]').prop('disabled', true);
}
});
$(document).ready(function() {
updatePrice();
});
function updatePrice() {
var price2 = <?php echo $webhost['tarif_price'] ?>;
var days = $("#days option:selected").val();
switch(days) {
case "15":
price2 = price2 / 2;
break;
case "30":
break;
case "60":
price2 = price2 * 2;
break;
case "90":
price2 = 3 * price2;
break;
case "180":
price2 = 6 * price2;
break;
case "360":
price2 = 12 * price2;
break;
}
$('#price2').text(price2.toFixed(2) + ' руб. Дней: ' + days);
}
</script>
<?php echo $footer ?>
+55
View File
@@ -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="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="/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="/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 ?>
+308
View File
@@ -0,0 +1,308 @@
<?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="tarifid" name="tarifid" onChange="updateForm()">
<?php foreach($tarifs as $item): ?>
<option value="<?php echo $item['tarif_id'] ?>"><?php echo $item['tarif_name'] ?></option>
<?php endforeach; ?>
<?php if(empty($tarifs)): ?>
<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">
<?php foreach($locations as $item): ?>
<option value="<?php echo $item['location_id'] ?>" class="<?php echo $item['location_tarifs'] ?>"><?php echo $item['location_name'] ?></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" 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>
</select>
</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>
<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>
</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">Скоростные 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("#tarifid");
});
</script>
<script>
var tarifData = {
<?php foreach($tarifs as $item): ?>
<?php echo $item['tarif_id'] ?>: {
'price': <?php echo $item['tarif_price'] ?>
},
<?php endforeach; ?>
};
$('#orderForm').ajaxForm({
url: '/webhost/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('/webhost/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("/webhost/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 tarifID = $("#tarifid option:selected").val();
var price = tarifData[tarifID]['price'];
var days = $("#days option:selected").val();
switch(days) {
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) + ' руб.');
}
</script>
<?php echo $footer ?>