From e16e92278b4698d782faf232bedd4ad38aa7a5d1 Mon Sep 17 00:00:00 2001 From: Flat Date: Sat, 2 Jul 2016 19:51:56 +0900 Subject: [PATCH 01/10] Separate scripts from html & New rendering function --- web/add/cron/index.php | 16 +-- web/add/db/index.php | 19 +-- web/add/dns/index.php | 28 ++-- web/add/firewall/banlist/index.php | 15 +- web/add/firewall/index.php | 15 +- web/add/ip/index.php | 16 +-- web/add/mail/index.php | 25 ++-- web/add/package/index.php | 18 +-- web/add/user/index.php | 16 +-- web/add/web/index.php | 18 +-- web/edit/backup/exclusions/index.php | 14 +- web/edit/cron/index.php | 15 +- web/edit/db/index.php | 19 +-- web/edit/dns/index.php | 29 +--- web/edit/firewall/index.php | 15 +- web/edit/ip/index.php | 18 +-- web/edit/mail/index.php | 28 ++-- web/edit/package/index.php | 16 +-- web/edit/server/index.php | 15 +- web/edit/user/index.php | 23 +--- web/edit/web/index.php | 20 +-- web/generate/ssl/index.php | 30 ++-- web/inc/main.php | 31 ++++- web/list/backup/exclusions/index.php | 15 +- web/list/backup/index.php | 21 +-- web/list/cron/index.php | 20 +-- web/list/db/index.php | 17 +-- web/list/dns/index.php | 26 +--- web/list/firewall/banlist/index.php | 15 +- web/list/firewall/index.php | 15 +- web/list/ip/index.php | 28 ++-- web/list/log/index.php | 15 +- web/list/mail/index.php | 26 +--- web/list/notifications/index.php | 18 +-- web/list/package/index.php | 14 +- web/list/rrd/index.php | 25 ++-- web/list/server/index.php | 14 +- web/list/stats/index.php | 16 +-- web/list/updates/index.php | 30 ++-- web/list/user/index.php | 31 ++--- web/list/web/index.php | 17 +-- web/phpinfo.php | 1 + web/search/index.php | 32 ++--- web/templates/admin/add_db.html | 43 ++---- web/templates/admin/add_db.js.html | 21 +++ web/templates/admin/add_dns.html | 40 ------ web/templates/admin/add_dns.js.html | 35 +++++ web/templates/admin/add_dns_rec.html | 5 - web/templates/admin/add_dns_rec.js.html | 4 + web/templates/admin/add_firewall.html | 16 +-- web/templates/admin/add_firewall.js.html | 6 + web/templates/admin/add_firewall_banlist.html | 14 +- .../admin/add_firewall_banlist.js.html | 6 + web/templates/admin/add_ip.html | 10 -- web/templates/admin/add_ip.js.html | 6 + web/templates/admin/add_mail_acc.html | 48 ------- web/templates/admin/add_mail_acc.js.html | 46 +++++++ web/templates/admin/add_package.html | 49 ++----- web/templates/admin/add_package.js.html | 30 ++++ web/templates/admin/add_user.html | 22 +-- web/templates/admin/add_user.js.html | 18 +++ web/templates/admin/add_web.html | 56 +------- web/templates/admin/add_web.js.html | 45 ++++++ web/templates/admin/edit_db.html | 25 ---- web/templates/admin/edit_db.js.html | 21 +++ web/templates/admin/edit_firewall.html | 16 +-- web/templates/admin/edit_firewall.js.html | 6 + web/templates/admin/edit_ip.html | 18 +-- web/templates/admin/edit_ip.js.html | 6 + web/templates/admin/edit_mail_acc.html | 21 --- web/templates/admin/edit_mail_acc.js.html | 18 +++ web/templates/admin/edit_package.html | 47 ++----- web/templates/admin/edit_package.js.html | 31 +++++ web/templates/admin/edit_server.html | 129 +++++++----------- web/templates/admin/edit_server.js.html | 24 ++++ web/templates/admin/edit_user.html | 49 +------ web/templates/admin/edit_user.js.html | 41 ++++++ web/templates/admin/edit_web.html | 66 ++------- web/templates/admin/edit_web.js.html | 42 ++++++ web/templates/footer.html | 9 +- web/templates/user/edit_user.html | 45 +----- web/templates/user/edit_user.js.html | 41 ++++++ web/templates/user/edit_web.html | 56 +------- web/templates/user/edit_web.js.html | 42 ++++++ 84 files changed, 848 insertions(+), 1280 deletions(-) create mode 100644 web/phpinfo.php create mode 100644 web/templates/admin/add_db.js.html create mode 100644 web/templates/admin/add_dns.js.html create mode 100644 web/templates/admin/add_dns_rec.js.html create mode 100644 web/templates/admin/add_firewall.js.html create mode 100644 web/templates/admin/add_firewall_banlist.js.html create mode 100644 web/templates/admin/add_ip.js.html create mode 100644 web/templates/admin/add_mail_acc.js.html create mode 100644 web/templates/admin/add_package.js.html create mode 100644 web/templates/admin/add_user.js.html create mode 100644 web/templates/admin/add_web.js.html create mode 100644 web/templates/admin/edit_db.js.html create mode 100644 web/templates/admin/edit_firewall.js.html create mode 100644 web/templates/admin/edit_ip.js.html create mode 100644 web/templates/admin/edit_mail_acc.js.html create mode 100644 web/templates/admin/edit_package.js.html create mode 100644 web/templates/admin/edit_server.js.html create mode 100644 web/templates/admin/edit_user.js.html create mode 100644 web/templates/admin/edit_web.js.html create mode 100644 web/templates/user/edit_user.js.html create mode 100644 web/templates/user/edit_web.js.html diff --git a/web/add/cron/index.php b/web/add/cron/index.php index 62cae8f1..9280f25e 100644 --- a/web/add/cron/index.php +++ b/web/add/cron/index.php @@ -1,10 +1,9 @@ diff --git a/web/add/dns/index.php b/web/add/dns/index.php index bd890c87..ec9dcbfc 100644 --- a/web/add/dns/index.php +++ b/web/add/dns/index.php @@ -1,10 +1,9 @@ $value) { $_SESSION[$key] = $value; } -// Header -include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html'); - -// Panel -top_panel($user,$TAB); - -// Display body -include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_server.html'); +// Render page +render_page($user, $TAB, 'admin/edit_server'); // Flush session messages unset($_SESSION['error_msg']); unset($_SESSION['ok_msg']); - -// Footer -include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); diff --git a/web/edit/user/index.php b/web/edit/user/index.php index 2fbd526a..3c2288e1 100644 --- a/web/edit/user/index.php +++ b/web/edit/user/index.php @@ -1,10 +1,9 @@ ', $output); if (empty($error)) $error = __('Error code:',$return_var); $_SESSION['error_msg'] = $error; - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/generate_ssl.html'); - include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); + render_page($user, $TAB, 'admin/generate_ssl'); unset($_SESSION['error_msg']); - exit(); + exit; } // OK message @@ -106,6 +97,7 @@ $v_csr = $data[$v_domain]['CSR']; // Back uri $_SESSION['back'] = $_SERVER['REQUEST_URI']; -include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_ssl.html'); -include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); +// Render page +render_page($user, $TAB, 'admin/list_ssl'); + unset($_SESSION['ok_msg']); diff --git a/web/inc/main.php b/web/inc/main.php index 4df0ece9..f3f96b87 100644 --- a/web/inc/main.php +++ b/web/inc/main.php @@ -95,6 +95,33 @@ function check_return_code($return_var,$output) { } } +function render_page($user, $TAB, $page) { + $__template_dir = dirname(__DIR__) . '/templates/'; + $__template_base = $__template_dir . str_replace('*', $_SESSION['user'] === 'admin' ? 'admin' : 'user', $page); + + // Header + include($__template_dir . 'header.html'); + + // Panel + top_panel(empty($_SESSION['look']) ? $_SESSION['user'] : $_SESSION['look'], $TAB); + + // Extarct global variables + // I think those variables should be passed via arguments + //* + extract($GLOBALS, EXTR_SKIP); + /*/ + $variables = array_filter($GLOBALS, function($key){return preg_match('/^(v_|[a-z])[a-z\d]+$/', $key);}, ARRAY_FILTER_USE_KEY); + extract($variables, EXTR_OVERWRITE); + //*/ + + // Body + @include($__template_base . '.html'); + + // Footer + $JS_FILE = $__template_base . '.js.html'; + include($__template_dir . 'footer.html'); +} + function top_panel($user, $TAB) { global $panel; $command = VESTA_CMD."v-list-user '".$user."' 'json'"; @@ -107,7 +134,7 @@ function top_panel($user, $TAB) { unset($output); - // getting notifications + // getting notifications $command = VESTA_CMD."v-list-user-notifications '".$user."' 'json'"; exec ($command, $output, $return_var); $notifications = json_decode(implode('', $output), true); @@ -118,7 +145,7 @@ function top_panel($user, $TAB) { } } unset($output); - + if ( $user == 'admin' ) { include(dirname(__FILE__).'/../templates/admin/panel.html'); diff --git a/web/list/backup/exclusions/index.php b/web/list/backup/exclusions/index.php index d03e9861..c533129c 100644 --- a/web/list/backup/exclusions/index.php +++ b/web/list/backup/exclusions/index.php @@ -3,22 +3,15 @@ error_reporting(NULL); $TAB = 'BACKUP'; // Main include -include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); - -// Header -include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html'); - -// Panel -top_panel($user,$TAB); +include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php'); // Data exec (VESTA_CMD."v-list-user-backup-exclusions $user json", $output, $return_var); $data = json_decode(implode('', $output), true); unset($output); -include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup_exclusions.html'); + +// Render page +render_page($user, $TAB, 'admin/list_backup_exclusions'); // Back uri $_SESSION['back'] = $_SERVER['REQUEST_URI']; - -// Footer -include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); diff --git a/web/list/backup/index.php b/web/list/backup/index.php index a7920572..b25284eb 100644 --- a/web/list/backup/index.php +++ b/web/list/backup/index.php @@ -3,31 +3,24 @@ error_reporting(NULL); $TAB = 'BACKUP'; // Main include -include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); +include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php'); -// Header -include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html'); - -// Panel -top_panel($user,$TAB); - -// Data +// Data & Render page if (empty($_GET['backup'])){ exec (VESTA_CMD."v-list-user-backups $user json", $output, $return_var); $data = json_decode(implode('', $output), true); $data = array_reverse($data,true); unset($output); - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup.html'); + + render_page($user, $TAB, 'admin/list_backup'); } else { - exec (VESTA_CMD."v-list-user-backup $user '".escapeshellarg($_GET['backup'])."' json", $output, $return_var); + exec (VESTA_CMD."v-list-user-backup $user ".escapeshellarg($_GET['backup'])." json", $output, $return_var); $data = json_decode(implode('', $output), true); $data = array_reverse($data,true); unset($output); - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup_detail.html'); + + render_page($user, $TAB, 'admin/list_backup_detail'); } // Back uri $_SESSION['back'] = $_SERVER['REQUEST_URI']; - -// Footer -include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); diff --git a/web/list/cron/index.php b/web/list/cron/index.php index 19f66379..5461ba0b 100644 --- a/web/list/cron/index.php +++ b/web/list/cron/index.php @@ -1,16 +1,9 @@ - + @@ -79,7 +60,7 @@ @@ -100,7 +81,7 @@ @@ -112,13 +93,13 @@ if ((!empty($v_type)) && ( $value == $v_type )) echo ' selected'; echo ">".htmlentities($value).""; } - ?> + ?> @@ -130,14 +111,14 @@ if ((!empty($v_host)) && ( $key == $v_host )) echo ' selected'; echo ">".htmlentities($key).""; } - ?> + ?> @@ -183,7 +164,7 @@ @@ -207,9 +188,3 @@
@@ -68,7 +49,7 @@
- +
- +
- +
- +
- +
- +
- - - diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html new file mode 100644 index 00000000..764f3796 --- /dev/null +++ b/web/templates/admin/add_db.js.html @@ -0,0 +1,21 @@ + + diff --git a/web/templates/admin/add_dns.html b/web/templates/admin/add_dns.html index 564ca5fa..e559166b 100644 --- a/web/templates/admin/add_dns.html +++ b/web/templates/admin/add_dns.html @@ -32,16 +32,6 @@
- @@ -190,33 +180,3 @@
- diff --git a/web/templates/admin/add_dns.js.html b/web/templates/admin/add_dns.js.html new file mode 100644 index 00000000..c3fefaad --- /dev/null +++ b/web/templates/admin/add_dns.js.html @@ -0,0 +1,35 @@ + diff --git a/web/templates/admin/add_dns_rec.html b/web/templates/admin/add_dns_rec.html index 76964b4c..2e65de4a 100644 --- a/web/templates/admin/add_dns_rec.html +++ b/web/templates/admin/add_dns_rec.html @@ -121,8 +121,3 @@ - - - diff --git a/web/templates/admin/add_dns_rec.js.html b/web/templates/admin/add_dns_rec.js.html new file mode 100644 index 00000000..55358442 --- /dev/null +++ b/web/templates/admin/add_dns_rec.js.html @@ -0,0 +1,4 @@ + + diff --git a/web/templates/admin/add_firewall.html b/web/templates/admin/add_firewall.html index de3d6372..c884e85d 100644 --- a/web/templates/admin/add_firewall.html +++ b/web/templates/admin/add_firewall.html @@ -32,16 +32,6 @@
- @@ -54,7 +44,7 @@
@@ -67,7 +57,7 @@ @@ -128,4 +118,4 @@
- +
- +
- \ No newline at end of file + diff --git a/web/templates/admin/add_firewall.js.html b/web/templates/admin/add_firewall.js.html new file mode 100644 index 00000000..438d2596 --- /dev/null +++ b/web/templates/admin/add_firewall.js.html @@ -0,0 +1,6 @@ + diff --git a/web/templates/admin/add_firewall_banlist.html b/web/templates/admin/add_firewall_banlist.html index 9c09d8da..3b1ae2bf 100644 --- a/web/templates/admin/add_firewall_banlist.html +++ b/web/templates/admin/add_firewall_banlist.html @@ -32,16 +32,6 @@ - @@ -54,7 +44,7 @@
@@ -95,4 +85,4 @@
- +
- \ No newline at end of file + diff --git a/web/templates/admin/add_firewall_banlist.js.html b/web/templates/admin/add_firewall_banlist.js.html new file mode 100644 index 00000000..438d2596 --- /dev/null +++ b/web/templates/admin/add_firewall_banlist.js.html @@ -0,0 +1,6 @@ + diff --git a/web/templates/admin/add_ip.html b/web/templates/admin/add_ip.html index 43b37d5d..47ca95df 100644 --- a/web/templates/admin/add_ip.html +++ b/web/templates/admin/add_ip.html @@ -32,16 +32,6 @@ - diff --git a/web/templates/admin/add_ip.js.html b/web/templates/admin/add_ip.js.html new file mode 100644 index 00000000..438d2596 --- /dev/null +++ b/web/templates/admin/add_ip.js.html @@ -0,0 +1,6 @@ + diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html index 2dd8c78d..2b633375 100644 --- a/web/templates/admin/add_mail_acc.html +++ b/web/templates/admin/add_mail_acc.html @@ -32,53 +32,6 @@ -
@@ -229,4 +182,3 @@
- diff --git a/web/templates/admin/add_mail_acc.js.html b/web/templates/admin/add_mail_acc.js.html new file mode 100644 index 00000000..538b5395 --- /dev/null +++ b/web/templates/admin/add_mail_acc.js.html @@ -0,0 +1,46 @@ + + diff --git a/web/templates/admin/add_package.html b/web/templates/admin/add_package.html index ec4e675c..d39a5a98 100644 --- a/web/templates/admin/add_package.html +++ b/web/templates/admin/add_package.html @@ -72,11 +72,11 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> - + " . strtoupper($_SESSION['WEB_BACKEND']). "" ;?> @@ -96,13 +96,13 @@ } echo ">".$value."\n"; } - ?> + ?> - + - + " .strtoupper($_SESSION['PROXY_SYSTEM']) . "" ;?> @@ -123,11 +123,11 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> - + " .strtoupper($_SESSION['DNS_SYSTEM']) . "" ;?> @@ -147,7 +147,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> @@ -170,7 +170,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> @@ -380,34 +380,3 @@ - - \ No newline at end of file diff --git a/web/templates/admin/add_package.js.html b/web/templates/admin/add_package.js.html new file mode 100644 index 00000000..b4de83b0 --- /dev/null +++ b/web/templates/admin/add_package.js.html @@ -0,0 +1,30 @@ + + diff --git a/web/templates/admin/add_user.html b/web/templates/admin/add_user.html index 7f978c65..069692c4 100644 --- a/web/templates/admin/add_user.html +++ b/web/templates/admin/add_user.html @@ -34,24 +34,6 @@
- @@ -112,7 +94,7 @@ } echo ">".htmlentities($key)."\n"; } - ?> + ?> @@ -188,4 +170,4 @@
- \ No newline at end of file + diff --git a/web/templates/admin/add_user.js.html b/web/templates/admin/add_user.js.html new file mode 100644 index 00000000..4a3e7cb0 --- /dev/null +++ b/web/templates/admin/add_user.js.html @@ -0,0 +1,18 @@ + diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html index 2a917029..22b6a1df 100644 --- a/web/templates/admin/add_web.html +++ b/web/templates/admin/add_web.html @@ -33,44 +33,6 @@
- @@ -142,7 +104,7 @@ - +
@@ -164,7 +126,7 @@
- + / @@ -242,7 +204,7 @@ } echo ">" . htmlentities(__($value)) . "\n"; } - ?> + ?> @@ -428,15 +390,3 @@ - - - - diff --git a/web/templates/admin/add_web.js.html b/web/templates/admin/add_web.js.html new file mode 100644 index 00000000..538a5009 --- /dev/null +++ b/web/templates/admin/add_web.js.html @@ -0,0 +1,45 @@ + + diff --git a/web/templates/admin/edit_db.html b/web/templates/admin/edit_db.html index 296f8bef..ded1c9b5 100644 --- a/web/templates/admin/edit_db.html +++ b/web/templates/admin/edit_db.html @@ -32,26 +32,6 @@ - @@ -146,8 +126,3 @@
- - diff --git a/web/templates/admin/edit_db.js.html b/web/templates/admin/edit_db.js.html new file mode 100644 index 00000000..ae45fd7f --- /dev/null +++ b/web/templates/admin/edit_db.js.html @@ -0,0 +1,21 @@ + + diff --git a/web/templates/admin/edit_firewall.html b/web/templates/admin/edit_firewall.html index 60a13e16..f95557ac 100644 --- a/web/templates/admin/edit_firewall.html +++ b/web/templates/admin/edit_firewall.html @@ -32,16 +32,6 @@
- @@ -60,7 +50,7 @@
@@ -73,7 +63,7 @@ @@ -130,4 +120,4 @@
- +
- +
- \ No newline at end of file + diff --git a/web/templates/admin/edit_firewall.js.html b/web/templates/admin/edit_firewall.js.html new file mode 100644 index 00000000..c55772c7 --- /dev/null +++ b/web/templates/admin/edit_firewall.js.html @@ -0,0 +1,6 @@ + diff --git a/web/templates/admin/edit_ip.html b/web/templates/admin/edit_ip.html index 4d013f00..aef5f992 100644 --- a/web/templates/admin/edit_ip.html +++ b/web/templates/admin/edit_ip.html @@ -32,16 +32,6 @@
- @@ -60,7 +50,7 @@
@@ -70,7 +60,7 @@ @@ -80,7 +70,7 @@ @@ -153,4 +143,4 @@
- +
- +
- +
- \ No newline at end of file + diff --git a/web/templates/admin/edit_ip.js.html b/web/templates/admin/edit_ip.js.html new file mode 100644 index 00000000..c55772c7 --- /dev/null +++ b/web/templates/admin/edit_ip.js.html @@ -0,0 +1,6 @@ + diff --git a/web/templates/admin/edit_mail_acc.html b/web/templates/admin/edit_mail_acc.html index c4ae0926..b22f2c32 100644 --- a/web/templates/admin/edit_mail_acc.html +++ b/web/templates/admin/edit_mail_acc.html @@ -32,26 +32,6 @@
- @@ -163,4 +143,3 @@
- diff --git a/web/templates/admin/edit_mail_acc.js.html b/web/templates/admin/edit_mail_acc.js.html new file mode 100644 index 00000000..5c71cf16 --- /dev/null +++ b/web/templates/admin/edit_mail_acc.js.html @@ -0,0 +1,18 @@ + + diff --git a/web/templates/admin/edit_package.html b/web/templates/admin/edit_package.html index 4480fa82..f8519cd1 100644 --- a/web/templates/admin/edit_package.html +++ b/web/templates/admin/edit_package.html @@ -72,11 +72,11 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> - + " .strtoupper($_SESSION['WEB_BACKEND']) . "";?> @@ -96,12 +96,12 @@ } echo ">".$value."\n"; } - ?> + ?> - - + + " .strtoupper($_SESSION['PROXY_SYSTEM']) . "";?> @@ -121,11 +121,11 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> - + " .strtoupper($_SESSION['DNS_SYSTEM']) . "";?> @@ -145,7 +145,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> @@ -381,34 +381,3 @@ - - \ No newline at end of file diff --git a/web/templates/admin/edit_package.js.html b/web/templates/admin/edit_package.js.html new file mode 100644 index 00000000..ced6604c --- /dev/null +++ b/web/templates/admin/edit_package.js.html @@ -0,0 +1,31 @@ + + diff --git a/web/templates/admin/edit_server.html b/web/templates/admin/edit_server.html index 20e49453..b6400e15 100644 --- a/web/templates/admin/edit_server.html +++ b/web/templates/admin/edit_server.html @@ -33,16 +33,7 @@
- + @@ -245,7 +236,7 @@
@@ -54,7 +45,7 @@ @@ -82,7 +73,7 @@ } echo ">".$value."\n"; } - ?> + ?>

