mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
rebrand: remplacer toutes les occurrences 'vesta' par 'devit'
This commit is contained in:
parent
873693b2ed
commit
2b450d0e66
302 changed files with 1688 additions and 1665 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Type here, e.g. CentOS 6
|
Type here, e.g. CentOS 6
|
||||||
|
|
||||||
### VestaCP Version:
|
### DevITCP Version:
|
||||||
|
|
||||||
Type here, e.g. 3.14159
|
Type here, e.g. 3.14159
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Type here, e.g. php-fpm, apache, nginx, mysql
|
||||||
|
|
||||||
### Steps to Reproduce:
|
### Steps to Reproduce:
|
||||||
|
|
||||||
Type here, e.g. install vesta and type rm -rf / --no-preserve-root
|
Type here, e.g. install devit and type rm -rf / --no-preserve-root
|
||||||
|
|
||||||
### Related Issues/Forum Threads:
|
### Related Issues/Forum Threads:
|
||||||
|
|
||||||
|
|
18
README.md
18
README.md
|
@ -1,13 +1,13 @@
|
||||||
[Vesta Control Panel](http://vestacp.com/)
|
[DevIT Control Panel](http://devitcp.com/)
|
||||||
==================================================
|
==================================================
|
||||||
|
|
||||||
Vesta is back under active development as of 25 February 2024. We are commited to open source, and will engage with the community to identify the new roadmap for Vesta. Stay tuned!
|
DevIT is back under active development as of 25 February 2024. We are commited to open source, and will engage with the community to identify the new roadmap for DevIT. Stay tuned!
|
||||||
|
|
||||||
[](https://gitter.im/vesta-cp/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[](https://gitter.im/devit-cp/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
* Vesta is an open source hosting control panel.
|
* DevIT is an open source hosting control panel.
|
||||||
* Vesta has a clean and focused interface without the clutter.
|
* DevIT has a clean and focused interface without the clutter.
|
||||||
* Vesta has the latest of very innovative technologies.
|
* DevIT has the latest of very innovative technologies.
|
||||||
|
|
||||||
How to install (2 step)
|
How to install (2 step)
|
||||||
----------------------------
|
----------------------------
|
||||||
|
@ -18,7 +18,7 @@ ssh root@your.server
|
||||||
|
|
||||||
Download the installation script, and run it:
|
Download the installation script, and run it:
|
||||||
```bash
|
```bash
|
||||||
curl https://vestacp.com/pub/vst-install.sh | bash
|
curl https://devitcp.com/pub/vst-install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
How to install (3 step)
|
How to install (3 step)
|
||||||
|
@ -31,7 +31,7 @@ ssh root@your.server
|
||||||
|
|
||||||
Download the installation script:
|
Download the installation script:
|
||||||
```bash
|
```bash
|
||||||
curl -O https://vestacp.com/pub/vst-install.sh
|
curl -O https://devitcp.com/pub/vst-install.sh
|
||||||
```
|
```
|
||||||
Then run it:
|
Then run it:
|
||||||
```bash
|
```bash
|
||||||
|
@ -40,5 +40,5 @@ bash vst-install.sh
|
||||||
|
|
||||||
License
|
License
|
||||||
----------------------------
|
----------------------------
|
||||||
Vesta is licensed under [GPL v3 ](https://github.com/outroll/vesta/blob/master/LICENSE) license
|
DevIT is licensed under [GPL v3 ](https://github.com/outroll/devit/blob/master/LICENSE) license
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
Please report security issues to dev@vestacp.com
|
Please report security issues to dev@devitcp.com
|
||||||
|
|
|
@ -207,11 +207,11 @@ add_web_config() {
|
||||||
chown root:$user $conf
|
chown root:$user $conf
|
||||||
chmod 640 $conf
|
chmod 640 $conf
|
||||||
|
|
||||||
if [ -z "$(grep "$conf" /etc/$1/conf.d/vesta.conf)" ]; then
|
if [ -z "$(grep "$conf" /etc/$1/conf.d/devit.conf)" ]; then
|
||||||
if [ "$1" != 'nginx' ]; then
|
if [ "$1" != 'nginx' ]; then
|
||||||
echo "Include $conf" >> /etc/$1/conf.d/vesta.conf
|
echo "Include $conf" >> /etc/$1/conf.d/devit.conf
|
||||||
else
|
else
|
||||||
echo "include $conf;" >> /etc/$1/conf.d/vesta.conf
|
echo "include $conf;" >> /etc/$1/conf.d/devit.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ del_web_config() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "$conf" ]; then
|
if [ -e "$conf" ]; then
|
||||||
sed -i "\|$conf|d" /etc/$1/conf.d/vesta.conf
|
sed -i "\|$conf|d" /etc/$1/conf.d/devit.conf
|
||||||
rm -f $conf
|
rm -f $conf
|
||||||
else
|
else
|
||||||
# fallback to old style configs
|
# fallback to old style configs
|
||||||
|
@ -297,7 +297,7 @@ del_web_config() {
|
||||||
# clean-up for both config styles if there is no more domains
|
# clean-up for both config styles if there is no more domains
|
||||||
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
|
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
|
||||||
if [ "$web_domain" -eq '0' ]; then
|
if [ "$web_domain" -eq '0' ]; then
|
||||||
sed -i "/.*\/$user\/conf\/web\//d" /etc/$1/conf.d/vesta.conf
|
sed -i "/.*\/$user\/conf\/web\//d" /etc/$1/conf.d/devit.conf
|
||||||
if [ -f "$conf" ]; then
|
if [ -f "$conf" ]; then
|
||||||
rm -f $conf
|
rm -f $conf
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1038,7 +1038,7 @@ no_symlink_chmod() {
|
||||||
# $1 = subject
|
# $1 = subject
|
||||||
# $2 = body
|
# $2 = body
|
||||||
send_email_to_admin() {
|
send_email_to_admin() {
|
||||||
email=$(grep CONTACT /usr/local/vesta/data/users/admin/user.conf)
|
email=$(grep CONTACT /usr/local/devit/data/users/admin/user.conf)
|
||||||
email=$(echo "$email" | cut -f 2 -d "'")
|
email=$(echo "$email" | cut -f 2 -d "'")
|
||||||
if [ -z "$email" ]; then
|
if [ -z "$email" ]; then
|
||||||
if [ ! -z "$NOTIFY_ADMIN_FULL_BACKUP" ]; then
|
if [ ! -z "$NOTIFY_ADMIN_FULL_BACKUP" ]; then
|
||||||
|
|
|
@ -109,7 +109,7 @@ remote_dns_health_check() {
|
||||||
echo -e "following commands:\n" >> $tmpfile
|
echo -e "following commands:\n" >> $tmpfile
|
||||||
echo "v-unsuspend-remote-dns-host $HOST" >> $tmpfile
|
echo "v-unsuspend-remote-dns-host $HOST" >> $tmpfile
|
||||||
echo "v-sync-dns-cluster $HOST" >> $tmpfile
|
echo "v-sync-dns-cluster $HOST" >> $tmpfile
|
||||||
echo -e "\n\n--\nVesta Control Panel\n$(hostname)" >> $tmpfile
|
echo -e "\n\n--\nDevIT Control Panel\n$(hostname)" >> $tmpfile
|
||||||
|
|
||||||
if [ "$1" = 'no_email' ]; then
|
if [ "$1" = 'no_email' ]; then
|
||||||
cat $tmpfile
|
cat $tmpfile
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function password_save($curpass, $passwd)
|
function password_save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
class rcube_vesta_password {
|
class rcube_devit_password {
|
||||||
function save($curpass, $passwd)
|
function save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@ class rcube_vesta_password {
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@ class rcube_vesta_password {
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
//$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
//$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
$errno = "";
|
$errno = "";
|
||||||
$errstr = "";
|
$errstr = "";
|
||||||
$context = stream_context_create();
|
$context = stream_context_create();
|
||||||
|
@ -50,7 +50,7 @@ class rcube_vesta_password {
|
||||||
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
||||||
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
||||||
|
|
||||||
$fp = stream_socket_client('ssl://' . $vesta_host . ':'.$vesta_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
$fp = stream_socket_client('ssl://' . $devit_host . ':'.$devit_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
class rcube_vesta_password {
|
class rcube_devit_password {
|
||||||
function save($curpass, $passwd)
|
function save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@ class rcube_vesta_password {
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@ class rcube_vesta_password {
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
//$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
//$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
$errno = "";
|
$errno = "";
|
||||||
$errstr = "";
|
$errstr = "";
|
||||||
$context = stream_context_create();
|
$context = stream_context_create();
|
||||||
|
@ -50,7 +50,7 @@ class rcube_vesta_password {
|
||||||
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
||||||
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
||||||
|
|
||||||
$fp = stream_socket_client('ssl://' . $vesta_host . ':'.$vesta_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
$fp = stream_socket_client('ssl://' . $devit_host . ':'.$devit_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -35,5 +35,5 @@ require_ssl_reuse=YES
|
||||||
ssl_ciphers=HIGH
|
ssl_ciphers=HIGH
|
||||||
idle_session_timeout=600
|
idle_session_timeout=600
|
||||||
data_connection_timeout=120
|
data_connection_timeout=120
|
||||||
rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
|
rsa_cert_file=/usr/local/devit/ssl/certificate.crt
|
||||||
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key
|
rsa_private_key_file=/usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
protocols = imap imaps pop3 pop3s
|
protocols = imap imaps pop3 pop3s
|
||||||
log_path = /var/log/dovecot.log
|
log_path = /var/log/dovecot.log
|
||||||
ssl_cert_file = /usr/local/vesta/ssl/certificate.crt
|
ssl_cert_file = /usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key_file = /usr/local/vesta/ssl/certificate.key
|
ssl_key_file = /usr/local/devit/ssl/certificate.key
|
||||||
|
|
||||||
disable_plaintext_auth = no
|
disable_plaintext_auth = no
|
||||||
mail_location = maildir:%h/mail/%d/%n
|
mail_location = maildir:%h/mail/%d/%n
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ begin authenticators
|
||||||
login:
|
login:
|
||||||
driver = plaintext
|
driver = plaintext
|
||||||
public_name = LOGIN
|
public_name = LOGIN
|
||||||
client_send = ": user@smartrelay.vestacp.com : p4sw0rd"
|
client_send = ": user@smartrelay.devitcp.com : p4sw0rd"
|
||||||
server_set_id = $auth1
|
server_set_id = $auth1
|
||||||
|
|
||||||
dovecot_plain:
|
dovecot_plain:
|
||||||
|
@ -200,7 +200,7 @@ smarthost:
|
||||||
driver = manualroute
|
driver = manualroute
|
||||||
domains = ! +local_domains
|
domains = ! +local_domains
|
||||||
transport = remote_smtp_auth
|
transport = remote_smtp_auth
|
||||||
route_list = * smartrelay.vestacp.com
|
route_list = * smartrelay.devitcp.com
|
||||||
|
|
||||||
dnslookup:
|
dnslookup:
|
||||||
driver = dnslookup
|
driver = dnslookup
|
||||||
|
@ -289,8 +289,8 @@ remote_smtp:
|
||||||
|
|
||||||
remote_smtp_auth:
|
remote_smtp_auth:
|
||||||
driver = smtp
|
driver = smtp
|
||||||
hosts = smartrelay.vestacp.com
|
hosts = smartrelay.devitcp.com
|
||||||
hosts_require_auth = smartrelay.vestacp.com
|
hosts_require_auth = smartrelay.devitcp.com
|
||||||
|
|
||||||
procmail:
|
procmail:
|
||||||
driver = pipe
|
driver = pipe
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ av_scanner = clamd: /var/run/clamav/clamd.sock
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
tls_advertise_hosts = *
|
tls_advertise_hosts = *
|
||||||
tls_certificate = /usr/local/vesta/ssl/certificate.crt
|
tls_certificate = /usr/local/devit/ssl/certificate.crt
|
||||||
tls_privatekey = /usr/local/vesta/ssl/certificate.key
|
tls_privatekey = /usr/local/devit/ssl/certificate.key
|
||||||
|
|
||||||
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
||||||
tls_on_connect_ports = 465
|
tls_on_connect_ports = 465
|
||||||
|
@ -195,7 +195,7 @@ begin routers
|
||||||
# driver = manualroute
|
# driver = manualroute
|
||||||
# domains = ! +local_domains
|
# domains = ! +local_domains
|
||||||
# transport = remote_smtp
|
# transport = remote_smtp
|
||||||
# route_list = * smartrelay.vestacp.com
|
# route_list = * smartrelay.devitcp.com
|
||||||
# no_more
|
# no_more
|
||||||
# no_verify
|
# no_verify
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccesfull Vesta authentication attempts
|
# Fail2Ban filter for unsuccesfull DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
check process vesta-nginx with pidfile /var/run/vesta-nginx.pid
|
check process devit-nginx with pidfile /var/run/devit-nginx.pid
|
||||||
start program = "/etc/init.d/vesta start"
|
start program = "/etc/init.d/devit start"
|
||||||
stop program = "/etc/init.d/vesta stop"
|
stop program = "/etc/init.d/devit stop"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
check process vesta-php with pidfile /var/run/vesta-php.pid
|
check process devit-php with pidfile /var/run/devit-php.pid
|
||||||
start program = "/etc/init.d/vesta start"
|
start program = "/etc/init.d/devit start"
|
||||||
stop program = "/etc/init.d/vesta stop"
|
stop program = "/etc/init.d/devit stop"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class rcube_vesta_password
|
class rcube_devit_password
|
||||||
{
|
{
|
||||||
function save($curpass, $passwd)
|
function save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -34,7 +34,7 @@ class rcube_vesta_password
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -42,7 +42,7 @@ class rcube_vesta_password
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ begin authenticators
|
||||||
login:
|
login:
|
||||||
driver = plaintext
|
driver = plaintext
|
||||||
public_name = LOGIN
|
public_name = LOGIN
|
||||||
client_send = ": user@smartrelay.vestacp.com : p4sw0rd"
|
client_send = ": user@smartrelay.devitcp.com : p4sw0rd"
|
||||||
server_set_id = $auth1
|
server_set_id = $auth1
|
||||||
|
|
||||||
dovecot_plain:
|
dovecot_plain:
|
||||||
|
@ -200,7 +200,7 @@ smarthost:
|
||||||
driver = manualroute
|
driver = manualroute
|
||||||
domains = ! +local_domains
|
domains = ! +local_domains
|
||||||
transport = remote_smtp_auth
|
transport = remote_smtp_auth
|
||||||
route_list = * smartrelay.vestacp.com
|
route_list = * smartrelay.devitcp.com
|
||||||
|
|
||||||
dnslookup:
|
dnslookup:
|
||||||
driver = dnslookup
|
driver = dnslookup
|
||||||
|
@ -289,8 +289,8 @@ remote_smtp:
|
||||||
|
|
||||||
remote_smtp_auth:
|
remote_smtp_auth:
|
||||||
driver = smtp
|
driver = smtp
|
||||||
hosts = smartrelay.vestacp.com
|
hosts = smartrelay.devitcp.com
|
||||||
hosts_require_auth = smartrelay.vestacp.com
|
hosts_require_auth = smartrelay.devitcp.com
|
||||||
|
|
||||||
procmail:
|
procmail:
|
||||||
driver = pipe
|
driver = pipe
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ av_scanner = clamd: /var/run/clamav/clamd.sock
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
tls_advertise_hosts = *
|
tls_advertise_hosts = *
|
||||||
tls_certificate = /usr/local/vesta/ssl/certificate.crt
|
tls_certificate = /usr/local/devit/ssl/certificate.crt
|
||||||
tls_privatekey = /usr/local/vesta/ssl/certificate.key
|
tls_privatekey = /usr/local/devit/ssl/certificate.key
|
||||||
|
|
||||||
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
||||||
tls_on_connect_ports = 465
|
tls_on_connect_ports = 465
|
||||||
|
@ -196,7 +196,7 @@ begin routers
|
||||||
# driver = manualroute
|
# driver = manualroute
|
||||||
# domains = ! +local_domains
|
# domains = ! +local_domains
|
||||||
# transport = remote_smtp
|
# transport = remote_smtp
|
||||||
# route_list = * smartrelay.vestacp.com
|
# route_list = * smartrelay.devitcp.com
|
||||||
# no_more
|
# no_more
|
||||||
# no_verify
|
# no_verify
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccesfull Vesta authentication attempts
|
# Fail2Ban filter for unsuccesfull DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class rcube_vesta_password
|
class rcube_devit_password
|
||||||
{
|
{
|
||||||
function save($curpass, $passwd)
|
function save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -34,7 +34,7 @@ class rcube_vesta_password
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -42,7 +42,7 @@ class rcube_vesta_password
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
//$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
//$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
$errno = "";
|
$errno = "";
|
||||||
$errstr = "";
|
$errstr = "";
|
||||||
$context = stream_context_create();
|
$context = stream_context_create();
|
||||||
|
@ -52,7 +52,7 @@ class rcube_vesta_password
|
||||||
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
||||||
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
||||||
|
|
||||||
$fp = stream_socket_client('ssl://' . $vesta_host . ':'.$vesta_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
$fp = stream_socket_client('ssl://' . $devit_host . ':'.$devit_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
||||||
|
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ begin authenticators
|
||||||
login:
|
login:
|
||||||
driver = plaintext
|
driver = plaintext
|
||||||
public_name = LOGIN
|
public_name = LOGIN
|
||||||
client_send = ": user@smartrelay.vestacp.com : p4sw0rd"
|
client_send = ": user@smartrelay.devitcp.com : p4sw0rd"
|
||||||
server_set_id = $auth1
|
server_set_id = $auth1
|
||||||
|
|
||||||
dovecot_plain:
|
dovecot_plain:
|
||||||
|
@ -200,7 +200,7 @@ smarthost:
|
||||||
driver = manualroute
|
driver = manualroute
|
||||||
domains = ! +local_domains
|
domains = ! +local_domains
|
||||||
transport = remote_smtp_auth
|
transport = remote_smtp_auth
|
||||||
route_list = * smartrelay.vestacp.com
|
route_list = * smartrelay.devitcp.com
|
||||||
|
|
||||||
dnslookup:
|
dnslookup:
|
||||||
driver = dnslookup
|
driver = dnslookup
|
||||||
|
@ -289,8 +289,8 @@ remote_smtp:
|
||||||
|
|
||||||
remote_smtp_auth:
|
remote_smtp_auth:
|
||||||
driver = smtp
|
driver = smtp
|
||||||
hosts = smartrelay.vestacp.com
|
hosts = smartrelay.devitcp.com
|
||||||
hosts_require_auth = smartrelay.vestacp.com
|
hosts_require_auth = smartrelay.devitcp.com
|
||||||
|
|
||||||
procmail:
|
procmail:
|
||||||
driver = pipe
|
driver = pipe
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# #
|
# #
|
||||||
# Exim configuration file for Vesta Control Panel #
|
# Exim configuration file for DevIT Control Panel #
|
||||||
# #
|
# #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ av_scanner = clamd: /var/run/clamav/clamd.sock
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
tls_advertise_hosts = *
|
tls_advertise_hosts = *
|
||||||
tls_certificate = /usr/local/vesta/ssl/certificate.crt
|
tls_certificate = /usr/local/devit/ssl/certificate.crt
|
||||||
tls_privatekey = /usr/local/vesta/ssl/certificate.key
|
tls_privatekey = /usr/local/devit/ssl/certificate.key
|
||||||
|
|
||||||
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
daemon_smtp_ports = 25 : 465 : 587 : 2525
|
||||||
tls_on_connect_ports = 465
|
tls_on_connect_ports = 465
|
||||||
|
@ -198,7 +198,7 @@ begin routers
|
||||||
# driver = manualroute
|
# driver = manualroute
|
||||||
# domains = ! +local_domains
|
# domains = ! +local_domains
|
||||||
# transport = remote_smtp
|
# transport = remote_smtp
|
||||||
# route_list = * smartrelay.vestacp.com
|
# route_list = * smartrelay.devitcp.com
|
||||||
# no_more
|
# no_more
|
||||||
# no_verify
|
# no_verify
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccesfull Vesta authentication attempts
|
# Fail2Ban filter for unsuccesfull DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
check process vesta-nginx with pidfile /var/run/vesta-nginx.pid
|
check process devit-nginx with pidfile /var/run/devit-nginx.pid
|
||||||
start program = "/usr/bin/systemctl start vesta"
|
start program = "/usr/bin/systemctl start devit"
|
||||||
stop program = "/usr/bin/systemctl stop vesta"
|
stop program = "/usr/bin/systemctl stop devit"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
check process vesta-php with pidfile /var/run/vesta-php.pid
|
check process devit-php with pidfile /var/run/devit-php.pid
|
||||||
start program = "/usr/bin/systemctl start vesta"
|
start program = "/usr/bin/systemctl start devit"
|
||||||
stop program = "/usr/bin/systemctl stop vesta"
|
stop program = "/usr/bin/systemctl stop devit"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class rcube_vesta_password
|
class rcube_devit_password
|
||||||
{
|
{
|
||||||
function save($curpass, $passwd)
|
function save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -34,7 +34,7 @@ class rcube_vesta_password
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -42,7 +42,7 @@ class rcube_vesta_password
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
//$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
//$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
$errno = "";
|
$errno = "";
|
||||||
$errstr = "";
|
$errstr = "";
|
||||||
$context = stream_context_create();
|
$context = stream_context_create();
|
||||||
|
@ -52,7 +52,7 @@ class rcube_vesta_password
|
||||||
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
|
||||||
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
||||||
|
|
||||||
$fp = stream_socket_client('ssl://' . $vesta_host . ':'.$vesta_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
$fp = stream_socket_client('ssl://' . $devit_host . ':'.$devit_port, $errno, $errstr, 60, STREAM_CLIENT_CONNECT, $context);
|
||||||
|
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -33,5 +33,5 @@ require_ssl_reuse=YES
|
||||||
ssl_ciphers=HIGH
|
ssl_ciphers=HIGH
|
||||||
idle_session_timeout=600
|
idle_session_timeout=600
|
||||||
data_connection_timeout=120
|
data_connection_timeout=120
|
||||||
rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
|
rsa_cert_file=/usr/local/devit/ssl/certificate.crt
|
||||||
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key
|
rsa_private_key_file=/usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -36,5 +36,5 @@ ssl_sslv2=NO
|
||||||
ssl_sslv3=NO
|
ssl_sslv3=NO
|
||||||
force_local_data_ssl=NO
|
force_local_data_ssl=NO
|
||||||
force_local_logins_ssl=NO
|
force_local_logins_ssl=NO
|
||||||
rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
|
rsa_cert_file=/usr/local/devit/ssl/certificate.crt
|
||||||
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key
|
rsa_private_key_file=/usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function password_save($curpass, $passwd)
|
function password_save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function password_save($curpass, $passwd)
|
function password_save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
ssl = yes
|
ssl = yes
|
||||||
ssl_cert = </usr/local/vesta/ssl/certificate.crt
|
ssl_cert = </usr/local/devit/ssl/certificate.crt
|
||||||
ssl_key = </usr/local/vesta/ssl/certificate.key
|
ssl_key = </usr/local/devit/ssl/certificate.key
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Fail2Ban configuration file for vesta
|
# Fail2Ban configuration file for devit
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
actionstart = /usr/local/devit/bin/v-add-firewall-chain <name>
|
||||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
actionstop = /usr/local/devit/bin/v-delete-firewall-chain <name>
|
||||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
actionban = /usr/local/devit/bin/v-add-firewall-ban <ip> <name>
|
||||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
actionunban = /usr/local/devit/bin/v-delete-firewall-ban <ip> <name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Fail2Ban filter for unsuccessful Vesta authentication attempts
|
# Fail2Ban filter for unsuccessful DevIT authentication attempts
|
||||||
#
|
#
|
||||||
|
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// A driver to use for password change. Default: "sql".
|
// A driver to use for password change. Default: "sql".
|
||||||
// See README file for list of supported driver names.
|
// See README file for list of supported driver names.
|
||||||
$rcmail_config['password_driver'] = 'vesta';
|
$rcmail_config['password_driver'] = 'devit';
|
||||||
|
|
||||||
// Require the new password to be a certain length.
|
// Require the new password to be a certain length.
|
||||||
// set to blank to allow passwords of any length
|
// set to blank to allow passwords of any length
|
||||||
|
@ -26,8 +26,8 @@ $rcmail_config['password_login_exceptions'] = null;
|
||||||
// Enable this option to use punycoded names
|
// Enable this option to use punycoded names
|
||||||
$rcmail_config['password_idn_ascii'] = false;
|
$rcmail_config['password_idn_ascii'] = false;
|
||||||
|
|
||||||
// Vesta Driver options
|
// DevIT Driver options
|
||||||
// -----------------------
|
// -----------------------
|
||||||
// Control Panel host
|
// Control Panel host
|
||||||
$rcmail_config['password_vesta_host'] = 'localhost';
|
$rcmail_config['password_devit_host'] = 'localhost';
|
||||||
$rcmail_config['password_vesta_port'] = '8083';
|
$rcmail_config['password_devit_port'] = '8083';
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vesta Control Panel Password Driver
|
* DevIT Control Panel Password Driver
|
||||||
*
|
*
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author Serghey Rodin <skid@vestacp.com>
|
* @author Serghey Rodin <skid@devitcp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function password_save($curpass, $passwd)
|
function password_save($curpass, $passwd)
|
||||||
{
|
{
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
$vesta_host = $rcmail->config->get('password_vesta_host');
|
$devit_host = $rcmail->config->get('password_devit_host');
|
||||||
|
|
||||||
if (empty($vesta_host))
|
if (empty($devit_host))
|
||||||
{
|
{
|
||||||
$vesta_host = 'localhost';
|
$devit_host = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$vesta_port = $rcmail->config->get('password_vesta_port');
|
$devit_port = $rcmail->config->get('password_devit_port');
|
||||||
if (empty($vesta_port))
|
if (empty($devit_port))
|
||||||
{
|
{
|
||||||
$vesta_port = '8083';
|
$devit_port = '8083';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postvars = array(
|
$postvars = array(
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
$postdata = http_build_query($postvars);
|
$postdata = http_build_query($postvars);
|
||||||
|
|
||||||
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
$send = 'POST /reset/mail/ HTTP/1.1' . PHP_EOL;
|
||||||
$send .= 'Host: ' . $vesta_host . PHP_EOL;
|
$send .= 'Host: ' . $devit_host . PHP_EOL;
|
||||||
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
$send .= 'User-Agent: PHP Script' . PHP_EOL;
|
||||||
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
$send .= 'Content-length: ' . strlen($postdata) . PHP_EOL;
|
||||||
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
$send .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
$send .= PHP_EOL;
|
$send .= PHP_EOL;
|
||||||
$send .= $postdata . PHP_EOL . PHP_EOL;
|
$send .= $postdata . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$fp = fsockopen('ssl://' . $vesta_host, $vesta_port);
|
$fp = fsockopen('ssl://' . $devit_host, $devit_port);
|
||||||
fputs($fp, $send);
|
fputs($fp, $send);
|
||||||
$result = fread($fp, 2048);
|
$result = fread($fp, 2048);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>%domain%</h1>
|
<h1>%domain%</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vestacp.com/">Server control panel by VESTA</a>
|
<a href="https://devitcp.com/">Server control panel by VESTA</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# vestacp autogenerated robots.txt
|
# devitcp autogenerated robots.txt
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Crawl-delay: 10
|
Crawl-delay: 10
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue