diff --git a/web/inc/main.php b/web/inc/main.php
index f3f96b872..75a66c732 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 d32ea6f16..9b63bbaf2 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 f0ba4f960..12a56e3f9 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 ff202d33f..426ba7d6d 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 e559166b0..3598113d4 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 2e65de4a0..00824c6d4 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 c884e85d2..36c1d78d2 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 3b1ae2bf9..bbcecdcd4 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 47ca95dfe..26887c3bc 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 c736f586d..057e81652 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 2b6333755..49abd9904 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 d39a5a98b..94de1957c 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 069692c4b..e469a4dcb 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 22b6a1dfa..15b108fdf 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 4dd5995c9..6bb489ea9 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 9eb7f1064..91baee271 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 780270c15..df8ef25e4 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 446fda6b9..698cb6579 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 f95557ace..6f144ebbd 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 aef5f9929..c9ea2c723 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 7bcfa18ad..141725c7a 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 b22f2c325..24c76e6dd 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 f8519cd17..343595449 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 b6400e156..04a96eada 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 6ccb03f3b..567db42fb 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 7ace1abca..09c9edb3f 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 a5c9a5581..a9e490bba 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 365a816f4..0dcac926d 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 2c721ba7a..cabcec762 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 d9de37639..2593510f0 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 c05aa8ed4..4ec2de21f 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 73990d58d..ab24069a9 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 ada609a2a..1875f7bba 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 cc9011e28..34a676c6a 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 27285db53..21a68ef5c 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 3db736d39..110feb87b 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 aa85671c7..0be6efe40 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 aa2addf9f..415419046 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 46bd11a3d..bc3192d25 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 86e3c96c5..4529dc24b 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 ae0651af8..a4753aa3d 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'; ?>">