From 8e97290bde3381b01455f97a79812c8d401ae362 Mon Sep 17 00:00:00 2001 From: George Shaw Date: Tue, 14 Nov 2017 16:03:19 -0600 Subject: [PATCH] issues #72 and #66 and set up front end for ip filtering --- document_roots/webhost/assets/css/style.css | 4 - .../js/panelHandlers/security/ipFiltering.js | 22 +++++ document_roots/webhost/gPanel.html | 87 ++++++++++++++++--- 3 files changed, 97 insertions(+), 16 deletions(-) create mode 100644 document_roots/webhost/assets/js/panelHandlers/security/ipFiltering.js diff --git a/document_roots/webhost/assets/css/style.css b/document_roots/webhost/assets/css/style.css index e9b2c0a..52547f1 100644 --- a/document_roots/webhost/assets/css/style.css +++ b/document_roots/webhost/assets/css/style.css @@ -22,10 +22,6 @@ body { .navbar { background-color:#E0EBF5 !important; } - -#logoutForm > button { - cursor:pointer; -} /* Navbar End */ /* General Start */ diff --git a/document_roots/webhost/assets/js/panelHandlers/security/ipFiltering.js b/document_roots/webhost/assets/js/panelHandlers/security/ipFiltering.js new file mode 100644 index 0000000..329c948 --- /dev/null +++ b/document_roots/webhost/assets/js/panelHandlers/security/ipFiltering.js @@ -0,0 +1,22 @@ +var ipModal = jQuery('.ip-filter-modal'); + +jQuery('._js_ip-filtering-open').on('click', function(e){ + e.preventDefault(); + + var title; + switch(jQuery(this).attr('data')) { + case "general": + title = "General"; + break; + case "maintenance": + title = "Maintenance Mode"; + break; + default: + alert("Error, refresh and try again. If problem persists contact server administrator."); + return; + } + title += " IP Filtering"; + + ipModal.find('.modal-title').html(title); + ipModal.modal('show'); +}); diff --git a/document_roots/webhost/gPanel.html b/document_roots/webhost/gPanel.html index 8b0f623..78f6388 100644 --- a/document_roots/webhost/gPanel.html +++ b/document_roots/webhost/gPanel.html @@ -1,7 +1,7 @@ - gPanel + gPanel Account @@ -12,7 +12,7 @@ +