From 820562e81639c9fb4927b138f35467d43f29d4f5 Mon Sep 17 00:00:00 2001 From: NewEraCracker Date: Thu, 18 Feb 2016 10:02:34 +0000 Subject: Quote the 1st parameter (constant name) when calling define() --- src/usr/local/www/diag_nanobsd.php | 2 +- src/usr/local/www/services_ntpd.php | 2 +- src/usr/local/www/status_ipsec_spd.php | 4 ++-- src/usr/local/www/wizard.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/diag_nanobsd.php b/src/usr/local/www/diag_nanobsd.php index 95b15c2..0619837 100644 --- a/src/usr/local/www/diag_nanobsd.php +++ b/src/usr/local/www/diag_nanobsd.php @@ -69,7 +69,7 @@ require_once("config.inc"); // Setting DEBUG to true causes the dangerous stuff on this page to be simulated rather than executed. // MUST be set to false for production of course -define(DEBUG, false); +define('DEBUG', false); $pgtitle = array(gettext("Diagnostics"), gettext("NanoBSD")); include("head.inc"); diff --git a/src/usr/local/www/services_ntpd.php b/src/usr/local/www/services_ntpd.php index 0f75d99..f92b795 100644 --- a/src/usr/local/www/services_ntpd.php +++ b/src/usr/local/www/services_ntpd.php @@ -61,7 +61,7 @@ ##|*MATCH=services_ntpd.php* ##|-PRIV -define(NUMTIMESERVERS, 10); // The maximum number of configurable time servers +define('NUMTIMESERVERS', 10); // The maximum number of configurable time servers require("guiconfig.inc"); require_once('rrd.inc'); require_once("shaper.inc"); diff --git a/src/usr/local/www/status_ipsec_spd.php b/src/usr/local/www/status_ipsec_spd.php index 574783d..d5b8111 100644 --- a/src/usr/local/www/status_ipsec_spd.php +++ b/src/usr/local/www/status_ipsec_spd.php @@ -63,8 +63,8 @@ ##|*MATCH=status_ipsec_spd.php* ##|-PRIV -define(RIGHTARROW, '►'); -define(LEFTARROW, '◀'); +define('RIGHTARROW', '►'); +define('LEFTARROW', '◀'); require("guiconfig.inc"); require("ipsec.inc"); diff --git a/src/usr/local/www/wizard.php b/src/usr/local/www/wizard.php index 28a9216..f9d00dd 100644 --- a/src/usr/local/www/wizard.php +++ b/src/usr/local/www/wizard.php @@ -69,7 +69,7 @@ require_once("rrd.inc"); require_once("system.inc"); // This causes the step #, field type and field name to be printed at the top of the page -define(DEBUG, false); +define('DEBUG', false); global $g; -- cgit v1.1