summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/priv.defs.inc6
-rw-r--r--src/usr/local/www/head.inc4
-rw-r--r--src/usr/local/www/restart_httpd.php54
3 files changed, 0 insertions, 64 deletions
diff --git a/src/etc/inc/priv.defs.inc b/src/etc/inc/priv.defs.inc
index 60e8db0..5d68b2b 100644
--- a/src/etc/inc/priv.defs.inc
+++ b/src/etc/inc/priv.defs.inc
@@ -562,12 +562,6 @@ $priv_list['page-system-packagemanager-installed']['descr'] = gettext("Allow acc
$priv_list['page-system-packagemanager-installed']['match'] = array();
$priv_list['page-system-packagemanager-installed']['match'][] = "pkg_mgr_installed.php*";
-$priv_list['page-diagnostics-restart-httpd'] = array();
-$priv_list['page-diagnostics-restart-httpd']['name'] = gettext("WebCfg - Diagnostics: Restart Web Server Daemon");
-$priv_list['page-diagnostics-restart-httpd']['descr'] = gettext("Allow access to the 'Diagnostics: Restart Web Server Daemon' page.");
-$priv_list['page-diagnostics-restart-httpd']['match'] = array();
-$priv_list['page-diagnostics-restart-httpd']['match'][] = "restart_httpd.php*";
-
$priv_list['page-services-captiveportal'] = array();
$priv_list['page-services-captiveportal']['name'] = gettext("WebCfg - Services: Captive portal");
$priv_list['page-services-captiveportal']['descr'] = gettext("Allow access to the 'Services: Captive portal' page.");
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index 1f0d4aa..43c9375 100644
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -365,10 +365,6 @@ $diagnostics_menu[] = array(gettext("System Activity"), "/diag_system_activity.p
$diagnostics_menu[] = array(gettext("Traceroute"), "/diag_traceroute.php");
$diagnostics_menu[] = array(gettext("Packet Capture"), "/diag_packet_capture.php");
-if (isset($config['system']['developer'])) {
- $diagnostics_menu[] = array(gettext("Restart HTTPD"), "/restart_httpd.php", "style" => "font-weight: bold; color: yellow;");
-}
-
$diagnostics_menu = msort(array_merge($diagnostics_menu, return_ext_menu("Diagnostics")), 0);
$gold_menu = array();
diff --git a/src/usr/local/www/restart_httpd.php b/src/usr/local/www/restart_httpd.php
deleted file mode 100644
index a1b715b..0000000
--- a/src/usr/local/www/restart_httpd.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/*
- * restart_httpd.php
- *
- * part of pfSense (https://www.pfsense.org)
- * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
- * Copyright (c) 2005 Bill Marquette <bill.marquette@gmail.com>
- * All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-##|+PRIV
-##|*IDENT=page-diagnostics-restart-httpd
-##|*NAME=Diagnostics: Restart Web Server Daemon
-##|*DESCR=Allow access to the 'Diagnostics: Restart Web Server Daemon' page.
-##|*MATCH=restart_httpd.php*
-##|-PRIV
-
-require_once("guiconfig.inc");
-
-$pgtitle = array(gettext("Restarting httpd"));
-include("head.inc");
-?>
-
-<form>
-<?php include_once("fbegin.inc"); ?>
-
-<?=gettext("Mounting file systems read/write");?>...
-<?php flush(); sleep(1); conf_mount_rw(); ?>
-<?=gettext("Done");?>.<br />
-<?=gettext("Forcing all PHP file permissions to 0755");?>...
-<?php flush(); sleep(1); system('/bin/chmod -R 0755 /usr/local/www/*.php'); ?>
-<?=gettext("Done");?>.<br />
-<?=gettext("Mounting file systems read only");?>...
-<?php flush(); sleep(1); conf_mount_ro(); ?>
-<?=gettext("Done");?>.<br />
-<?=gettext("Restarting mini_httpd");?>...
-<?php flush(); sleep(1); system_webgui_start(); ?>
-<?=gettext("Done");?>.<br />
-
-<?php
-include("foot.inc");
-?>
OpenPOWER on IntegriCloud