@@ -106,7 +97,7 @@ } echo ">".$value."\n"; } - ?> + ?>

@@ -121,10 +112,10 @@ @@ -187,7 +178,7 @@
- +
- + @@ -133,10 +124,10 @@

- + @@ -145,10 +136,10 @@

- + @@ -159,7 +150,7 @@ @@ -169,7 +160,7 @@ - +
- +
- +
- +
- +
@@ -215,10 +206,10 @@ $i = 0; foreach ($dns_cluster as $key => $value) { $i++; - ?> + ?> @@ -227,7 +218,7 @@

- +
- +
- +
@@ -254,10 +245,10 @@

- + @@ -266,11 +257,11 @@

- - + + @@ -279,10 +270,10 @@

- + @@ -324,7 +315,7 @@ @@ -338,10 +329,10 @@ $i = 0; foreach ($v_mysql_hosts as $key => $value) { $i++; - ?> + ?> @@ -352,7 +343,7 @@ @@ -364,7 +355,7 @@ @@ -375,7 +366,7 @@ @@ -384,7 +375,7 @@



- + @@ -404,7 +395,7 @@ @@ -418,10 +409,10 @@ $i = 0; foreach ($v_pgsql_hosts as $key => $value) { $i++; - ?> + ?> @@ -432,7 +423,7 @@ @@ -443,7 +434,7 @@ @@ -452,7 +443,7 @@



- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -470,7 +461,7 @@ @@ -484,7 +475,7 @@ @@ -505,7 +496,7 @@ @@ -524,7 +515,7 @@ - + @@ -296,7 +263,7 @@ } echo ">". htmlentities(__($value)) ."\n"; } - ?> + ?> @@ -430,7 +397,7 @@
- +
- +
- +
@@ -538,7 +529,7 @@ @@ -549,7 +540,7 @@ @@ -560,7 +551,7 @@ @@ -571,7 +562,7 @@ @@ -599,7 +590,7 @@
- +
- +
- +
- +
- +
@@ -638,7 +629,7 @@ @@ -651,7 +642,7 @@ @@ -690,7 +681,7 @@ '.__('Licence Key').':
'; } else { - echo + echo __('Restrict users so that they cannot use SSH and access only their home directory.').' '.__('This is a commercial module, you would need to purchace license key to enable it.'). '
'.__('Enter License Key').':
@@ -712,7 +703,7 @@
@@ -778,23 +769,3 @@
- +
- +
- +
- +
- - \ No newline at end of file diff --git a/web/templates/admin/edit_server.js.html b/web/templates/admin/edit_server.js.html new file mode 100644 index 00000000..2582fc5c --- /dev/null +++ b/web/templates/admin/edit_server.js.html @@ -0,0 +1,24 @@ + diff --git a/web/templates/admin/edit_user.html b/web/templates/admin/edit_user.html index 8717ce3f..6ccb03f3 100644 --- a/web/templates/admin/edit_user.html +++ b/web/templates/admin/edit_user.html @@ -32,18 +32,7 @@
- + @@ -130,7 +119,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> @@ -171,7 +160,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?> @@ -264,33 +253,3 @@
@@ -106,7 +95,7 @@ } echo ">".htmlentities($key)."\n"; } - ?> + ?>
- \ No newline at end of file diff --git a/web/templates/admin/edit_user.js.html b/web/templates/admin/edit_user.js.html new file mode 100644 index 00000000..1b906fc1 --- /dev/null +++ b/web/templates/admin/edit_user.js.html @@ -0,0 +1,41 @@ + diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html index 51822ec7..7ace1abc 100644 --- a/web/templates/admin/edit_web.html +++ b/web/templates/admin/edit_web.html @@ -32,40 +32,7 @@
- - + - - + + @@ -217,7 +184,7 @@
@@ -141,11 +108,11 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?>
" . strtoupper($_SESSION['WEB_BACKEND']) . "";?> @@ -166,12 +133,12 @@ } echo ">".$value."\n"; } - ?> + ?>
@@ -200,7 +167,7 @@ } echo ">".htmlentities($value)."\n"; } - ?> + ?>
/ @@ -247,7 +214,7 @@
- +
- +
# () @@ -485,16 +452,3 @@
- - - diff --git a/web/templates/admin/edit_web.js.html b/web/templates/admin/edit_web.js.html new file mode 100644 index 00000000..79e1b235 --- /dev/null +++ b/web/templates/admin/edit_web.js.html @@ -0,0 +1,42 @@ + + diff --git a/web/templates/footer.html b/web/templates/footer.html index b67ab41b..e0bd4dea 100644 --- a/web/templates/footer.html +++ b/web/templates/footer.html @@ -7,9 +7,12 @@ - - + + - diff --git a/web/templates/user/edit_user.js.html b/web/templates/user/edit_user.js.html new file mode 100644 index 00000000..1b906fc1 --- /dev/null +++ b/web/templates/user/edit_user.js.html @@ -0,0 +1,41 @@ + diff --git a/web/templates/user/edit_web.html b/web/templates/user/edit_web.html index 878e9140..aef2cd67 100644 --- a/web/templates/user/edit_web.html +++ b/web/templates/user/edit_web.html @@ -32,40 +32,7 @@
- - +
@@ -124,7 +91,7 @@
@@ -146,7 +113,7 @@
- + / @@ -176,7 +143,7 @@ - + @@ -225,7 +192,7 @@ } echo ">". htmlentities(__($value)) ."\n"; } - ?> + ?> @@ -359,7 +326,7 @@ - - - diff --git a/web/templates/user/edit_web.js.html b/web/templates/user/edit_web.js.html new file mode 100644 index 00000000..3546f0fd --- /dev/null +++ b/web/templates/user/edit_web.js.html @@ -0,0 +1,42 @@ + + From d1b1f97ff497c6b9ec93f990b2ee47f01e2e0f0d Mon Sep 17 00:00:00 2001 From: Flat Date: Sat, 2 Jul 2016 20:19:26 +0900 Subject: [PATCH 02/10] Move display_error_block() to footer.html --- web/inc/main.php | 30 ---------------- web/list/user/index.php | 1 - web/templates/admin/add_cron.html | 4 +-- web/templates/admin/add_db.html | 2 -- web/templates/admin/add_dns.html | 2 -- web/templates/admin/add_dns_rec.html | 2 -- web/templates/admin/add_firewall.html | 2 -- web/templates/admin/add_firewall_banlist.html | 2 -- web/templates/admin/add_ip.html | 2 -- web/templates/admin/add_mail.html | 4 +-- web/templates/admin/add_mail_acc.html | 2 -- web/templates/admin/add_package.html | 2 -- web/templates/admin/add_user.html | 2 -- web/templates/admin/add_web.html | 2 -- .../admin/edit_backup_exclusions.html | 4 +-- web/templates/admin/edit_cron.html | 6 ++-- web/templates/admin/edit_db.html | 2 -- web/templates/admin/edit_dns.html | 6 ++-- web/templates/admin/edit_dns_rec.html | 4 +-- web/templates/admin/edit_firewall.html | 2 -- web/templates/admin/edit_ip.html | 2 -- web/templates/admin/edit_mail.html | 4 +-- web/templates/admin/edit_mail_acc.html | 2 -- web/templates/admin/edit_package.html | 2 -- web/templates/admin/edit_server.html | 2 -- web/templates/admin/edit_user.html | 2 -- web/templates/admin/edit_web.html | 2 -- web/templates/admin/generate_ssl.html | 4 +-- web/templates/admin/list_backup.html | 4 --- web/templates/admin/list_backup_detail.html | 6 +--- .../admin/list_backup_exclusions.html | 4 --- web/templates/admin/list_cron.html | 8 ++--- web/templates/admin/list_db.html | 8 ++--- web/templates/admin/list_dns.html | 8 ++--- web/templates/admin/list_dns_rec.html | 4 --- web/templates/admin/list_firewall.html | 8 ++--- .../admin/list_firewall_banlist.html | 6 +--- web/templates/admin/list_ip.html | 4 --- web/templates/admin/list_log.html | 3 -- web/templates/admin/list_mail.html | 8 ++--- web/templates/admin/list_mail_acc.html | 6 +--- web/templates/admin/list_packages.html | 8 ++--- web/templates/admin/list_rrd.html | 6 +--- web/templates/admin/list_search.html | 3 -- web/templates/admin/list_services.html | 3 -- web/templates/admin/list_ssl.html | 4 +-- web/templates/admin/list_stats.html | 6 +--- web/templates/admin/list_updates.html | 4 --- web/templates/admin/list_user.html | 8 ++--- web/templates/admin/list_web.html | 19 +++++----- web/templates/footer.html | 36 +++++++++++++++++-- web/templates/user/edit_dns.html | 4 +-- web/templates/user/edit_user.html | 2 -- web/templates/user/list_user.html | 8 ++--- web/templates/user/list_web.html | 11 ++---- 55 files changed, 78 insertions(+), 224 deletions(-) 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 @@ } ?> - -
@@ -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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
@@ -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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - - 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 @@ } ?> - -
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 @@ } ?> - -
@@ -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 @@ } ?> - -
@@ -32,7 +30,7 @@
-
    +
    • @@ -232,7 +230,7 @@
