mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove preload.php even here now that is possible to avoid issues during startup of lighty
This commit is contained in:
parent
59d7657076
commit
f16a2be7ca
@ -696,12 +696,6 @@ function system_webgui_start() {
|
||||
/* attempt to start lighthttpd */
|
||||
$res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-webConfigurator.conf");
|
||||
|
||||
/* fetch page to preload apc cache */
|
||||
$proto = "http";
|
||||
if ($config['system']['webgui']['protocol'])
|
||||
$proto = $config['system']['webgui']['protocol'];
|
||||
mwexec_bg("/usr/bin/fetch -o /dev/null -q {$proto}://localhost:{$portarg}/preload.php");
|
||||
|
||||
if ($g['booting']) {
|
||||
if ($res == 0)
|
||||
echo "done.\n";
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* make sure we are coming from 127.0.0.1 */
|
||||
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
|
||||
if($ip <> "127.0.0.1")
|
||||
die(gettext("You are not allowed to access this page."));
|
||||
|
||||
/* preload */
|
||||
|
||||
$files=array("functions.inc",
|
||||
"config.inc",
|
||||
"IPv6.inc",
|
||||
"itemid.inc",
|
||||
"shaper.inc",
|
||||
"PEAR.inc",
|
||||
"led.inc",
|
||||
"array_intersect_key.inc",
|
||||
"dyndns.class",
|
||||
"meta.inc",
|
||||
"smtp.inc",
|
||||
"auth.inc",
|
||||
"easyrule.inc",
|
||||
"notices.inc",
|
||||
"system.inc",
|
||||
"filter.inc",
|
||||
"upgrade_config.inc",
|
||||
"openvpn.inc",
|
||||
"authgui.inc",
|
||||
"vpfsense-utils.inc",
|
||||
"vuuid.php",
|
||||
"captiveportal.inc",
|
||||
"voucher.inc",
|
||||
"certs.inc",
|
||||
"filter_log.inc",
|
||||
"pkg-utils.inc",
|
||||
"vpn.inc",
|
||||
"cmd_chain.inc",
|
||||
"vslb.inc",
|
||||
"config.gui.inc",
|
||||
"globals.inc",
|
||||
"priv.defs.inc",
|
||||
"xmlparse.inc",
|
||||
"priv.inc",
|
||||
"config.inc",
|
||||
"growl.class",
|
||||
"radius.inc",
|
||||
"xmlrpc.inc",
|
||||
"gwlb.inc",
|
||||
"rrd.inc",
|
||||
"xmlrpc_client.inc",
|
||||
"config.lib.inc",
|
||||
"interfaces.inc",
|
||||
"service-utils.inc",
|
||||
"xmlrpc_server.inc",
|
||||
"ipsec.inc",
|
||||
"services.inc");
|
||||
|
||||
foreach($files as $file)
|
||||
require_once($file);
|
||||
|
||||
require("guiconfig.inc");
|
||||
include('/usr/local/www/includes/functions.inc.php');
|
||||
include("fbegin.inc");
|
||||
include("fend.inc");
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user