From 6d3f5e9f37466c41ab64eb35e8b67c03a2461024 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 30 Jan 2021 16:59:36 +0000 Subject: [PATCH] Cleanup commented code --- app/js/custom.js | 4 ---- index.php | 1 - 2 files changed, 5 deletions(-) diff --git a/app/js/custom.js b/app/js/custom.js index e3957ea4..643e4f18 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -145,11 +145,7 @@ function setCSRFTokenHeader(event, xhr, settings) { } function contentLoaded() { - //pageCurrent = window.location.href.split("?")[1].split("=")[1]; - //pageCurrent = pageCurrent.replace("#",""); - pageCurrent = window.location.href.split("/").pop(); - switch(pageCurrent) { case "network_conf": getAllInterfaces(); diff --git a/index.php b/index.php index 1efa7733..88715c4f 100755 --- a/index.php +++ b/index.php @@ -48,7 +48,6 @@ require_once 'includes/openvpn.php'; require_once 'includes/torproxy.php'; $output = $return = 0; -//$page = $_GET['page']; $page = $_SERVER['REQUEST_URI']; $theme_url = getThemeOpt();