- +
diff --git a/web/templates/admin/edit_db.html b/web/templates/admin/edit_db.html index ded1c9b5..6e71678b 100644 --- a/web/templates/admin/edit_db.html +++ b/web/templates/admin/edit_db.html @@ -12,9 +12,7 @@ } ?>
-
-
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 @@ } ?> - -
@@ -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 @@ } ?> - -
@@ -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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
@@ -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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
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 @@ } ?> - -
@@ -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 @@ - - - - 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 @@ - - - - @@ -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 @@ - - - - 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 @@ - - - - @@ -79,8 +75,8 @@ } ?> -
diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index 4e5e5140..63fdcae1 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -72,11 +72,7 @@
-
- - -
@@ -109,8 +105,8 @@ ?> -
diff --git a/web/templates/admin/list_dns.html b/web/templates/admin/list_dns.html index 7f25b0d3..649e3073 100644 --- a/web/templates/admin/list_dns.html +++ b/web/templates/admin/list_dns.html @@ -42,11 +42,7 @@
-
- - -
@@ -69,8 +65,8 @@ } ?> -
diff --git a/web/templates/admin/list_dns_rec.html b/web/templates/admin/list_dns_rec.html index e4b55877..00b7be54 100644 --- a/web/templates/admin/list_dns_rec.html +++ b/web/templates/admin/list_dns_rec.html @@ -32,11 +32,7 @@
-
- - -
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 @@ - - - - @@ -72,8 +68,8 @@ } ?> -
diff --git a/web/templates/admin/list_firewall_banlist.html b/web/templates/admin/list_firewall_banlist.html index ae6f835d..40193198 100644 --- a/web/templates/admin/list_firewall_banlist.html +++ b/web/templates/admin/list_firewall_banlist.html @@ -30,11 +30,7 @@
-
- - -
@@ -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 @@
- - - - 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 @@ - - - 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 @@ - - - - @@ -86,8 +82,8 @@ ?> -
">
diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html index 9607d127..28e1f90b 100644 --- a/web/templates/admin/list_mail_acc.html +++ b/web/templates/admin/list_mail_acc.html @@ -49,11 +49,7 @@
-
- - -
@@ -83,7 +79,7 @@
" - v_unit_id="" v_section="mail_acc" sort-date="" sort-name="" sort-disk="" + v_unit_id="" v_section="mail_acc" sort-date="" sort-name="" sort-disk="" sort-star="">
diff --git a/web/templates/admin/list_packages.html b/web/templates/admin/list_packages.html index d06f0608..1812bd84 100644 --- a/web/templates/admin/list_packages.html +++ b/web/templates/admin/list_packages.html @@ -37,11 +37,7 @@
-
- - -
@@ -56,8 +52,8 @@ ?> -
diff --git a/web/templates/admin/list_rrd.html b/web/templates/admin/list_rrd.html index 756193fb..9245ada4 100644 --- a/web/templates/admin/list_rrd.html +++ b/web/templates/admin/list_rrd.html @@ -41,11 +41,7 @@
-
- - -
@@ -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 @@ - - - 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 @@ - - - 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 @@ } ?> - -
@@ -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 @@ - - - - @@ -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 @@ - - - - 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 @@ - - - - @@ -81,8 +77,8 @@ } ?> -
diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index 7f610b1a..94556eb5 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -38,16 +38,13 @@
-
+ - - -
@@ -120,9 +117,9 @@ } ?> -
@@ -210,7 +207,7 @@ sort-name="" sort-bandwidth="" sort-dis
- +
@@ -222,7 +219,7 @@ sort-name="" sort-bandwidth="" sort-dis
- +
@@ -251,7 +248,7 @@ sort-name="" sort-bandwidth="" sort-dis - +
:
@@ -259,7 +256,7 @@ sort-name="" sort-bandwidth="" sort-dis
- +
:
diff --git a/web/templates/footer.html b/web/templates/footer.html index e0bd4dea..1a2795f8 100644 --- a/web/templates/footer.html +++ b/web/templates/footer.html @@ -8,10 +8,42 @@ + + +
+
+

