diff --git a/web/inc/main.php b/web/inc/main.php
index f3f96b87..75a66c73 100644
--- a/web/inc/main.php
+++ b/web/inc/main.php
@@ -268,36 +268,6 @@ function send_email($to,$subject,$mailtext,$from) {
mail($to, $subject, $message, $header);
}
-function display_error_block() {
- if (!empty($_SESSION['error_msg'])) {
- echo '
-
-
-
-
'. htmlentities($_SESSION['error_msg']) .'
-
-
'."\n";
- unset($_SESSION['error_msg']);
- }
-}
-
function list_timezones() {
$tz = new DateTimeZone('HAST');
$timezone_offsets['HAST'] = $tz->getOffset(new DateTime);
diff --git a/web/list/user/index.php b/web/list/user/index.php
index d32ea6f1..9b63bbaf 100644
--- a/web/list/user/index.php
+++ b/web/list/user/index.php
@@ -13,7 +13,6 @@ if ($user == 'admin') {
}
$data = json_decode(implode('', $output), true);
$data = array_reverse($data,true);
-display_error_block();
// Render page
render_page($user, $TAB, '*/list_user');
diff --git a/web/templates/admin/add_cron.html b/web/templates/admin/add_cron.html
index f0ba4f96..12a56e3f 100644
--- a/web/templates/admin/add_cron.html
+++ b/web/templates/admin/add_cron.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -438,4 +436,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/add_db.html b/web/templates/admin/add_db.html
index ff202d33..426ba7d6 100644
--- a/web/templates/admin/add_db.html
+++ b/web/templates/admin/add_db.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_dns.html b/web/templates/admin/add_dns.html
index e559166b..3598113d 100644
--- a/web/templates/admin/add_dns.html
+++ b/web/templates/admin/add_dns.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_dns_rec.html b/web/templates/admin/add_dns_rec.html
index 2e65de4a..00824c6d 100644
--- a/web/templates/admin/add_dns_rec.html
+++ b/web/templates/admin/add_dns_rec.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_firewall.html b/web/templates/admin/add_firewall.html
index c884e85d..36c1d78d 100644
--- a/web/templates/admin/add_firewall.html
+++ b/web/templates/admin/add_firewall.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_firewall_banlist.html b/web/templates/admin/add_firewall_banlist.html
index 3b1ae2bf..bbcecdcd 100644
--- a/web/templates/admin/add_firewall_banlist.html
+++ b/web/templates/admin/add_firewall_banlist.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_ip.html b/web/templates/admin/add_ip.html
index 47ca95df..26887c3b 100644
--- a/web/templates/admin/add_ip.html
+++ b/web/templates/admin/add_ip.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_mail.html b/web/templates/admin/add_mail.html
index c736f586..057e8165 100644
--- a/web/templates/admin/add_mail.html
+++ b/web/templates/admin/add_mail.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -81,4 +79,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html
index 2b633375..49abd990 100644
--- a/web/templates/admin/add_mail_acc.html
+++ b/web/templates/admin/add_mail_acc.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_package.html b/web/templates/admin/add_package.html
index d39a5a98..94de1957 100644
--- a/web/templates/admin/add_package.html
+++ b/web/templates/admin/add_package.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_user.html b/web/templates/admin/add_user.html
index 069692c4..e469a4dc 100644
--- a/web/templates/admin/add_user.html
+++ b/web/templates/admin/add_user.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html
index 22b6a1df..15b108fd 100644
--- a/web/templates/admin/add_web.html
+++ b/web/templates/admin/add_web.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_backup_exclusions.html b/web/templates/admin/edit_backup_exclusions.html
index 4dd5995c..6bb489ea 100644
--- a/web/templates/admin/edit_backup_exclusions.html
+++ b/web/templates/admin/edit_backup_exclusions.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -100,4 +98,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/edit_cron.html b/web/templates/admin/edit_cron.html
index 9eb7f106..91baee27 100644
--- a/web/templates/admin/edit_cron.html
+++ b/web/templates/admin/edit_cron.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -32,7 +30,7 @@
- display_error_block() ?>
diff --git a/web/templates/admin/edit_dns.html b/web/templates/admin/edit_dns.html
index 780270c1..df8ef25e 100644
--- a/web/templates/admin/edit_dns.html
+++ b/web/templates/admin/edit_dns.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -84,7 +82,7 @@
}
echo ">".htmlentities($value)."\n";
}
- ?>
+ ?>
@@ -133,4 +131,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/edit_dns_rec.html b/web/templates/admin/edit_dns_rec.html
index 446fda6b..698cb657 100644
--- a/web/templates/admin/edit_dns_rec.html
+++ b/web/templates/admin/edit_dns_rec.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -125,4 +123,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/edit_firewall.html b/web/templates/admin/edit_firewall.html
index f95557ac..6f144ebb 100644
--- a/web/templates/admin/edit_firewall.html
+++ b/web/templates/admin/edit_firewall.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_ip.html b/web/templates/admin/edit_ip.html
index aef5f992..c9ea2c72 100644
--- a/web/templates/admin/edit_ip.html
+++ b/web/templates/admin/edit_ip.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_mail.html b/web/templates/admin/edit_mail.html
index 7bcfa18a..141725c7 100644
--- a/web/templates/admin/edit_mail.html
+++ b/web/templates/admin/edit_mail.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -97,4 +95,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/edit_mail_acc.html b/web/templates/admin/edit_mail_acc.html
index b22f2c32..24c76e6d 100644
--- a/web/templates/admin/edit_mail_acc.html
+++ b/web/templates/admin/edit_mail_acc.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_package.html b/web/templates/admin/edit_package.html
index f8519cd1..34359544 100644
--- a/web/templates/admin/edit_package.html
+++ b/web/templates/admin/edit_package.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_server.html b/web/templates/admin/edit_server.html
index b6400e15..04a96ead 100644
--- a/web/templates/admin/edit_server.html
+++ b/web/templates/admin/edit_server.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_user.html b/web/templates/admin/edit_user.html
index 6ccb03f3..567db42f 100644
--- a/web/templates/admin/edit_user.html
+++ b/web/templates/admin/edit_user.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html
index 7ace1abc..09c9edb3 100644
--- a/web/templates/admin/edit_web.html
+++ b/web/templates/admin/edit_web.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
diff --git a/web/templates/admin/generate_ssl.html b/web/templates/admin/generate_ssl.html
index a5c9a558..a9e490bb 100644
--- a/web/templates/admin/generate_ssl.html
+++ b/web/templates/admin/generate_ssl.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -125,4 +123,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html
index 365a816f..0dcac926 100644
--- a/web/templates/admin/list_backup.html
+++ b/web/templates/admin/list_backup.html
@@ -32,11 +32,7 @@
-
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_backup_detail.html b/web/templates/admin/list_backup_detail.html
index 2c721ba7..cabcec76 100644
--- a/web/templates/admin/list_backup_detail.html
+++ b/web/templates/admin/list_backup_detail.html
@@ -30,11 +30,7 @@
-
-
- display_error_block(); ?>
-
@@ -397,4 +393,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/list_backup_exclusions.html b/web/templates/admin/list_backup_exclusions.html
index d9de3763..2593510f 100644
--- a/web/templates/admin/list_backup_exclusions.html
+++ b/web/templates/admin/list_backup_exclusions.html
@@ -29,11 +29,7 @@
-
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html
index c05aa8ed..4ec2de21 100644
--- a/web/templates/admin/list_cron.html
+++ b/web/templates/admin/list_cron.html
@@ -51,11 +51,7 @@
-
-
- display_error_block() ?>
-
@@ -79,8 +75,8 @@
}
?>
- " sort-name="=htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES)?>"
+
" sort-name="=htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES)?>"
sort-star=" if($_SESSION['favourites']['CRON'][$key] == 1) echo '1'; else echo '0'; ?>">
-
- display_error_block() ?>
-
@@ -109,8 +105,8 @@
?>
-
" sort-name="=$key?>" sort-disk="=$data[$key]['U_DISK']?>"
+
" sort-name="=$key?>" sort-disk="=$data[$key]['U_DISK']?>"
sort-user="=$data[$key]['DBUSER']?>" sort-server="=$data[$key]['HOST']?>" sort-star=" if($_SESSION['favourites']['DB'][$key] == 1) echo '1'; else echo '0'; ?>">
-
- display_error_block(); ?>
-
@@ -69,8 +65,8 @@
}
?>
-
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_firewall.html b/web/templates/admin/list_firewall.html
index 73990d58..ab24069a 100644
--- a/web/templates/admin/list_firewall.html
+++ b/web/templates/admin/list_firewall.html
@@ -45,11 +45,7 @@
-
-
- display_error_block(); ?>
-
@@ -72,8 +68,8 @@
}
?>
- " sort-protocol="=$data[$key]['PROTOCOL']?>" sort-port="=$data[$key]['PORT']?>"
+
" sort-protocol="=$data[$key]['PROTOCOL']?>" sort-port="=$data[$key]['PORT']?>"
sort-ip="=str_replace('.', '', $data[$key]['IP'])?>" sort-comment="=$data[$key]['COMMENT']?>" sort-star=" if($_SESSION['favourites']['FIREWALL'][$key] == 1) echo '1'; else echo '2'; ?>">
-
- display_error_block(); ?>
-
@@ -47,7 +43,7 @@
foreach ($data as $key => $value) {
++$i;
list($ip,$chain) = explode(":",$key);
-
+
?>
diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html
index ada609a2..1875f7bb 100644
--- a/web/templates/admin/list_ip.html
+++ b/web/templates/admin/list_ip.html
@@ -42,11 +42,7 @@
-
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_log.html b/web/templates/admin/list_log.html
index cc9011e2..34a676c6 100644
--- a/web/templates/admin/list_log.html
+++ b/web/templates/admin/list_log.html
@@ -14,9 +14,6 @@
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html
index 27285db5..21a68ef5 100644
--- a/web/templates/admin/list_mail.html
+++ b/web/templates/admin/list_mail.html
@@ -50,11 +50,7 @@
-
-
- display_error_block() ?>
-
@@ -86,8 +82,8 @@
?>
- " sort-name="=$key?>" sort-disk="=$data[$key]['U_DISK']?>"
+
" sort-name="=$key?>" sort-disk="=$data[$key]['U_DISK']?>"
sort-accounts="=$data[$key]['ACCOUNTS']?>" sort-star=" if($_SESSION['favourites']['MAIL'][$key] == 1) echo "1"; else echo "0"; ?>">
-
- display_error_block() ?>
-
@@ -83,7 +79,7 @@
"
- v_unit_id="=$key."@".$_GET['domain']?>" v_section="mail_acc" sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>" sort-disk="$data[$key]['U_DISK']?>"
+ v_unit_id="=$key."@".$_GET['domain']?>" v_section="mail_acc" sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>" sort-disk="$data[$key]['U_DISK']?>"
sort-star=" if($_SESSION['favourites']['MAIL_ACC'][$key."@".$_GET['domain']] == 1) echo '1'; else echo '0'; ?>">
-
- display_error_block(); ?>
-
@@ -56,8 +52,8 @@
?>
-
" v_section="package" sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>"
+
" v_section="package" sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>"
sort-star="">
-
- display_error_block(); ?>
-
@@ -115,4 +111,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/list_search.html b/web/templates/admin/list_search.html
index 3db736d3..110feb87 100644
--- a/web/templates/admin/list_search.html
+++ b/web/templates/admin/list_search.html
@@ -23,9 +23,6 @@
-
- display_error_block() ?>
-
diff --git a/web/templates/admin/list_services.html b/web/templates/admin/list_services.html
index aa85671c..0be6efe4 100644
--- a/web/templates/admin/list_services.html
+++ b/web/templates/admin/list_services.html
@@ -36,9 +36,6 @@
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_ssl.html b/web/templates/admin/list_ssl.html
index aa2addf9..41541904 100644
--- a/web/templates/admin/list_ssl.html
+++ b/web/templates/admin/list_ssl.html
@@ -12,9 +12,7 @@
}
?>
-
- display_error_block() ?>
@@ -84,4 +82,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/list_stats.html b/web/templates/admin/list_stats.html
index 46bd11a3..bc3192d2 100644
--- a/web/templates/admin/list_stats.html
+++ b/web/templates/admin/list_stats.html
@@ -37,11 +37,7 @@
-
-
- display_error_block(); ?>
-
@@ -265,4 +261,4 @@
-
\ No newline at end of file
+
diff --git a/web/templates/admin/list_updates.html b/web/templates/admin/list_updates.html
index 86e3c96c..4529dc24 100644
--- a/web/templates/admin/list_updates.html
+++ b/web/templates/admin/list_updates.html
@@ -35,11 +35,7 @@
-
-
- display_error_block(); ?>
-
diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html
index ae0651af..a4753aa3 100644
--- a/web/templates/admin/list_user.html
+++ b/web/templates/admin/list_user.html
@@ -54,11 +54,7 @@
-
-
- display_error_block(); ?>
-
@@ -81,8 +77,8 @@
}
?>
- " sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>"
+
" sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="=$key?>"
sort-bandwidth="=$data[$key]['U_BANDWIDTH']?>" sort-disk="=$data[$key]['U_DISK']?>" sort-star=" if($_SESSION['favourites']['USER'][$key] == 1) echo '1'; else echo '0'; ?>">
+
- display_error_block() ?>
-
-
@@ -120,9 +117,9 @@
}
?>
- " sort-ip="=str_replace('.', '', $data[$key]['IP'])?>"
-sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
+
" sort-ip="=str_replace('.', '', $data[$key]['IP'])?>"
+sort-date="=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
sort-name="=$key?>" sort-bandwidth="=$data[$key]['U_BANDWIDTH']?>" sort-disk="=$data[$key]['U_DISK']?>" sort-star=" if($_SESSION['WEB'][$key] == 1) echo '1'; else echo '0';?>">
-
+
-
- display_error_block() ?>
-
-
@@ -122,8 +117,8 @@
- " sort-ip="=str_replace('.', '', $data[$key]['IP'])?>" sort-date="=strtotime($data[$key]['DATE'])?>" sort-name="=$key?>"
+
" sort-ip="=str_replace('.', '', $data[$key]['IP'])?>" sort-date="=strtotime($data[$key]['DATE'])?>" sort-name="=$key?>"
sort-bandwidth="=$data[$key]['U_BANDWIDTH']?>" sort-disk="=$data[$key]['U_DISK']?>" sort-star=" if($_SESSION['favourites']['WEB'][$key] == 1) echo '1'; else echo '0'; ?>">