From bb145d234a17800f8e43545899c8df9b363391a5 Mon Sep 17 00:00:00 2001 From: Cameron McDonald Date: Mon, 15 Dec 2014 10:49:37 -0600 Subject: [PATCH 01/20] Cut blank lines when counting domains for IP addresses to prevent reporting 1 for an IP that has zero. --- bin/v-update-sys-ip-counters | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-update-sys-ip-counters b/bin/v-update-sys-ip-counters index dd51f9e9..13f7a7c3 100755 --- a/bin/v-update-sys-ip-counters +++ b/bin/v-update-sys-ip-counters @@ -45,7 +45,7 @@ for ip in $ip_list; do # Calculate usage ip_usage=$(grep -H $ip $VESTA/data/users/*/web.conf) - web_domains=$(echo "$ip_usage"| wc -l) + web_domains=$(echo "$ip_usage" | sed '/^$/' | wc -l) sys_users=$(echo "$ip_usage" | cut -f7 -d/ | sort -u |\ tr '\n' ',' | sed "s/,$//g") From ea1a9b23c482335ce9ab2453ea6b4f24eb683007 Mon Sep 17 00:00:00 2001 From: Cameron McDonald Date: Mon, 15 Dec 2014 10:57:55 -0600 Subject: [PATCH 02/20] added critical missing "d" from sed command. doh! --- bin/v-update-sys-ip-counters | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-update-sys-ip-counters b/bin/v-update-sys-ip-counters index 13f7a7c3..bafeed13 100755 --- a/bin/v-update-sys-ip-counters +++ b/bin/v-update-sys-ip-counters @@ -45,7 +45,7 @@ for ip in $ip_list; do # Calculate usage ip_usage=$(grep -H $ip $VESTA/data/users/*/web.conf) - web_domains=$(echo "$ip_usage" | sed '/^$/' | wc -l) + web_domains=$(echo "$ip_usage" | sed '/^$/d' | wc -l) sys_users=$(echo "$ip_usage" | cut -f7 -d/ | sort -u |\ tr '\n' ',' | sed "s/,$//g") From c426be582a111062beab5a013024238a08564c98 Mon Sep 17 00:00:00 2001 From: Leonid Suprun Date: Mon, 26 Jan 2015 11:59:09 +0300 Subject: [PATCH 03/20] apt-get, not yum --- install/vst-install-debian.sh | 4 ++-- install/vst-install-ubuntu.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index a188c065..c4e4620b 100644 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -26,7 +26,7 @@ help() { -f, --force Force installation -i, --disable-iptables Disable iptables support -b, --disable-fail2ban Disable fail2ban protection - -n, --noupdate Do not run yum update command + -n, --noupdate Do not run apt-get upgrade command -s, --hostname Set server hostname -e, --email Set email address -p, --password Set admin password instead of generating it @@ -78,7 +78,7 @@ while getopts "hfibdnqe:m:p:s:" Option; do f) force='yes' ;; # Force install i) disable_iptables='yes' ;; # Disable iptables b) disable_fail2ban='yes' ;; # Disable fail2ban - n) noupdate='yes' ;; # Disable yum update + n) noupdate='yes' ;; # Disable apt-get upgrade s) servername=$OPTARG ;; # Server hostname e) email=$OPTARG ;; # Set email p) vpass=$OPTARG ;; # Admin password diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 7f05f58d..dfc64ff7 100644 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -25,7 +25,7 @@ help() { -f, --force Force installation -i, --disable-iptables Disable iptables support -b, --disable-fail2ban Disable fail2ban protection - -n, --noupdate Do not run yum update command + -n, --noupdate Do not run apt-get upgrade command -s, --hostname Set server hostname -e, --email Set email address -p, --password Set admin password instead of generating it @@ -77,7 +77,7 @@ while getopts "hfibdnqe:m:p:s:" Option; do f) force='yes' ;; # Force install i) disable_iptables='yes' ;; # Disable iptables b) disable_fail2ban='yes' ;; # Disable fail2ban - n) noupdate='yes' ;; # Disable yum update + n) noupdate='yes' ;; # Disable apt-get upgrade s) servername=$OPTARG ;; # Server hostname e) email=$OPTARG ;; # Set email p) vpass=$OPTARG ;; # Admin password From c1195d1f30f8e50b62be677d765be1dd4d7d3972 Mon Sep 17 00:00:00 2001 From: Leonid Suprun Date: Mon, 26 Jan 2015 12:32:37 +0300 Subject: [PATCH 04/20] Clarify "user admin exists" message --- install/vst-install-debian.sh | 6 +++--- install/vst-install-rhel.sh | 6 +++--- install/vst-install-ubuntu.sh | 6 +++--- install/vst-install.sh | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index c4e4620b..d5e8110a 100644 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -126,11 +126,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then exit 1 fi -# Check admin user account +# Check admin group if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then - echo "Error: user admin exists" + echo "Error: group admin exists" echo - echo 'Please remove admin user account before proceeding.' + echo 'Please remove admin group before proceeding.' echo 'If you want to do it automatically run installer with -f option:' echo "Example: bash $0 --force" exit 1 diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index ab1692a8..218c0840 100644 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -124,11 +124,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then exit 1 fi -# Check admin user account +# Check admin group if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then - echo "Error: user admin exists" + echo "Error: group admin exists" echo - echo 'Please remove admin user account before proceeding.' + echo 'Please remove admin group before proceeding.' echo 'If you want to do it automatically run installer with -f option:' echo "Example: bash $0 --force" exit 1 diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index dfc64ff7..6d131956 100644 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -123,11 +123,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then exit 1 fi -# Check admin user account +# Check admin group if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then - echo "Error: user admin exists" + echo "Error: group admin exists" echo - echo 'Please remove admin user account before proceeding.' + echo 'Please remove admin group before proceeding.' echo 'If you want to do it automatically run installer with -f option:' echo "Example: bash $0 --force" exit 1 diff --git a/install/vst-install.sh b/install/vst-install.sh index 864b671d..9c064ab0 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -27,11 +27,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$1" ]; then exit 1 fi -# Check admin user account +# Check admin group if [ ! -z "$(grep ^admin: /etc/group)" ] && [ -z "$1" ]; then echo "Error: group admin exists" echo - echo 'Please remove admin user account before proceeding.' + echo 'Please remove admin group before proceeding.' echo 'If you want to do it automatically run installer with -f option:' echo "Example: bash $0 --force" exit 1 From df789310fbfd43d6574ecfb76608d7ddbb110ee7 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 20 Feb 2015 22:09:41 +0200 Subject: [PATCH 05/20] Fix for better backup.conf cleaning --- bin/v-backup-user | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/bin/v-backup-user b/bin/v-backup-user index 6b78b4a4..17211c98 100755 --- a/bin/v-backup-user +++ b/bin/v-backup-user @@ -536,11 +536,8 @@ TIME=$(date +%T) # Defining local storage function local_backup(){ - # Removing dublicate for this day - if [ -e "$BACKUP/$user.$DATE.tar" ]; then - deprecated="$DATE" - rm -f $BACKUP/$user.$DATE.tar - fi + + rm -f $BACKUP/$user.$DATE.tar # Checking retention backup_list=$(ls -lrt $BACKUP/ | awk '{print $9}' |grep "^$user\.") @@ -549,10 +546,9 @@ local_backup(){ backups_rm_number=$((backups_count - BACKUPS)) (( ++backups_rm_number)) + # Removing old backup for backup in $(echo "$backup_list" | head -n $backups_rm_number); do - # Removing old backup backup_date=$(echo $backup | sed -e "s/$user.//" -e "s/.tar$//") - deprecated="$deprecated $backup_date" echo -e "$(date "+%F %T") Roated: $backup_date" msg="$msg\n$(date "+%F %T") Rotated: $backup_date" rm -f $BACKUP/$backup @@ -672,7 +668,6 @@ ftp_backup() { backups_rm_number=$((backups_count - BACKUPS + 1)) for backup in $(echo "$backup_list" | head -n $backups_rm_number); do backup_date=$(echo $backup | sed -e "s/$user.//" -e "s/.tar$//") - deprecated="$deprecated $backup" echo -e "$(date "+%F %T") Roated ftp backup: $backup_date" msg="$msg\n$(date "+%F %T") Roated ftp backup: $backup_date" ftpc "cd $BPATH" "delete $backup" @@ -704,7 +699,6 @@ for backup_type in $(echo -e "${BACKUP_SYSTEM//,/\\n}"); do done # Removing tmpdir -cd / rm -rf $tmpdir # Calculation run time @@ -729,14 +723,11 @@ msg="$msg\n$(date "+%F %T") Runtime: $run_time $min" # Vesta # #----------------------------------------------------------# -# Deleting old backup records -for backup_record in $deprecated; do - if [ -e "$USER_DATA/backup.conf" ]; then - sed -i "/DATE='$backup_record/d" $USER_DATA/backup.conf - fi -done +# Removing duplicate +touch $USER_DATA/backup.conf +sed -i "/$user.$DATE.tar/d" $USER_DATA/backup.conf -# Concatenating string +# Regestering new backup backup_str="BACKUP='$user.$DATE.tar'" backup_str="$backup_str TYPE='$BACKUP_SYSTEM' SIZE='$size'" backup_str="$backup_str WEB='${web_list// /,}'" @@ -747,9 +738,13 @@ backup_str="$backup_str CRON='$cron_list'" backup_str="$backup_str UDIR='${udir_list// /,}'" backup_str="$backup_str RUNTIME='$run_time' TIME='$TIME' DATE='$DATE'" echo "$backup_str" >> $USER_DATA/backup.conf + +# Removing old backups +tail -n $BACKUPS $USER_DATA/backup.conf > $USER_DATA/backup.conf_ +mv -f $USER_DATA/backup.conf_ $USER_DATA/backup.conf chmod 660 $USER_DATA/backup.conf -# Clean backup queue +# Deleting task from queue sed -i "/v-backup-user $user /d" $VESTA/data/queue/backup.pipe # Send notification From bbffe9fffb1f74e007b011f0e9b7d11f7bb6f736 Mon Sep 17 00:00:00 2001 From: flynet70 Date: Tue, 3 Mar 2015 18:47:10 +0500 Subject: [PATCH 06/20] Update v-backup-user Fix delete deprecated backup string in user's backup.conf if only ftp backup used. --- bin/v-backup-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-backup-user b/bin/v-backup-user index 9ad8650f..a44ea22d 100755 --- a/bin/v-backup-user +++ b/bin/v-backup-user @@ -672,7 +672,7 @@ ftp_backup() { backups_rm_number=$((backups_count - BACKUPS + 1)) for backup in $(echo "$backup_list" | head -n $backups_rm_number); do backup_date=$(echo $backup | sed -e "s/$user.//" -e "s/.tar$//") - deprecated="$deprecated $backup" + deprecated="$deprecated $backup_date" echo -e "$(date "+%F %T") Roated ftp backup: $backup_date" msg="$msg\n$(date "+%F %T") Roated ftp backup: $backup_date" ftpc "cd $BPATH" "delete $backup" From 850d215c1f33bb90378b97a63929929db520ff15 Mon Sep 17 00:00:00 2001 From: sfer23 Date: Tue, 3 Mar 2015 22:06:56 +0200 Subject: [PATCH 07/20] Fix bug with redurant redirect If I use nginx to assign 127.0.0.1:8083 with one of named VirtualHost - I have error when login by user (Browser redirect me to self domain name with 8083 port, which is already closed). Also this fix doesn't break anything on default use. --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index 35c889c9..b0d34a3f 100644 --- a/web/index.php +++ b/web/index.php @@ -1,7 +1,7 @@ Date: Mon, 9 Mar 2015 19:12:26 +0200 Subject: [PATCH 08/20] Fix for pma on Ubuntu --- install/ubuntu/apache2-pma.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/ubuntu/apache2-pma.conf b/install/ubuntu/apache2-pma.conf index 2a8f69e2..037a4286 100644 --- a/install/ubuntu/apache2-pma.conf +++ b/install/ubuntu/apache2-pma.conf @@ -15,7 +15,7 @@ Alias /phpmyadmin /usr/share/phpmyadmin php_admin_flag allow_url_fopen Off php_value include_path . php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp - php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext + php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share/javascript: From c871a6e7dc8df4bb359ebcbff4c1d76d75a2c69c Mon Sep 17 00:00:00 2001 From: cemendur Date: Tue, 10 Mar 2015 16:41:31 +0200 Subject: [PATCH 09/20] Greek language support. --- web/inc/i18n/el.php | 471 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 471 insertions(+) create mode 100644 web/inc/i18n/el.php diff --git a/web/inc/i18n/el.php b/web/inc/i18n/el.php new file mode 100644 index 00000000..e2ae5bd5 --- /dev/null +++ b/web/inc/i18n/el.php @@ -0,0 +1,471 @@ + 'Πακέτα', + 'IP' => 'IP', + 'Graphs' => 'Γραφήματα', + 'Statistics' => 'Στατιστικά', + 'Log' => 'Αρχείο Καταγραφής', + 'Services' => 'Υπηρεσίες', + 'Firewall' => 'Firewall', + 'Updates' => 'Ενημερώσεις', + 'Log in' => 'Σύνδεση', + 'Log out' => 'Αποσύνδεση', + + 'USER' => 'ΧΡΗΣΤΗΣ', + 'WEB' => 'WEB', + 'DNS' => 'DNS', + 'MAIL' => 'MAIL', + 'DB' => 'DB', + 'CRON' => 'CRON', + 'BACKUP' => 'BACKUP', + + 'Add User' => 'Προσθέστε χρήστη', + 'Add Domain' => 'Προσθέστε domain', + 'Add Web Domain' => 'Προσθέστε Web Domain', + 'Add DNS Domain' => 'Προσθέστε DNS Domain', + 'Add DNS Record' => 'Προσθέστε Εγγραφή DNS', + 'Add Mail Domain' => 'Προσθέστε Mail Domain', + 'Add Mail Account' => 'Προσθέστε Λογαριασμό Mail', + 'Add Database' => 'Προσθέστε Βάση Δεδομένων', + 'Add Cron Job' => 'Προσθέστε Cron Job', + 'Create Backup' => 'Δημιουργήστε αντίγραφο ασφαλείας', + 'Configure' => 'Ρύθμιση', + 'Restore All' => 'Επαναφορά Όλων', + 'Add Package' => 'Προσθήκη Πακέτου', + 'Add IP' => 'Προσθήκη Διεύθυνσης IP', + 'Add Rule' => 'Προσθήκη Κανόνα', + 'Ban IP Address' => 'Αποκλεισμός Διεύθυνσης IP', + 'Search' => 'Αναζήτηση', + 'Add one more FTP Account' => 'Προσθήκη ενός ακόμα Λογαριασμού FTP', + 'Overall Statistics' => 'Συγκεντρωτικά Στατιστικά', + 'Daily' => 'Καθημερινά', + 'Weekly' => 'Εβδομαδιαία', + 'Monthly' => 'Μηνιαία', + 'Yearly' => 'Ετήσια', + 'Add' => 'Προσθήκη', + 'Back' => 'Πίσω', + 'Save' => 'Αποθήκευση', + 'Submit' => 'Υποβολή', + + 'toggle all' => 'Εναλλαγή όλων', + 'apply to selected' => 'εφαρμογή επιλεγμένων', + 'rebuild' => 'επαναδημιουργία', + 'rebuild web' => 'επαναδημιουργία web', + 'rebuild dns' => 'επαναδημιουργία dns', + 'rebuild mail' => 'επαναδημιουργία mail', + 'rebuild db' => 'επαναδημιουργία db', + 'rebuild cron' => 'επαναδημιουργία cron', + 'update counters' => 'ενημέρωση μετρητών', + 'suspend' => 'αποκλεισμός', + 'unsuspend' => 'άρση αποκλεισμού', + 'delete' => 'διαγραφή', + 'show per user' => 'εμφάνιση ανά χρήστη', + 'login as' => 'είσοδος ως', + 'logout' => 'αποσύνδεση', + 'edit' => 'επεξεργασία', + 'open webstats' => 'άνοιγμα στατιστικών web', + 'view logs' => 'δείτε τα αρχεία καταγραφής', + 'list records' => 'εμφάνιση %s εγγραφών', + 'add record' => 'προσθήκη εγγραφής', + 'list accounts' => 'εμφάνιση %s λογαριασμών', + 'add account' => 'προσθήκη λογαριασμού', + 'open webmail' => 'άνοιγμα webmail', + 'list fail2ban' => 'εμφάνιση fail2ban', + 'open %s' => 'άνοιγμα %s', + 'download' => 'λήψη', + 'restore' => 'επαναφορά', + 'configure restore settings' => 'επεξεργασία ρυθμίσεων επαναφοράς', + 'stop' => 'τερματισμός', + 'start' => 'εκκίνηση', + 'restart' => 'επανεκκίνηση', + 'update' => 'ενημέρωση', + 'generate' => 'δημιουργήστε', + 'Generate CSR' => 'Δημιουργήστε CSR', + 'reread IP' => 'Ενημέρωση IP', + 'enable autoupdate' => 'ενεργοποίηση autoupdate', + 'disable autoupdate' => 'απενεργοποίηση autoupdate', + 'turn on notifications' => 'ενεργοποίηση ειδοποιήσεων', + 'turn off notifications' => 'απενεργοποίηση ειδοποιήσεων', + + 'Adding User' => 'Προσθήκη Χρήστη', + 'Editing User' => 'Επεξεργασία Χρήστη', + 'Adding Domain' => 'Προσθήκη Domain', + 'Editing Domain' => 'Επεξεργασία Domain', + 'Adding DNS Domain' => 'Προσθήκη DNS Domain', + 'Editing DNS Domain' => 'Επεξεργασία DNS Domain', + 'Adding DNS Record' => 'Προσθήκη Εγγραφής DNS', + 'Editing DNS Record' => 'Επεξεργασία Εγγραφής DNS', + 'Adding Mail Domain' => 'Προσθήκη Mail Domain', + 'Editing Mail Domain' => 'Επεξεργασία Mail Domain', + 'Adding Mail Account' => 'Προσθήκη Λογαριασμού Mail', + 'Editing Mail Account' => 'Επεξεργασία Λογαριασμού Mail', + 'Adding database' => 'Προσθήκη database', + 'Editing Cron Job' => 'Επεξεργασία Cron Job', + 'Adding Cron Job' => 'Προσθήκη Cron Job', + 'Editing Database' => 'Επεξεργασία Βάσης Δεδομένων', + 'Adding Package' => 'Προσθήκη Πακέτου', + 'Editing Package' => 'Επεξεργασία Πακέτου', + 'Adding IP address' => 'Προσθήκη Διεύθυνσης IP', + 'Editing IP Address' => 'Επεξεργασία Διεύθυνσης IP', + 'Editing Backup Exclusions' => 'Επεξεργασία εξαιρέσεων αντιγράφου ασφαλείας', + 'Generating CSR' => 'Δημιουργία CSR', + 'Listing' => 'Εμφάνιση', + 'Search Results' => 'Αναζήτηση Αποτελεσμάτων', + 'Adding Firewall Rule' => 'Προσθήκη Κανόνα Τείχους Προστασίας', + 'Editing Firewall Rule' => 'Επεξεργασία Κανόνα Τείχους Προστασίας', + 'Adding IP Address to Banlist' => 'Προσθήκη Διεύθυνσης IP στη λίστα απαγόρευσης', + + 'active' => 'ενεργό', + 'spnd' => 'ανεσταλμένο', + 'suspended' => 'ανεσταλμένο', + 'running' => 'εκτελείται', + 'stopped' => 'τερματισμένο', + 'outdated' => 'ανενημέρωτο', + 'updated' => 'ενημερωμένο', + + 'yes' => 'ναι', + 'no' => 'όχι', + 'none' => 'κανένα', + 'pb' => 'pb', + 'tb' => 'tb', + 'gb' => 'gb', + 'mb' => 'mb', + 'minute' => 'λεπτό', + 'hour' => 'ώρα', + 'day' => 'ημέρα', + 'days' => 'ημέρες', + 'hours' => 'ώρες', + 'minutes' => 'λεπτά', + 'month' => 'μήνας', + 'package' => 'πακέτο', + 'Bandwidth' => 'Bandwidth', + 'Disk' => 'Δίσκος', + 'Web' => 'Web', + 'Mail' => 'Mail', + 'Databases' => 'Βάσεις Δεδομένων', + 'User Directories' => 'Κατάλογοι Χρήστη', + 'Template' => 'Template', + 'Web Template' => 'Apache Template', + 'Proxy Template' => 'Nginx Template', + 'DNS Template' => 'DNS Template', + 'Web Domains' => 'Web Domains', + 'SSL Domains' => 'SSL Domains', + 'Web Aliases' => 'Ψευδώνυμα Web', + 'per domain' => 'ανά domain', + 'DNS Domains' => 'DNS Domains', + 'DNS Domains' => 'DNS Domains', + 'DNS records' => 'Εγγραφές DNS' , + 'Name Servers' => 'Διακομιστές Ονομάτων', + 'Mail Domains' => 'Mail Domains', + 'Mail Accounts' => 'Λογαριασμοί Mail', + 'Cron Jobs' => 'Cron Jobs', + 'SSH Access' => 'Πρόσβαση SSH', + 'IP Addresses' => 'Διευθύνσεις IP', + 'Backups' => 'Αντίγραφα Ασφαλείας', + 'Backup System' => 'Σύστημα Αντιγράφων Ασφαλείας', + 'backup exclusions' => 'εξαιρέσεις αντιγράφου ασφαλείας', + 'template' => 'template', + 'SSL Support' => 'Υποστήριξη SSL', + 'SSL Home Directory' => 'Αρχικός Κατάλογος SSL', + 'Proxy Support' => 'Υποστήριξη Nginx', + 'Proxy Extensions' => 'Πρόσθετα Nginx', + 'Web Statistics' => 'Στατιστικά Web', + 'Additional FTP Account' => 'Επιπρόσθετος Λογαριασμός FTP', + 'SOA' => 'SOA', + 'TTL' => 'TTL', + 'Expire' => 'Λήγει', + 'Records' => 'Εγγραφές', + 'Catchall email' => 'Catchall email', + 'AntiVirus Support' => 'Υποστήριξη AntiVirus', + 'AntiSpam Support' => 'Υποστήριξη AntiSpam', + 'DKIM Support' => 'Υποστήριξη DKIM', + 'Accounts' => 'Λογαριασμοί', + 'Quota' => 'Ποσοστό', + 'Autoreply' => 'Αυτόματη απάντηση', + 'Forward to' => 'Προώθηση σε', + 'Do not store forwarded mail' => 'Μη αποθήκευση των προωθημένων mail', + 'database' => 'βάση δεδομένων', + 'User' => 'Χρήστης', + 'Host' => 'Host', + 'Charset' => 'Charset', + 'Min' => 'Λεπ', + 'Hour' => 'Ώρα', + 'Day' => 'Ημέρα', + 'Month' => 'Μήνας', + 'Day of week' => 'Ημέρα της εβδομάδας', + 'local' => 'τοπικά', + 'Run Time' => 'Ώρα', + 'Backup Size' => 'Μέγεθος Αντιγράφων Ασφαλείας', + 'SYS' => 'SYS', + 'Domains' => 'Domains', + 'Status' => 'Κατάσταση', + 'shared' => 'shared', + 'dedicated' => 'dedicated', + 'Owner' => 'Ιδιοκτήτης', + 'Users' => 'Χρήστες', + 'Load Average' => 'Μέσος Όρος Φόρτου', + 'Memory Usage' => 'Χρήση Μνήμης', + 'HTTPD Usage' => 'Χρήση HTTPD', + 'NGINX Usage' => 'Χρήση NGINX', + 'MySQL Usage on localhost' => 'Χρήση της MySQL στο localhost', + 'PostgreSQL Usage on localhost' => 'Χρήση της PostgreSQL στο localhost', + 'Bandwidth Usage eth0' => 'Χρήση Bandwidth eth0', + 'FTP Usage' => 'Χρήση FTP ', + 'SSH Usage' => 'Χρήση SSH', + 'reverse proxy' => 'reverse proxy', + 'web server' => 'διακομιστής web ', + 'dns server' => 'διακομιστής dns', + 'mail server' => 'διακομιστής mail', + 'pop/imap server' => 'διακομιστής pop/imap', + 'email antivirus' => 'antivirus ηλεκτρονικής αλληλογραφίας', + 'email antispam' => 'antispam ηλεκτρονικής αλληλογραφίας', + 'database server' => 'διακομιστής βάσης δεδομένων', + 'ftp server' => 'διακομιστής ftp', + 'job scheduler' => 'job scheduler', + 'CPU' => 'CPU', + 'Memory' => 'Μνήμη', + 'Uptime' => 'χρόνος λειτουργίας', + 'core package' => 'πακέτο πυρήνα', + 'php interpreter' => 'διερμηνέας php', + 'internal web server' => 'εσωτερικός web server', + 'Version' => 'Έκδοση', + 'Release' => 'Κυκλοφορία', + 'Architecture' => 'Αρχιτεκτονική', + 'Object' => 'Αντικείμενο', + 'Owner' => 'Ιδιοκτήτης', + 'Username' => 'Όνομα Χρήστη', + 'Password' => 'Κωδικός', + 'Email' => 'Email', + 'Package' => 'Πακέτο', + 'Language' => 'Γλώσσα', + 'First Name' => 'Όνομα', + 'Last Name' => 'Επώνυμο', + 'Send login credentials to email address' => 'αποστολή των διαπιστευτηρίων εισόδου στην διεύθυνση ηλεκτρονικού ταχυδρομείου', + 'Default Template' => 'Προεπιλεγμένο Template', + 'Default Name Servers' => 'Προεπιλεγμένοι Name Servers', + 'Domain' => 'Domain', + 'DNS Support' => 'Υποστήριξη DNS', + 'Mail Support' => 'Υποστήριξη Mail', + 'Advanced options' => 'Προχωρημένες επιλογές', + 'Aliases' => 'Ψευδώνυμα', + 'SSL Certificate' => 'Πιστοποιητικό SSL', + 'SSL Key' => 'Κλειδί SSL', + 'SSL Certificate Authority / Intermediate' => 'Αρχή Πιστοποιητικού SSL / Ενδιάμεσος', + 'SSL CSR' => 'SSL CSR', + 'optional' => 'προεραιτικό', + 'internal' => 'εσωτερικό', + 'Statistics Authorization' => 'Εξουσιοδότηση Στατιστικών', + 'Statistics Auth' => 'Εξουσιοδότηση Στατιστικών', + 'Account' => 'Λογαριασμός', + 'Prefix will be automaticaly added to username' => 'Πρόθεμα %s θα προστεθεί αυτόματα στο όνομα χρήστη', + 'Send FTP credentials to email' => 'Αποστολή διαπιστευτηρίων FTP στη διεύθυνση ηλεκτρονικού ταχυδρομείου', + 'Expiration Date' => 'Ημερομηνία Λήξης', + 'YYYY-MM-DD' => 'ΕΕΕΕ-MM-ΗΗ', + 'Name servers' => 'Name servers', + 'Record' => 'Εγγραφή', + 'IP or Value' => 'IP ή Τιμή', + 'Priority' => 'Προτεραιότητα', + 'Record Number' => 'Αριθμός Εγγραφής', + 'in megabytes' => 'σε megabytes', + 'Message' => 'Μήνυμα', + 'use local-part' => 'χρήση τοπικού-μέρους', + 'one or more email addresses' => 'μία ή περισσότερες διευθύνσεις ηλεκτρονικού ταχυδρομείου', + 'Prefix will be automaticaly added to database name and database user' => 'Πρόθεμα %s θα προστεθεί στο όνομα της βάσης δεδομένων και στον χρήστη της.', + 'Database' => 'Βάση Δεδομένων', + 'Type' => 'Τύπος', + 'Minute' => 'Λεπτό', + 'Command' => 'Εντολή', + 'Package Name' => 'Όνομα Πακέτου', + 'Netmask' => 'Μάσκα Δικτύου', + 'Interface' => 'Διεπαφή', + 'Shared' => 'Διαμοιραζόμενα', + 'Assigned user' => 'Assigned user', + 'Assigned domain' => 'Assigned domain', + 'NAT IP association' => 'NAT IP association', + 'shell' => 'κέλυφος', + 'web domains' => 'web domains', + 'web aliases' => 'Ψευδώνυμα web', + 'dns records' => 'Εγγραφές dns', + 'mail domains' => 'mail domains', + 'mail accounts' => 'Λογαριασμοί mail', + 'accounts' => 'λογαριασμοί', + 'databases' => 'βάσεις δεδομένων', + 'cron jobs' => 'cron jobs', + 'backups' => 'αντίγραφα ασφαλείας', + 'quota' => 'ποσοστό', + 'day of week' => 'ημέρα της εβδομάδας', + 'cmd' => 'cmd', + 'users' => 'χρήστες', + 'domains' => 'domains', + 'aliases' => 'ψευδώνυμα', + 'records' => 'εγγραφές', + 'jobs' => 'jobs', + 'username' => 'όνομα χρήστη', + 'password' => 'κωδικός πρόσβασης', + 'type' => 'τύπος', + 'charset' => 'charset', + 'domain' => 'domain', + 'ip' => 'ip', + 'ip address' => 'διεύθυνση ip', + 'IP address' => 'διεύθυνση IP', + 'netmask' => 'μάσκα δικτύου', + 'interface' => 'διεπαφή', + 'assigned user' => 'assigned user', + 'ns1' => 'ns1', + 'ns2' => 'ns2', + 'user' => 'χρήστης', + 'email' => 'διεύθυνση ηλεκτρονικού ταχυδρομείου', + 'first name' => 'όνομα', + 'last name' => 'επώνυμο', + 'account' => 'λογαριασμός', + 'ssl certificate' => 'πιστοποιητικό ssl', + 'ssl key' => 'κλειδί ssl', + 'stats user password' => 'στατιστικά χρήστης κωδικός πρόσβασης', + 'stats username' => 'στατιστικά όνομα χρήστη', + 'stats password' => 'στατιστικά κωδικός πρόσβασης', + 'ftp user password' => 'κωδικός πρόσβασης χρήστη ftp', + 'ftp user' => 'χρήστης ftp', + 'Last 70 lines of %s.%s.log' => 'Τελευταίες 70 γραμμές του %s.%s.log', + 'Download AccessLog' => 'Λήψη AccessLog', + 'Download ErrorLog' => 'Λήψη ErrorLog', + 'Country' => 'Χώρα', + '2 letter code' => 'κωδικός 2 χαρακτήρων', + 'State / Province' => 'Πολιτεία / Επαρχία', + 'City / Locality' => 'Πόλη / Περιοχή', + 'Organization' => 'Οργάνωση', + 'Action' => 'Ενέργεια', + 'Protocol' => 'Πρωτόκολλο', + 'Port' => 'Θύρα', + 'Comment' => 'Σχόλιο', + 'Banlist' => 'Λίστα απαγόρευσης', + 'ranges are acceptable' => 'εύρος είναι αποδεκτό', + 'CIDR format is supported' => 'To format CIDR υποστηρίζεται', + + '1 account' => '1 λογαριασμός', + '%s accounts' => '%s λογαριασμοί', + '1 domain' => '1 domain', + '%s domains' => '%s domains', + '1 record' => '1 εγγραφή', + '%s records' => '%s εγγραφές', + '1 mail account' => '1 λογιαριασμός mail', + '%s mail accounts' => '%s λογαριασμοί mail', + '1 database' => '1 βάση δεδομένων', + '%s databases' => '%s βάσεις δεδομένων', + '1 cron job' => '1 cron job', + '%s cron jobs' => '%s cron jobs', + '1 archive' => '1 αρχείο', + '%s archives' => '%s αρχεία', + '1 package' => '1 πακέτο', + '%s packages' => '%s πακέτα', + '1 IP address' => '1 διεύθυνση IP', + '%s IP addresses' => '%s διευθύνσεις IP', + '1 month' => '1 μήνας', + '%s months' => '%s μήνες', + '1 log record' => '1 εγγραφή καταγραφής', + '%s log records' => '%s εγγραφές καταγραφής', + '1 object' => '1 αντικείμενο', + '%s objects' => '%s αντικείμενα', + 'no exclusions' => 'χωρίς εξαιρέσεις', + '1 rule' => '1 κανόνας', + '%s rules' => '%s κανόνες', + 'There are no currently banned IP' => 'Δεν έχει απαγορευτεί η πρόσβαση σε διευθύνσεις IP', + + 'USER_CREATED_OK' => 'Ο χρήστης %s έχει δημιουργηθεί επιτυχώς.', + 'WEB_DOMAIN_CREATED_OK' => 'Το Domain %s έχει δημιουργηθεί επιτυχώς.', + 'DNS_DOMAIN_CREATED_OK' => 'To DNS Domain %s έχει δημιουργηθεί επιτυχώς.', + 'DNS_RECORD_CREATED_OK' => 'Η εγγραφή %s.%s έχει δημιουργηθεί επιτυχώς.', + 'MAIL_DOMAIN_CREATED_OK' => 'Το mail domain %s έχει δημιουργηθεί επιτυχώς.', + 'MAIL_ACCOUNT_CREATED_OK' => 'Ο λογαριασμός mail %s@%s έχει δημιουργηθεί επιτυχώς.', + 'DATABASE_CREATED_OK' => 'Η βάση δεδομένων %s έχει δημιουργηθεί επιτυχώς.', + 'CRON_CREATED_OK' => 'Το cron job έχει δημιουργηθεί επιτυχώς.', + 'IP_CREATED_OK' => 'Η διεύθυνση IP %s έχει δημιουργηθεί επιτυχώς.', + 'PACKAGE_CREATED_OK' => 'Το πακέτο a href="/edit/package/?package=%s">%s έχει δημιουργηθεί επιτυχώς.', + 'SSL_GENERATED_OK' => 'Το πιστοποιητικό έχει δημιουργηθεί επιτυχώς.', + 'RULE_CREATED_OK' => 'Ο κανόνας έχει δημιουργηθεί επιτυχώς.', + 'Autoupdate has been successfully enabled' => 'Η αυτόματη ενημέρωση έχει ενεργοποιηθεί επιτυχώς.', + 'Autoupdate has been successfully disabled' => 'Η αυτόματη ενημέρωση έχει απενεργοποιηθεί επιτυχώς.', + 'Cronjob email reporting has been successfully enabled' => 'Το Cronjob αναφοράς email έχει ενεργοποιηθεί επιτυχώς', + 'Cronjob email reporting has been successfully disabled' => 'Το Cronjob αναφοράς email έχει απανεργοποιηθεί επιτυχώς', + 'Changes has been saved.' => 'Οι αλλαγές έχουν αποθηκευτεί.', + 'Confirmation' => 'Επιβεβαίωση', + 'DELETE_USER_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε τον χρήστη %s;', + 'SUSPEND_USER_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε τον χρήστη %s;', + 'UNSUSPEND_USER_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός του χρήστη %s;', + 'DELETE_DOMAIN_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε τo Domain %s;', + 'SUSPEND_DOMAIN_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε τo Domain %s;', + 'UNSUSPEND_DOMAIN_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός του Domain %s;', + 'DELETE_RECORD_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε την εγγραφή %s;', + 'SUSPEND_RECORD_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε την εγγραφή %s;', + 'UNSUSPEND_RECORD_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός της εγγραφής %s;', + 'DELETE_MAIL_ACCOUNT_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε το %s;', + 'SUSPEND_MAIL_ACCOUNT_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε το %s;', + 'UNSUSPEND_MAIL_ACCOUNT_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός του %s;', + 'DELETE_DATABASE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε την βάση δεδομένων %s;', + 'SUSPEND_DATABASE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε την βάση δεδομένων %s;', + 'UNSUSPEND_DATABASE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός της βάσης δεδομένων%s;', + 'DELETE_CRON_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε το cron job;', + 'SUSPEND_CRON_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε το cron job;', + 'UNSUSPEND_CRON_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός του cron job;', + 'DELETE_BACKUP_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε το %s αντίγραφο ασφαλείας;', + 'DELETE_EXCLUSION_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε την %s εξαίρεση;', + 'DELETE_PACKAGE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε το πακέτο %s;', + 'DELETE_IP_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε την διεύθυνση IP %s;', + 'DELETE_RULE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να διαγράψετε τον κανόνα #%s?', + 'SUSPEND_RULE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αποκλείσετε τον κανόνα #%s?', + 'UNSUSPEND_RULE_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να αρθεί ο αποκλεισμός του κανόνα #%s?', + 'RESTART_CONFIRMATION' => 'Είστε σίγουρος πως θέλετε να επανεκκινήσετε το %s?', + 'Welcome' => 'Καλωσήρθατε', + 'LOGGED_IN_AS' => 'Συνδεδεμένος ως χρήστης %s', + 'Error' => 'Σφάλμα', + 'Invalid username or password' => 'Λάθος όνομα χρήστη ή κωδικός πρόσβασης.', + 'Invalid username or code' => 'Λάθος όνομα χρήστη ή κωδικός.', + 'Passwords not match' => 'Δεν υπάρχει αντιστοιχία των κωδικών πρόσβασης.', + 'Please enter valid email address.' => 'Παρακαλώ εισάγετε μια έγκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου.', + 'Field "%s" can not be blank.' => 'Το πεδίο "%s" δεν επιτρέπεται να είναι κενό.', + 'Password is too short.' => 'Ο κωδικός πρόσβασης είναι πολύ μικρός (το ελάχιστο είναι 6 χαρακτήρες)', + 'Error code:' => 'Κωδικός λάθους: %s', + 'SERVICE_ACTION_FAILED' => '"%s" "%s" απέτυχε', + 'IP address is in use' => 'Η διεύθυνση IP είναι σε χρήση', + 'BACKUP_SCHEDULED' => 'Η διεργασία έχει προστεθεί στην ουρά. Θα λάβετε ειδοποίηση ηλεκτρονικού ταχυδρομείου όταν το αντίγραφο ασφαλείας είναι έτοιμο προς λήψη.', + 'BACKUP_EXISTS' => 'Μια υπάρχουσα διεργασία δημιουργίας αντιγράφου ασφαλείας εκτελείται ήδη. Παρακαλώ περιμένετε να ολοκληρωθεί.', + 'RESTORE_SCHEDULED' => 'Η διεργασία έχει προστεθεί στην ουρά. Θα λάβετε ειδοποίηση ηλεκτρονικού ταχυδρομείου όταν η επαναφορά σας έχει ολοκληρωθεί.', + 'RESTORE_EXISTS' => 'Μια υπάρχουσα διεργασία επαναφοράς εκτελείται ήδη. Παρακαλώ περιμένετε να ολοκληρωθεί πριν την εκκινήσετε ξανά.', + + 'WEB_EXCLUSIONS' => "Πληκτρολογήστε το όνομα domain, ένα ανά σειρά. Για να εξαιρέσετε όλα τα ονόματα domain χρησιμοποιήστε *. Για να εξαιρέσετε συγκεκριμένους καταλόγους χρησιμοποιήστε την ακόλουθη μορφή: domain.com:public_html/cache:public_html/tmp", + 'DNS_EXCLUSIONS' => "Πληκτρολογήστε το όνομα της διεύθυνσης DNS, ένα ανά σειρά. Για να εξαιρέσετε όλα τα ονόματα διεύθυνσης DNS χρησιμοποιήστε *", + 'MAIL_EXCLUSIONS' => "Πληκτρολογήστε το όνομα της διεύθυνσης mail, ένα ανά σειρά. Για να εξαιρέσετε όλα τα ονόματα διεύθυνσης mail χρησιμοποιήστε *. Για να εξαιρέσετε συγκεκριμένους λογαριασμούς χρησιμοποιήσετε την ακόλουθη μορφή: domain.com:info:support:postmaster", + 'DB_EXCLUSIONS' => "Πληκτρολογήστε το πλήρες όνομα της βάσης δεδομένων, ένα ανά σειρά. Για να εξαιρέσετε όλες τις βάσεις δεδομένων χρησιμοποιήστε *", + 'CRON_EXCLUSIONS' => "Για να εξαιρέσετε όλα τα jobs χρησιμοποιήστε *", + 'USER_EXCLUSIONS' => "Πληκτρολογήστε το όνομα καταλόγου, ένα ανά σειρά. Για να εξαιρέσετε όλους τους καταλόγους χρησιμοποιήστε *", + + 'Welcome to Vesta Control Panel' => 'Καλωσήρθατε στον Πίνακα Ελέγχου Vesta', + 'MAIL_FROM' => 'Vesta Control Panel ', + 'GREETINGS_GORDON_FREEMAN' => "Γειά, %s %s,\n", + 'GREETINGS' => "Γειά,\n", + 'ACCOUNT_READY' => "Ο λογαριασμός σας δημιουργήθηκε και είναι έτοιμος για χρήση.\n\nhttps://%s/login/\nUsername: %s\nPassword: %s\n\n--\nVesta Control Panel\n", + + 'FTP login credentials' => 'Διαπιστευτήρια εισόδου FTP', + 'FTP_ACCOUNT_READY' => "Ο λογαριασμός FTP δημιουργήθηκε και είναι έτοιμος για χρήση.\n\nHostname: %s\nUsername: %s_%s\nPassword: %s\n\n--\nVesta Control Panel\n", + + 'Database Credentials' => 'Διαπιστευτήρια Βάσης Δεδομένων', + 'DATABASE_READY' => "Η βάση δεδομένων δημιουργήθηκε επιτυχώς.\n\nDatabase: %s\nUser: %s\nPassword: %s\n%s\n\n--\nVesta Control Panel\n", + + 'forgot password' => 'ξέχασα τον κωδικό πρόσβασης', + 'Confirm' => 'Επιβεβαίωση', + 'New Password' => 'Νέος κωδικός πρόσβασης', + 'Confirm Password' => 'Επιβεβαίωση κωδικού πρόσβασης', + 'Reset' => 'Επαναφορά', + 'Reset Code' => 'Επαναφορά κωδικού', + 'RESET_NOTICE' => '', + 'RESET_CODE_SENT' => 'Ο κωδικός επαναφοράς του κωδικού πρόσβασης έχει αποσταλεί στη διεύθυνση ταχυδρομείου σας
', + 'MAIL_RESET_SUBJECT' => 'Επαναφορά κωδικού πρόσβασης στο %s', + 'PASSWORD_RESET_REQUEST' => "Για να επαναφέρετε τον κωδικό πρόσβασης του πίνακα ελέγχου σας, παρακαλώ ακολουθήστε το link:\nhttps://%s/reset/?action=confirm&user=%s&code=%s\n\nΕναλλακτικά, πλοηγηθείτε στη διεύθυνση https://%s/reset/?action=code&user=%s και εισάγετε τον ακόλουθο κωδικό επαναφοράς:\n%s\n\nΕάν δεν ζητήσατε επαναφορά κωδικού πρόσβασης, παρακαλούμε αγνοείστε το παρόν μήνυμα και δεχθείτε τη συγγνώμη μας.\n\n--\nVesta Control Panel\n", +); + +?> From a6a5f9466816b1d5b24fbf3ed29d39f357fce3ba Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 10 Mar 2015 18:30:06 +0200 Subject: [PATCH 10/20] Commented out IPv6 CloudFlare pool and added new IPv4 range --- install/debian/nginx.conf | 11 ++++++----- install/rhel/nginx.conf | 11 ++++++----- install/ubuntu/nginx.conf | 11 ++++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/install/debian/nginx.conf b/install/debian/nginx.conf index cd2c70df..7937301c 100644 --- a/install/debian/nginx.conf +++ b/install/debian/nginx.conf @@ -82,11 +82,12 @@ http { set_real_ip_from 198.41.128.0/17; set_real_ip_from 162.158.0.0/15; set_real_ip_from 104.16.0.0/12; - set_real_ip_from 2400:cb00::/32; - set_real_ip_from 2606:4700::/32; - set_real_ip_from 2803:f800::/32; - set_real_ip_from 2405:b500::/32; - set_real_ip_from 2405:8100::/32; + set_real_ip_from 172.64.0.0/13; + #set_real_ip_from 2400:cb00::/32; + #set_real_ip_from 2606:4700::/32; + #set_real_ip_from 2803:f800::/32; + #set_real_ip_from 2405:b500::/32; + #set_real_ip_from 2405:8100::/32; real_ip_header CF-Connecting-IP; diff --git a/install/rhel/nginx.conf b/install/rhel/nginx.conf index 10a556ea..f7a77b52 100644 --- a/install/rhel/nginx.conf +++ b/install/rhel/nginx.conf @@ -82,11 +82,12 @@ http { set_real_ip_from 198.41.128.0/17; set_real_ip_from 162.158.0.0/15; set_real_ip_from 104.16.0.0/12; - set_real_ip_from 2400:cb00::/32; - set_real_ip_from 2606:4700::/32; - set_real_ip_from 2803:f800::/32; - set_real_ip_from 2405:b500::/32; - set_real_ip_from 2405:8100::/32; + set_real_ip_from 172.64.0.0/13; + #set_real_ip_from 2400:cb00::/32; + #set_real_ip_from 2606:4700::/32; + #set_real_ip_from 2803:f800::/32; + #set_real_ip_from 2405:b500::/32; + #set_real_ip_from 2405:8100::/32; real_ip_header CF-Connecting-IP; diff --git a/install/ubuntu/nginx.conf b/install/ubuntu/nginx.conf index 5d5bd901..1e0d321b 100644 --- a/install/ubuntu/nginx.conf +++ b/install/ubuntu/nginx.conf @@ -82,11 +82,12 @@ http { set_real_ip_from 198.41.128.0/17; set_real_ip_from 162.158.0.0/15; set_real_ip_from 104.16.0.0/12; - set_real_ip_from 2400:cb00::/32; - set_real_ip_from 2606:4700::/32; - set_real_ip_from 2803:f800::/32; - set_real_ip_from 2405:b500::/32; - set_real_ip_from 2405:8100::/32; + set_real_ip_from 172.64.0.0/13; + #set_real_ip_from 2400:cb00::/32; + #set_real_ip_from 2606:4700::/32; + #set_real_ip_from 2803:f800::/32; + #set_real_ip_from 2405:b500::/32; + #set_real_ip_from 2405:8100::/32; real_ip_header CF-Connecting-IP; From 084468ca42cf0a79cd9fd68ca1707b7daaaefc35 Mon Sep 17 00:00:00 2001 From: loolooyyyy Date: Fri, 13 Mar 2015 15:14:35 +0330 Subject: [PATCH 11/20] By default, allow conn to DB from localhost only --- install/debian/firewall/rules.conf | 2 +- install/rhel/firewall/rules.conf | 2 +- install/ubuntu/firewall/rules.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/debian/firewall/rules.conf b/install/debian/firewall/rules.conf index 956c2e1d..60136e1a 100644 --- a/install/debian/firewall/rules.conf +++ b/install/debian/firewall/rules.conf @@ -1,6 +1,6 @@ RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16' RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' -RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' +RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='127.0.0.1/32' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' diff --git a/install/rhel/firewall/rules.conf b/install/rhel/firewall/rules.conf index 956c2e1d..60136e1a 100644 --- a/install/rhel/firewall/rules.conf +++ b/install/rhel/firewall/rules.conf @@ -1,6 +1,6 @@ RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16' RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' -RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' +RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='127.0.0.1/32' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' diff --git a/install/ubuntu/firewall/rules.conf b/install/ubuntu/firewall/rules.conf index 956c2e1d..60136e1a 100644 --- a/install/ubuntu/firewall/rules.conf +++ b/install/ubuntu/firewall/rules.conf @@ -1,6 +1,6 @@ RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16' RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' -RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' +RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='127.0.0.1/32' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25' From 3f41ddaa2ea3e85c7288a805cff37b1c2d42aee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oytun=20Y=C3=BCksel?= Date: Sun, 15 Mar 2015 00:19:35 +0200 Subject: [PATCH 12/20] Update tr.php translate incomplete translations --- web/inc/i18n/tr.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/web/inc/i18n/tr.php b/web/inc/i18n/tr.php index bee9a17f..f51b7882 100644 --- a/web/inc/i18n/tr.php +++ b/web/inc/i18n/tr.php @@ -54,18 +54,18 @@ $LANG['tr'] = array( 'toggle all' => 'hepsini seç', 'apply to selected' => 'seçimi uygula', - 'rebuild' => 'rebuild', - 'rebuild web' => 'rebuild web', - 'rebuild dns' => 'rebuild dns', - 'rebuild mail' => 'rebuild mail', - 'rebuild db' => 'rebuild db', - 'rebuild cron' => 'rebuild cron', + 'rebuild' => 'yeniden oluştur', + 'rebuild web' => 'web\'i yeniden oluştur, + 'rebuild dns' => 'dns\'i yeniden oluştur', + 'rebuild mail' => 'mail\'i yeniden oluştur', + 'rebuild db' => 'db\'yi yeniden oluştur', + 'rebuild cron' => 'cron\'u yeniden oluştur', 'update counters' => 'sayaçları güncelle', 'suspend' => 'askıya al', 'unsuspend' => 'devam ettir', 'delete' => 'sil', 'show per user' => 'kullanıcı başına göster', - 'login as' => 'login as', + 'login as' => 'giriş yapıldı:', 'logout' => 'oturumu kapat', 'edit' => 'düzenle', 'open webstats' => 'webstats aç', @@ -178,9 +178,9 @@ $LANG['tr'] = array( 'Additional FTP Account' => 'İlave FTP Hesabı', 'SOA' => 'SOA', 'TTL' => 'TTL', - 'Expire' => 'Expire', - 'Records' => 'Records', - 'Catchall email' => 'Catchall email', + 'Expire' => 'Sona ermiş', + 'Records' => 'Kayıtlar', + 'Catchall email' => 'Kapsamlı email', 'AntiVirus Support' => 'AntiVirus Desteği', 'AntiSpam Support' => 'AntiSpam Desteği', 'DKIM Support' => 'DKIM Desteği', @@ -204,8 +204,8 @@ $LANG['tr'] = array( 'SYS' => 'SYS', 'Domains' => 'Domainler', 'Status' => 'Durum', - 'shared' => 'shared', - 'dedicated' => 'dedicated', + 'shared' => 'paylaşılan', + 'dedicated' => 'özel', 'Owner' => 'Sahip', 'Users' => 'Kullanıcılar', 'Load Average' => 'Sistem Yükü', @@ -231,11 +231,11 @@ $LANG['tr'] = array( 'Memory' => 'Hafıza', 'Uptime' => 'Uptime', 'core package' => 'core paketi', - 'php interpreter' => 'php interpreter', - 'internal web server' => 'internal web server', + 'php interpreter' => 'php yorumcusu', + 'internal web server' => 'dahili web sunucusu', 'Version' => 'Sürüm', - 'Release' => 'Release', - 'Architecture' => 'Architecture', + 'Release' => 'Yayınlanma', + 'Architecture' => 'Yapı', 'Object' => 'Nesne', 'Owner' => 'Sahip', 'Username' => 'Kullanıcı Adı', @@ -252,7 +252,7 @@ $LANG['tr'] = array( 'DNS Support' => 'DNS Desteği', 'Mail Support' => 'Mail Desteği', 'Advanced options' => 'Gelişmiş seçenekler', - 'Aliases' => 'Aliases', + 'Aliases' => 'Takma adlar (Alias)', 'SSL Certificate' => 'SSL Sertifikası', 'SSL Key' => 'SSL Anahtarı (Key)', 'SSL Certificate Authority / Intermediate' => 'SSL Sertifika Yazarı / Aracı (Authority / Intermediate)', @@ -283,13 +283,13 @@ $LANG['tr'] = array( 'Package Name' => 'Paket Adı', 'Netmask' => 'Netmask', 'Interface' => 'Arayüz', - 'Shared' => 'Shared', + 'Shared' => 'Paylaşılan', 'Assigned user' => 'Atanan kullanıcı', 'Assigned domain' => 'Atanan alan adı', 'NAT IP association' => 'NAT IP association', 'shell' => 'shell', 'web domains' => 'web alan adları', - 'web aliases' => 'web aliases', + 'web aliases' => 'web takma adları', 'dns records' => 'dns kayıtları', 'mail domains' => 'mail domainleri', 'mail accounts' => 'mail hesapları', From 2e78f1e3c971f7371e69d6ca15a9cf4ce5a796b8 Mon Sep 17 00:00:00 2001 From: kotso Date: Wed, 25 Mar 2015 00:38:51 +0400 Subject: [PATCH 13/20] Fixed error when connecting to 8083 over HTTP Fixed error "400 The plain HTTP request was sent to HTTPS port" By putting custom error page on http error coder 497 that redirects http uri to https uri --- src/rpm/conf/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpm/conf/nginx.conf b/src/rpm/conf/nginx.conf index 7a3d2fd0..bf361896 100644 --- a/src/rpm/conf/nginx.conf +++ b/src/rpm/conf/nginx.conf @@ -82,6 +82,9 @@ http { root /usr/local/vesta/web; charset utf-8; + // Fix error "The plain HTTP request was sent to HTTPS port" + error_page 497 https://$host:$server_port$request_uri; + ssl on; ssl_certificate /usr/local/vesta/ssl/certificate.crt; ssl_certificate_key /usr/local/vesta/ssl/certificate.key; From 63e37289993a4e43bb9b94213ae608706c6d7b51 Mon Sep 17 00:00:00 2001 From: kotso Date: Wed, 25 Mar 2015 01:23:28 +0400 Subject: [PATCH 14/20] Fixed Multiple bugs in WHMCS module Added module debug logging Fixed simple bugs in function result codes returns --- install/ubuntu/whmcs-module.php | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/install/ubuntu/whmcs-module.php b/install/ubuntu/whmcs-module.php index b3b1710e..6775ac01 100644 --- a/install/ubuntu/whmcs-module.php +++ b/install/ubuntu/whmcs-module.php @@ -43,6 +43,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { $postvars = array( @@ -62,6 +64,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } // Add domain @@ -84,6 +88,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } } @@ -92,8 +98,8 @@ function vesta_CreateAccount($params) { } else { $result = $answer; } - return $result; + return $result; } function vesta_TerminateAccount($params) { @@ -122,6 +128,8 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { @@ -129,7 +137,6 @@ function vesta_TerminateAccount($params) { } return $result; - } function vesta_SuspendAccount($params) { @@ -158,12 +165,15 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_UnsuspendAccount($params) { @@ -192,12 +202,15 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_ChangePassword($params) { @@ -227,13 +240,15 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; - } function vesta_ChangePackage($params) { @@ -263,13 +278,15 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } - return $result; + return $result; } function vesta_ClientArea($params) { From e690ee5048f0d502e535d985c0b1369969af468e Mon Sep 17 00:00:00 2001 From: kotso Date: Wed, 25 Mar 2015 01:32:10 +0400 Subject: [PATCH 15/20] Updated changes in other distribution folders I think this file should be stored in some other folder. No need to keep same copy of file in 3 different folders. This file is not OS specific. --- install/debian/whmcs-module.php | 25 +++++++++++++++++++++---- install/rhel/whmcs-module.php | 25 +++++++++++++++++++++---- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/install/debian/whmcs-module.php b/install/debian/whmcs-module.php index b3b1710e..6775ac01 100644 --- a/install/debian/whmcs-module.php +++ b/install/debian/whmcs-module.php @@ -43,6 +43,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { $postvars = array( @@ -62,6 +64,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } // Add domain @@ -84,6 +88,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } } @@ -92,8 +98,8 @@ function vesta_CreateAccount($params) { } else { $result = $answer; } - return $result; + return $result; } function vesta_TerminateAccount($params) { @@ -122,6 +128,8 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { @@ -129,7 +137,6 @@ function vesta_TerminateAccount($params) { } return $result; - } function vesta_SuspendAccount($params) { @@ -158,12 +165,15 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_UnsuspendAccount($params) { @@ -192,12 +202,15 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_ChangePassword($params) { @@ -227,13 +240,15 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; - } function vesta_ChangePackage($params) { @@ -263,13 +278,15 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } - return $result; + return $result; } function vesta_ClientArea($params) { diff --git a/install/rhel/whmcs-module.php b/install/rhel/whmcs-module.php index b3b1710e..6775ac01 100644 --- a/install/rhel/whmcs-module.php +++ b/install/rhel/whmcs-module.php @@ -43,6 +43,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { $postvars = array( @@ -62,6 +64,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } // Add domain @@ -84,6 +88,8 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); + + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); } } @@ -92,8 +98,8 @@ function vesta_CreateAccount($params) { } else { $result = $answer; } - return $result; + return $result; } function vesta_TerminateAccount($params) { @@ -122,6 +128,8 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { @@ -129,7 +137,6 @@ function vesta_TerminateAccount($params) { } return $result; - } function vesta_SuspendAccount($params) { @@ -158,12 +165,15 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_UnsuspendAccount($params) { @@ -192,12 +202,15 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; } function vesta_ChangePassword($params) { @@ -227,13 +240,15 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } + return $result; - } function vesta_ChangePackage($params) { @@ -263,13 +278,15 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + if($answer == 'OK') { $result = "success"; } else { $result = $answer; } - return $result; + return $result; } function vesta_ClientArea($params) { From 1d12eb46d429d8f4c17786cef82464a1e074fd62 Mon Sep 17 00:00:00 2001 From: kotso Date: Wed, 25 Mar 2015 14:45:44 +0400 Subject: [PATCH 16/20] PHP syntax errors fix --- install/debian/whmcs-module.php | 16 ++++++++-------- install/rhel/whmcs-module.php | 16 ++++++++-------- install/ubuntu/whmcs-module.php | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/install/debian/whmcs-module.php b/install/debian/whmcs-module.php index 6775ac01..1cb25061 100644 --- a/install/debian/whmcs-module.php +++ b/install/debian/whmcs-module.php @@ -43,7 +43,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { @@ -65,7 +65,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } // Add domain @@ -89,7 +89,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } } @@ -128,7 +128,7 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -165,7 +165,7 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -202,7 +202,7 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -240,7 +240,7 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -278,7 +278,7 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; diff --git a/install/rhel/whmcs-module.php b/install/rhel/whmcs-module.php index 6775ac01..1cb25061 100644 --- a/install/rhel/whmcs-module.php +++ b/install/rhel/whmcs-module.php @@ -43,7 +43,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { @@ -65,7 +65,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } // Add domain @@ -89,7 +89,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } } @@ -128,7 +128,7 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -165,7 +165,7 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -202,7 +202,7 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -240,7 +240,7 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -278,7 +278,7 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; diff --git a/install/ubuntu/whmcs-module.php b/install/ubuntu/whmcs-module.php index 6775ac01..1cb25061 100644 --- a/install/ubuntu/whmcs-module.php +++ b/install/ubuntu/whmcs-module.php @@ -43,7 +43,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_UserAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); // Enable ssh access if(($answer == 'OK') && ($params["configoption2"] == 'on')) { @@ -65,7 +65,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_EnableSSH','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } // Add domain @@ -89,7 +89,7 @@ function vesta_CreateAccount($params) { curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); $answer = curl_exec($curl); - logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','CreateAccount_AddDomain','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); } } @@ -128,7 +128,7 @@ function vesta_TerminateAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','TerminateAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -165,7 +165,7 @@ function vesta_SuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','SuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -202,7 +202,7 @@ function vesta_UnsuspendAccount($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','UnsuspendAccount','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -240,7 +240,7 @@ function vesta_ChangePassword($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePassword','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; @@ -278,7 +278,7 @@ function vesta_ChangePackage($params) { $answer = curl_exec($curl); } - logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'$postdata,$answer); + logModuleCall('vesta','ChangePackage','https://'.$params["serverhostname"].':8083/api/'.$postdata,$answer); if($answer == 'OK') { $result = "success"; From 0bed9eb16451e835fad067407e7d6f8c5141f75f Mon Sep 17 00:00:00 2001 From: Victor Isadov Date: Fri, 10 Apr 2015 00:03:55 +0300 Subject: [PATCH 17/20] Chains select output in foreach instead of hardcoding it --- web/templates/admin/add_firewall_banlist.html | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/web/templates/admin/add_firewall_banlist.html b/web/templates/admin/add_firewall_banlist.html index 9f8a6fd5..427fabfb 100644 --- a/web/templates/admin/add_firewall_banlist.html +++ b/web/templates/admin/add_firewall_banlist.html @@ -51,15 +51,28 @@ - + From f496229b5824bc186781721f4b816e61fb63f65e Mon Sep 17 00:00:00 2001 From: crackdepirate Date: Fri, 10 Apr 2015 19:56:47 -0400 Subject: [PATCH 18/20] updated line 111, little typo error. --- install/rhel/exim.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/rhel/exim.conf b/install/rhel/exim.conf index 0f983016..d75192e7 100644 --- a/install/rhel/exim.conf +++ b/install/rhel/exim.conf @@ -108,7 +108,7 @@ acl_check_rcpt: require message = relay not permitted domains = +local_domains : +relay_to_domains - deny message = smtp auth requried + deny message = smtp auth required sender_domains = +local_domains !authenticated = * From 1cbc5540497e8f4d7f5ed26f9197fd8270b6020c Mon Sep 17 00:00:00 2001 From: crackdepirate Date: Fri, 10 Apr 2015 19:58:18 -0400 Subject: [PATCH 19/20] updated line 111, little typo error. --- install/debian/exim4.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/debian/exim4.conf.template b/install/debian/exim4.conf.template index 742f0409..64cd03fc 100644 --- a/install/debian/exim4.conf.template +++ b/install/debian/exim4.conf.template @@ -108,7 +108,7 @@ acl_check_rcpt: require message = relay not permitted domains = +local_domains : +relay_to_domains - deny message = smtp auth requried + deny message = smtp auth required sender_domains = +local_domains !authenticated = * From 9c33bf9e6676f0a0bb84997458f888f2402e4d9c Mon Sep 17 00:00:00 2001 From: crackdepirate Date: Fri, 10 Apr 2015 19:59:28 -0400 Subject: [PATCH 20/20] updated line 111, little typo error. --- install/ubuntu/exim4.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/ubuntu/exim4.conf.template b/install/ubuntu/exim4.conf.template index 742f0409..64cd03fc 100644 --- a/install/ubuntu/exim4.conf.template +++ b/install/ubuntu/exim4.conf.template @@ -108,7 +108,7 @@ acl_check_rcpt: require message = relay not permitted domains = +local_domains : +relay_to_domains - deny message = smtp auth requried + deny message = smtp auth required sender_domains = +local_domains !authenticated = *