mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
some more php-fpm issues
This commit is contained in:
parent
adacd4b6ed
commit
b3aa303cdc
@ -33,10 +33,7 @@ require_once("notices.inc");
|
||||
require_once("openvpn.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
if (isset($_GET))
|
||||
$argument = $_GET['interface'];
|
||||
else
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
if (!strstr($argument, "@"))
|
||||
log_error("Carp MASTER event triggered from wrong source {$argument}");
|
||||
|
||||
|
||||
@ -33,10 +33,7 @@ require_once("notices.inc");
|
||||
require_once("openvpn.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
if (isset($_GET))
|
||||
$argument = $_GET['interface'];
|
||||
else
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
if (!strstr($argument, "@"))
|
||||
log_error("Carp MASTER event triggered from wrong source {$argument}");
|
||||
|
||||
|
||||
@ -35,10 +35,7 @@ require_once("shaper.inc");
|
||||
|
||||
/* Interface IP address has changed */
|
||||
|
||||
if (isset($_GET))
|
||||
$argument = $_GET['dyndns'];
|
||||
else
|
||||
$argument = trim($argv[1], " \n");
|
||||
$argument = trim($argv[1], " \n");
|
||||
|
||||
if(empty($argument) || $argument == "all") {
|
||||
services_dyndns_configure();
|
||||
|
||||
@ -32,10 +32,7 @@ require_once("functions.inc");
|
||||
require_once("filter.inc");
|
||||
require_once("shaper.inc");
|
||||
|
||||
if (isset($_GET))
|
||||
$argument = $_GET['interface'];
|
||||
else
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
if (empty($argument))
|
||||
interface_configure("wan");
|
||||
else {
|
||||
|
||||
@ -56,10 +56,7 @@ function restart_packages() {
|
||||
}
|
||||
|
||||
/* Interface IP address has changed */
|
||||
if (isset($_GET['interface']))
|
||||
$argument = $_GET['interface'];
|
||||
else
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
|
||||
log_error("rc.newwanip: Informational is starting {$argument}.");
|
||||
|
||||
|
||||
@ -70,10 +70,7 @@ if (file_exists('/var/run/booting')) {
|
||||
}
|
||||
|
||||
/* Input argument is a comma-separated list of gateway names, blank or "all". */
|
||||
if (isset($_GET))
|
||||
$argument = $_GET['interface'];
|
||||
else
|
||||
$argument = trim($argv[1], " \n");
|
||||
$argument = trim($argv[1], " \n");
|
||||
|
||||
if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-client'])) {
|
||||
if (empty($argument) || $argument == "all") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user