+
+ +
+ -
-
@@ -112,4 +110,4 @@ -
\ No newline at end of file + diff --git a/web/templates/user/edit_user.html b/web/templates/user/edit_user.html index 80bf0e31..2b1b2417 100644 --- a/web/templates/user/edit_user.html +++ b/web/templates/user/edit_user.html @@ -12,9 +12,7 @@ } ?> - -
diff --git a/web/templates/user/list_user.html b/web/templates/user/list_user.html index e71d286a..eea0e93a 100644 --- a/web/templates/user/list_user.html +++ b/web/templates/user/list_user.html @@ -52,11 +52,7 @@ - - - - @@ -79,8 +75,8 @@ } ?> -
diff --git a/web/templates/user/list_web.html b/web/templates/user/list_web.html index 9f08d0ab..fefe74d1 100644 --- a/web/templates/user/list_web.html +++ b/web/templates/user/list_web.html @@ -36,18 +36,13 @@
-
- + - - - -
@@ -122,8 +117,8 @@ -
From c57e10156e316045e7d6b225e523169af01e4ea6 Mon Sep 17 00:00:00 2001 From: Flat Date: Sat, 2 Jul 2016 20:39:25 +0900 Subject: [PATCH 03/10] Correct indentation --- web/templates/admin/add_db.js.html | 38 ++--- web/templates/admin/add_dns.js.html | 62 ++++---- web/templates/admin/add_dns_rec.js.html | 8 +- web/templates/admin/add_firewall.js.html | 12 +- .../admin/add_firewall_banlist.js.html | 12 +- web/templates/admin/add_ip.js.html | 12 +- web/templates/admin/add_mail_acc.js.html | 80 +++++----- web/templates/admin/add_package.js.html | 56 +++---- web/templates/admin/add_user.js.html | 34 ++--- web/templates/admin/add_web.js.html | 80 +++++----- web/templates/admin/edit_db.js.html | 38 ++--- web/templates/admin/edit_firewall.js.html | 12 +- web/templates/admin/edit_ip.js.html | 12 +- web/templates/admin/edit_mail_acc.js.html | 34 ++--- web/templates/admin/edit_package.js.html | 58 ++++---- web/templates/admin/edit_server.js.html | 44 +++--- web/templates/admin/edit_user.js.html | 76 +++++----- web/templates/admin/edit_web.js.html | 74 +++++----- web/templates/footer.html | 138 +++++++++--------- web/templates/user/edit_user.js.html | 76 +++++----- web/templates/user/edit_web.js.html | 74 +++++----- 21 files changed, 515 insertions(+), 515 deletions(-) diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html index 764f3796..fd78fbbc 100644 --- a/web/templates/admin/add_db.js.html +++ b/web/templates/admin/add_db.js.html @@ -1,21 +1,21 @@ - - + GLOBAL.DB_USER_PREFIX = ; + GLOBAL.DB_DBNAME_PREFIX = ; + + diff --git a/web/templates/admin/add_dns.js.html b/web/templates/admin/add_dns.js.html index c3fefaad..8c80da06 100644 --- a/web/templates/admin/add_dns.js.html +++ b/web/templates/admin/add_dns.js.html @@ -1,35 +1,35 @@ - + }); + diff --git a/web/templates/admin/add_dns_rec.js.html b/web/templates/admin/add_dns_rec.js.html index 55358442..3b482171 100644 --- a/web/templates/admin/add_dns_rec.js.html +++ b/web/templates/admin/add_dns_rec.js.html @@ -1,4 +1,4 @@ - - + + diff --git a/web/templates/admin/add_firewall.js.html b/web/templates/admin/add_firewall.js.html index 438d2596..6be2268e 100644 --- a/web/templates/admin/add_firewall.js.html +++ b/web/templates/admin/add_firewall.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_firewall_banlist.js.html b/web/templates/admin/add_firewall_banlist.js.html index 438d2596..6be2268e 100644 --- a/web/templates/admin/add_firewall_banlist.js.html +++ b/web/templates/admin/add_firewall_banlist.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_ip.js.html b/web/templates/admin/add_ip.js.html index 438d2596..6be2268e 100644 --- a/web/templates/admin/add_ip.js.html +++ b/web/templates/admin/add_ip.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_mail_acc.js.html b/web/templates/admin/add_mail_acc.js.html index 538b5395..8f55a890 100644 --- a/web/templates/admin/add_mail_acc.js.html +++ b/web/templates/admin/add_mail_acc.js.html @@ -1,46 +1,46 @@ - - + $('.toggle-psw-visibility-icon').click(function(){ + if($('input[name=v_password]').attr('type') == 'text') + $('#v_password').text($('input[name=v_password]').val()); + else + $('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*')); + }); + }); + + diff --git a/web/templates/admin/add_package.js.html b/web/templates/admin/add_package.js.html index b4de83b0..30d518b1 100644 --- a/web/templates/admin/add_package.js.html +++ b/web/templates/admin/add_package.js.html @@ -1,30 +1,30 @@ - - + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + }); + + diff --git a/web/templates/admin/add_user.js.html b/web/templates/admin/add_user.js.html index 4a3e7cb0..3a79e6f8 100644 --- a/web/templates/admin/add_user.js.html +++ b/web/templates/admin/add_user.js.html @@ -1,18 +1,18 @@ - + function randomString() { + var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; + var string_length = 10; + var randomstring = ''; + for (var i = 0; i < string_length; i++) { + var rnum = Math.floor(Math.random() * chars.length); + randomstring += chars.substr(rnum, 1); + } + document.v_add_user.v_password.value = randomstring; + } + diff --git a/web/templates/admin/add_web.js.html b/web/templates/admin/add_web.js.html index 538a5009..891100e1 100644 --- a/web/templates/admin/add_web.js.html +++ b/web/templates/admin/add_web.js.html @@ -1,45 +1,45 @@ - - + GLOBAL.FTP_USER_PREFIX = ; + GLOBAL.FTP_USER_PREPATH = ; + + diff --git a/web/templates/admin/edit_db.js.html b/web/templates/admin/edit_db.js.html index ae45fd7f..c8938bea 100644 --- a/web/templates/admin/edit_db.js.html +++ b/web/templates/admin/edit_db.js.html @@ -1,21 +1,21 @@ - - + GLOBAL.DB_USER_PREFIX = ; + GLOBAL.DB_DBNAME_PREFIX = ; + + diff --git a/web/templates/admin/edit_firewall.js.html b/web/templates/admin/edit_firewall.js.html index c55772c7..434b66e6 100644 --- a/web/templates/admin/edit_firewall.js.html +++ b/web/templates/admin/edit_firewall.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/edit_ip.js.html b/web/templates/admin/edit_ip.js.html index c55772c7..434b66e6 100644 --- a/web/templates/admin/edit_ip.js.html +++ b/web/templates/admin/edit_ip.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/edit_mail_acc.js.html b/web/templates/admin/edit_mail_acc.js.html index 5c71cf16..ee6fc04e 100644 --- a/web/templates/admin/edit_mail_acc.js.html +++ b/web/templates/admin/edit_mail_acc.js.html @@ -1,18 +1,18 @@ - - + function randomString() { + var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; + var string_length = 10; + var randomstring = ''; + for (var i = 0; i < string_length; i++) { + var rnum = Math.floor(Math.random() * chars.length); + randomstring += chars.substr(rnum, 1); + } + document.v_edit_mail_acc.v_password.value = randomstring; + } + + diff --git a/web/templates/admin/edit_package.js.html b/web/templates/admin/edit_package.js.html index ced6604c..7b6ab077 100644 --- a/web/templates/admin/edit_package.js.html +++ b/web/templates/admin/edit_package.js.html @@ -1,31 +1,31 @@ - - + $('.add-ns').show(); + }); + + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + + }); + + diff --git a/web/templates/admin/edit_server.js.html b/web/templates/admin/edit_server.js.html index 2582fc5c..d9512ced 100644 --- a/web/templates/admin/edit_server.js.html +++ b/web/templates/admin/edit_server.js.html @@ -1,24 +1,24 @@ - + $('select[name=v_sftp]').change(function(){ + if($(this).val() == 'yes'){ + $('.sftp.description').show(); + } else { + $('.sftp.description').hide(); + } + }); + }); + diff --git a/web/templates/admin/edit_user.js.html b/web/templates/admin/edit_user.js.html index 1b906fc1..1cd82534 100644 --- a/web/templates/admin/edit_user.js.html +++ b/web/templates/admin/edit_user.js.html @@ -1,41 +1,41 @@ - + $('.add-ns').show(); + }); + + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + + }); + diff --git a/web/templates/admin/edit_web.js.html b/web/templates/admin/edit_web.js.html index 79e1b235..59eaf330 100644 --- a/web/templates/admin/edit_web.js.html +++ b/web/templates/admin/edit_web.js.html @@ -1,42 +1,42 @@ - - + GLOBAL.FTP_USER_PREFIX = ; + + diff --git a/web/templates/footer.html b/web/templates/footer.html index 1a2795f8..fa71c154 100644 --- a/web/templates/footer.html +++ b/web/templates/footer.html @@ -1,84 +1,84 @@ -
- - - - - - - - - +
+ + + + + + + + + -
-
-

-
- -
+ }, + create: function() { + $(this) + .closest('.ui-dialog') + .find('.ui-button:first') + .addClass('submit'); + } + }); + +
- - \ No newline at end of file + diff --git a/web/templates/user/list_user.html b/web/templates/user/list_user.html index eea0e93a..3087bc65 100644 --- a/web/templates/user/list_user.html +++ b/web/templates/user/list_user.html @@ -90,38 +90,9 @@ sort-disk="" sort-star="
 L
- - -
-

-
- +
 L
 ↵
From 8b2e4da753dcb4c2afdb2020cf279035c82b3c36 Mon Sep 17 00:00:00 2001 From: Flat Date: Sat, 2 Jul 2016 21:50:16 +0900 Subject: [PATCH 08/10] Forgot to delete display_error_block()s in web/templates/user/*.html --- web/templates/user/edit_web.html | 2 -- web/templates/user/list_cron.html | 6 +----- web/templates/user/list_db.html | 8 ++------ web/templates/user/list_dns.html | 8 ++------ web/templates/user/list_dns_rec.html | 4 ---- web/templates/user/list_mail.html | 8 ++------ web/templates/user/list_mail_acc.html | 8 ++------ web/templates/user/list_search.html | 3 --- web/templates/user/list_stats.html | 6 +----- 9 files changed, 10 insertions(+), 43 deletions(-) diff --git a/web/templates/user/edit_web.html b/web/templates/user/edit_web.html index aef2cd67..013c2474 100644 --- a/web/templates/user/edit_web.html +++ b/web/templates/user/edit_web.html @@ -12,9 +12,7 @@ } ?> - -
diff --git a/web/templates/user/list_cron.html b/web/templates/user/list_cron.html index 757725ad..568d045c 100644 --- a/web/templates/user/list_cron.html +++ b/web/templates/user/list_cron.html @@ -49,11 +49,7 @@ - - - - @@ -78,7 +74,7 @@ ?> -
diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html index 2a80f7ab..f4e13f29 100644 --- a/web/templates/user/list_db.html +++ b/web/templates/user/list_db.html @@ -71,11 +71,7 @@
-
- - -
@@ -108,8 +104,8 @@ ?> -
diff --git a/web/templates/user/list_dns.html b/web/templates/user/list_dns.html index ce5c12a5..22dcbc55 100644 --- a/web/templates/user/list_dns.html +++ b/web/templates/user/list_dns.html @@ -41,11 +41,7 @@
-
- - -
@@ -68,8 +64,8 @@ } ?> -
diff --git a/web/templates/user/list_dns_rec.html b/web/templates/user/list_dns_rec.html index 2cf428a4..71b15abd 100644 --- a/web/templates/user/list_dns_rec.html +++ b/web/templates/user/list_dns_rec.html @@ -30,11 +30,7 @@
-
- - -
diff --git a/web/templates/user/list_mail.html b/web/templates/user/list_mail.html index 09afc610..2d3dd836 100644 --- a/web/templates/user/list_mail.html +++ b/web/templates/user/list_mail.html @@ -48,11 +48,7 @@ - - - - @@ -84,8 +80,8 @@ ?> -
diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html index 70bc38dc..a7ff6e7a 100644 --- a/web/templates/user/list_mail_acc.html +++ b/web/templates/user/list_mail_acc.html @@ -47,11 +47,7 @@
-
- - -
@@ -81,8 +77,8 @@ ?> -
" v_unit_id="" v_section="mail_acc" -sort-date="" sort-name="" sort-disk="" +
" v_unit_id="" v_section="mail_acc" +sort-date="" sort-name="" sort-disk="" sort-star="">
diff --git a/web/templates/user/list_search.html b/web/templates/user/list_search.html index 4820b51d..889cd094 100644 --- a/web/templates/user/list_search.html +++ b/web/templates/user/list_search.html @@ -23,9 +23,6 @@
- - -
diff --git a/web/templates/user/list_stats.html b/web/templates/user/list_stats.html index dc9419b4..aa70d794 100644 --- a/web/templates/user/list_stats.html +++ b/web/templates/user/list_stats.html @@ -37,11 +37,7 @@
- - - - @@ -268,4 +264,4 @@ - \ No newline at end of file + From 61e556ae115e8cabd470ef67dd0ade56dd5ca881 Mon Sep 17 00:00:00 2001 From: Flat Date: Mon, 4 Jul 2016 00:05:01 +0900 Subject: [PATCH 09/10] *.js.html: Replace CRLFs with LFs --- web/templates/admin/add_db.js.html | 42 +++++------ web/templates/admin/add_dns.js.html | 70 +++++++++---------- web/templates/admin/add_dns_rec.js.html | 8 +-- web/templates/admin/add_firewall.js.html | 12 ++-- .../admin/add_firewall_banlist.js.html | 12 ++-- web/templates/admin/add_ip.js.html | 12 ++-- 6 files changed, 78 insertions(+), 78 deletions(-) diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html index fd78fbbc..2ea6d578 100644 --- a/web/templates/admin/add_db.js.html +++ b/web/templates/admin/add_db.js.html @@ -1,21 +1,21 @@ - - + + diff --git a/web/templates/admin/add_dns.js.html b/web/templates/admin/add_dns.js.html index 74013a65..51633f5b 100644 --- a/web/templates/admin/add_dns.js.html +++ b/web/templates/admin/add_dns.js.html @@ -1,35 +1,35 @@ - + diff --git a/web/templates/admin/add_dns_rec.js.html b/web/templates/admin/add_dns_rec.js.html index 3b482171..a068a53b 100644 --- a/web/templates/admin/add_dns_rec.js.html +++ b/web/templates/admin/add_dns_rec.js.html @@ -1,4 +1,4 @@ - - + + diff --git a/web/templates/admin/add_firewall.js.html b/web/templates/admin/add_firewall.js.html index 6be2268e..5f644f8b 100644 --- a/web/templates/admin/add_firewall.js.html +++ b/web/templates/admin/add_firewall.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_firewall_banlist.js.html b/web/templates/admin/add_firewall_banlist.js.html index 6be2268e..5f644f8b 100644 --- a/web/templates/admin/add_firewall_banlist.js.html +++ b/web/templates/admin/add_firewall_banlist.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_ip.js.html b/web/templates/admin/add_ip.js.html index 6be2268e..5f644f8b 100644 --- a/web/templates/admin/add_ip.js.html +++ b/web/templates/admin/add_ip.js.html @@ -1,6 +1,6 @@ - + From 1fa3c4b3fbb7332fa419c3a1d3f19dceb5940cf8 Mon Sep 17 00:00:00 2001 From: Flat Date: Mon, 4 Jul 2016 21:26:41 +0900 Subject: [PATCH 10/10] Move content of .js.html files to .html --- web/inc/main.php | 14 +++--- web/templates/admin/add_db.html | 23 +++++++++ web/templates/admin/add_db.js.html | 21 -------- web/templates/admin/add_dns.html | 37 ++++++++++++++ web/templates/admin/add_dns.js.html | 35 -------------- web/templates/admin/add_dns_rec.html | 6 +++ web/templates/admin/add_dns_rec.js.html | 4 -- web/templates/admin/add_firewall.html | 8 ++++ web/templates/admin/add_firewall.js.html | 6 --- web/templates/admin/add_firewall_banlist.html | 8 ++++ .../admin/add_firewall_banlist.js.html | 6 --- web/templates/admin/add_ip.html | 8 ++++ web/templates/admin/add_ip.js.html | 6 --- web/templates/admin/add_mail_acc.html | 48 +++++++++++++++++++ web/templates/admin/add_mail_acc.js.html | 46 ------------------ web/templates/admin/add_package.html | 32 +++++++++++++ web/templates/admin/add_package.js.html | 30 ------------ web/templates/admin/add_user.html | 20 ++++++++ web/templates/admin/add_user.js.html | 18 ------- web/templates/admin/add_web.html | 47 ++++++++++++++++++ web/templates/admin/add_web.js.html | 45 ----------------- web/templates/admin/edit_db.html | 23 +++++++++ web/templates/admin/edit_db.js.html | 21 -------- web/templates/admin/edit_firewall.html | 8 ++++ web/templates/admin/edit_firewall.js.html | 6 --- web/templates/admin/edit_ip.html | 8 ++++ web/templates/admin/edit_ip.js.html | 6 --- web/templates/admin/edit_mail_acc.html | 20 ++++++++ web/templates/admin/edit_mail_acc.js.html | 18 ------- web/templates/admin/edit_package.html | 33 +++++++++++++ web/templates/admin/edit_package.js.html | 31 ------------ web/templates/admin/edit_server.html | 26 ++++++++++ web/templates/admin/edit_server.js.html | 24 ---------- web/templates/admin/edit_user.html | 43 +++++++++++++++++ web/templates/admin/edit_user.js.html | 41 ---------------- web/templates/admin/edit_web.html | 44 +++++++++++++++++ web/templates/admin/edit_web.js.html | 42 ---------------- web/templates/footer.html | 17 +++---- web/templates/scripts.html | 8 ++++ web/templates/user/edit_user.html | 43 +++++++++++++++++ web/templates/user/edit_user.js.html | 41 ---------------- web/templates/user/edit_web.html | 44 +++++++++++++++++ web/templates/user/edit_web.js.html | 42 ---------------- 43 files changed, 550 insertions(+), 507 deletions(-) delete mode 100644 web/templates/admin/add_db.js.html delete mode 100644 web/templates/admin/add_dns.js.html delete mode 100644 web/templates/admin/add_dns_rec.js.html delete mode 100644 web/templates/admin/add_firewall.js.html delete mode 100644 web/templates/admin/add_firewall_banlist.js.html delete mode 100644 web/templates/admin/add_ip.js.html delete mode 100644 web/templates/admin/add_mail_acc.js.html delete mode 100644 web/templates/admin/add_package.js.html delete mode 100644 web/templates/admin/add_user.js.html delete mode 100644 web/templates/admin/add_web.js.html delete mode 100644 web/templates/admin/edit_db.js.html delete mode 100644 web/templates/admin/edit_firewall.js.html delete mode 100644 web/templates/admin/edit_ip.js.html delete mode 100644 web/templates/admin/edit_mail_acc.js.html delete mode 100644 web/templates/admin/edit_package.js.html delete mode 100644 web/templates/admin/edit_server.js.html delete mode 100644 web/templates/admin/edit_user.js.html delete mode 100644 web/templates/admin/edit_web.js.html create mode 100644 web/templates/scripts.html delete mode 100644 web/templates/user/edit_user.js.html delete mode 100644 web/templates/user/edit_web.js.html diff --git a/web/inc/main.php b/web/inc/main.php index 039cd141..03446849 100644 --- a/web/inc/main.php +++ b/web/inc/main.php @@ -95,6 +95,10 @@ function check_return_code($return_var,$output) { } } +function insert_scripts() { + @include_once(dirname(__DIR__) . '/templates/scripts.html'); +} + function render_page($user, $TAB, $page) { $__template_dir = dirname(__DIR__) . '/templates/'; @@ -115,18 +119,14 @@ function render_page($user, $TAB, $page) { // Body if (($_SESSION['user'] !== 'admin') && (@include($__template_dir . "user/$page.html"))) { - // User page exists - // Use user page - $__template_base = $__template_dir . "user/$page"; + // User page loaded } else { // Not admin or user page doesn't exist - // Use admin page - $__template_base = $__template_dir . "admin/$page"; - include($__template_base . '.html'); + // Load admin page + @include($__template_dir . "admin/$page.html"); } // Footer - $JS_FILE = $__template_base . '.js.html'; include($__template_dir . 'footer.html'); } diff --git a/web/templates/admin/add_db.html b/web/templates/admin/add_db.html index 426ba7d6..a1e6cc2d 100644 --- a/web/templates/admin/add_db.html +++ b/web/templates/admin/add_db.html @@ -186,3 +186,26 @@ + + + + diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html deleted file mode 100644 index 2ea6d578..00000000 --- a/web/templates/admin/add_db.js.html +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/web/templates/admin/add_dns.html b/web/templates/admin/add_dns.html index 3598113d..10285e23 100644 --- a/web/templates/admin/add_dns.html +++ b/web/templates/admin/add_dns.html @@ -178,3 +178,40 @@ + + + diff --git a/web/templates/admin/add_dns.js.html b/web/templates/admin/add_dns.js.html deleted file mode 100644 index 51633f5b..00000000 --- a/web/templates/admin/add_dns.js.html +++ /dev/null @@ -1,35 +0,0 @@ - diff --git a/web/templates/admin/add_dns_rec.html b/web/templates/admin/add_dns_rec.html index 00824c6d..ddee3a00 100644 --- a/web/templates/admin/add_dns_rec.html +++ b/web/templates/admin/add_dns_rec.html @@ -119,3 +119,9 @@ + + + + diff --git a/web/templates/admin/add_dns_rec.js.html b/web/templates/admin/add_dns_rec.js.html deleted file mode 100644 index a068a53b..00000000 --- a/web/templates/admin/add_dns_rec.js.html +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/web/templates/admin/add_firewall.html b/web/templates/admin/add_firewall.html index 36c1d78d..710ae297 100644 --- a/web/templates/admin/add_firewall.html +++ b/web/templates/admin/add_firewall.html @@ -117,3 +117,11 @@ + + + diff --git a/web/templates/admin/add_firewall.js.html b/web/templates/admin/add_firewall.js.html deleted file mode 100644 index 5f644f8b..00000000 --- a/web/templates/admin/add_firewall.js.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/templates/admin/add_firewall_banlist.html b/web/templates/admin/add_firewall_banlist.html index bbcecdcd..ed06693e 100644 --- a/web/templates/admin/add_firewall_banlist.html +++ b/web/templates/admin/add_firewall_banlist.html @@ -84,3 +84,11 @@ + + + diff --git a/web/templates/admin/add_firewall_banlist.js.html b/web/templates/admin/add_firewall_banlist.js.html deleted file mode 100644 index 5f644f8b..00000000 --- a/web/templates/admin/add_firewall_banlist.js.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/templates/admin/add_ip.html b/web/templates/admin/add_ip.html index 26887c3b..4c3b0be0 100644 --- a/web/templates/admin/add_ip.html +++ b/web/templates/admin/add_ip.html @@ -145,3 +145,11 @@ + + + diff --git a/web/templates/admin/add_ip.js.html b/web/templates/admin/add_ip.js.html deleted file mode 100644 index 5f644f8b..00000000 --- a/web/templates/admin/add_ip.js.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html index 49abd990..08aaf74d 100644 --- a/web/templates/admin/add_mail_acc.html +++ b/web/templates/admin/add_mail_acc.html @@ -180,3 +180,51 @@ + + + + diff --git a/web/templates/admin/add_mail_acc.js.html b/web/templates/admin/add_mail_acc.js.html deleted file mode 100644 index 8f55a890..00000000 --- a/web/templates/admin/add_mail_acc.js.html +++ /dev/null @@ -1,46 +0,0 @@ - - diff --git a/web/templates/admin/add_package.html b/web/templates/admin/add_package.html index 94de1957..72b9bfd1 100644 --- a/web/templates/admin/add_package.html +++ b/web/templates/admin/add_package.html @@ -378,3 +378,35 @@ + + + + diff --git a/web/templates/admin/add_package.js.html b/web/templates/admin/add_package.js.html deleted file mode 100644 index 9c580fb1..00000000 --- a/web/templates/admin/add_package.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - diff --git a/web/templates/admin/add_user.html b/web/templates/admin/add_user.html index e469a4dc..aafdf253 100644 --- a/web/templates/admin/add_user.html +++ b/web/templates/admin/add_user.html @@ -169,3 +169,23 @@ + + + diff --git a/web/templates/admin/add_user.js.html b/web/templates/admin/add_user.js.html deleted file mode 100644 index 3a79e6f8..00000000 --- a/web/templates/admin/add_user.js.html +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html index 15b108fd..5b9ecf47 100644 --- a/web/templates/admin/add_web.html +++ b/web/templates/admin/add_web.html @@ -388,3 +388,50 @@ + + + + diff --git a/web/templates/admin/add_web.js.html b/web/templates/admin/add_web.js.html deleted file mode 100644 index 891100e1..00000000 --- a/web/templates/admin/add_web.js.html +++ /dev/null @@ -1,45 +0,0 @@ - - diff --git a/web/templates/admin/edit_db.html b/web/templates/admin/edit_db.html index 6e71678b..1b27ab38 100644 --- a/web/templates/admin/edit_db.html +++ b/web/templates/admin/edit_db.html @@ -124,3 +124,26 @@ + + + + diff --git a/web/templates/admin/edit_db.js.html b/web/templates/admin/edit_db.js.html deleted file mode 100644 index c8938bea..00000000 --- a/web/templates/admin/edit_db.js.html +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/web/templates/admin/edit_firewall.html b/web/templates/admin/edit_firewall.html index 6f144ebb..1b6bf359 100644 --- a/web/templates/admin/edit_firewall.html +++ b/web/templates/admin/edit_firewall.html @@ -119,3 +119,11 @@ + + + diff --git a/web/templates/admin/edit_firewall.js.html b/web/templates/admin/edit_firewall.js.html deleted file mode 100644 index 434b66e6..00000000 --- a/web/templates/admin/edit_firewall.js.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/templates/admin/edit_ip.html b/web/templates/admin/edit_ip.html index c9ea2c72..811457b3 100644 --- a/web/templates/admin/edit_ip.html +++ b/web/templates/admin/edit_ip.html @@ -142,3 +142,11 @@ + + + diff --git a/web/templates/admin/edit_ip.js.html b/web/templates/admin/edit_ip.js.html deleted file mode 100644 index 434b66e6..00000000 --- a/web/templates/admin/edit_ip.js.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/templates/admin/edit_mail_acc.html b/web/templates/admin/edit_mail_acc.html index 24c76e6d..52b66d7b 100644 --- a/web/templates/admin/edit_mail_acc.html +++ b/web/templates/admin/edit_mail_acc.html @@ -141,3 +141,23 @@ + + + + diff --git a/web/templates/admin/edit_mail_acc.js.html b/web/templates/admin/edit_mail_acc.js.html deleted file mode 100644 index ee6fc04e..00000000 --- a/web/templates/admin/edit_mail_acc.js.html +++ /dev/null @@ -1,18 +0,0 @@ - - diff --git a/web/templates/admin/edit_package.html b/web/templates/admin/edit_package.html index 34359544..8db16864 100644 --- a/web/templates/admin/edit_package.html +++ b/web/templates/admin/edit_package.html @@ -379,3 +379,36 @@ + + + + diff --git a/web/templates/admin/edit_package.js.html b/web/templates/admin/edit_package.js.html deleted file mode 100644 index 790fe975..00000000 --- a/web/templates/admin/edit_package.js.html +++ /dev/null @@ -1,31 +0,0 @@ - - diff --git a/web/templates/admin/edit_server.html b/web/templates/admin/edit_server.html index 04a96ead..5272750c 100644 --- a/web/templates/admin/edit_server.html +++ b/web/templates/admin/edit_server.html @@ -767,3 +767,29 @@ + + + diff --git a/web/templates/admin/edit_server.js.html b/web/templates/admin/edit_server.js.html deleted file mode 100644 index d9512ced..00000000 --- a/web/templates/admin/edit_server.js.html +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/web/templates/admin/edit_user.html b/web/templates/admin/edit_user.html index 567db42f..aa017d41 100644 --- a/web/templates/admin/edit_user.html +++ b/web/templates/admin/edit_user.html @@ -251,3 +251,46 @@ + + + diff --git a/web/templates/admin/edit_user.js.html b/web/templates/admin/edit_user.js.html deleted file mode 100644 index ef48eec9..00000000 --- a/web/templates/admin/edit_user.js.html +++ /dev/null @@ -1,41 +0,0 @@ - diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html index 09c9edb3..f8593186 100644 --- a/web/templates/admin/edit_web.html +++ b/web/templates/admin/edit_web.html @@ -450,3 +450,47 @@ + + + + diff --git a/web/templates/admin/edit_web.js.html b/web/templates/admin/edit_web.js.html deleted file mode 100644 index 59eaf330..00000000 --- a/web/templates/admin/edit_web.js.html +++ /dev/null @@ -1,42 +0,0 @@ - - diff --git a/web/templates/footer.html b/web/templates/footer.html index bab46cf0..a98c6d1b 100644 --- a/web/templates/footer.html +++ b/web/templates/footer.html @@ -1,22 +1,17 @@ + - - - - - - - - + - + + + + + + + diff --git a/web/templates/user/edit_user.html b/web/templates/user/edit_user.html index 2b1b2417..9caa9503 100644 --- a/web/templates/user/edit_user.html +++ b/web/templates/user/edit_user.html @@ -219,3 +219,46 @@ + + + diff --git a/web/templates/user/edit_user.js.html b/web/templates/user/edit_user.js.html deleted file mode 100644 index ef48eec9..00000000 --- a/web/templates/user/edit_user.js.html +++ /dev/null @@ -1,41 +0,0 @@ - diff --git a/web/templates/user/edit_web.html b/web/templates/user/edit_web.html index 013c2474..a40fe88e 100644 --- a/web/templates/user/edit_web.html +++ b/web/templates/user/edit_web.html @@ -379,3 +379,47 @@ + + + + diff --git a/web/templates/user/edit_web.js.html b/web/templates/user/edit_web.js.html deleted file mode 100644 index e3776fc2..00000000 --- a/web/templates/user/edit_web.js.html +++ /dev/null @@ -1,42 +0,0 @@ - -