'.PHP_EOL;
@@ -499,7 +493,7 @@ function getDbConHTML() {
// Returns the html representing up to 4 storage areas and their current capacity
function getStorageHTML() {
- $result='';
+ $result = '';
$func = function($S) {
$class = '';
@@ -538,7 +532,7 @@ function getStorageHTML() {
// Returns the html representing the current capacity of mapped memory filesystem (usually /dev/shm)
function getShmHTML() {
- $result='';
+ $result = '';
$shm_percent = getDiskPercent(ZM_PATH_MAP);
$shm_total_space = disk_total_space(ZM_PATH_MAP);
@@ -557,37 +551,40 @@ function getShmHTML() {
// Returns the html representing the optional web console banner text
function getConsoleBannerHTML() {
- $result='';
+ $result = '';
if ( defined('ZM_WEB_CONSOLE_BANNER') and ZM_WEB_CONSOLE_BANNER != '' ) {
$result .= '
'.validHtmlStr(ZM_WEB_CONSOLE_BANNER).'
';
}
-
return $result;
}
// Returns the html representing the current high,medium,low bandwidth setting
-function getBandwidthHTML($bandwidth_options,$user) {
- $result='';
+function getBandwidthHTML($bandwidth_options, $user) {
+ $result = '';
- $result .= '
'.PHP_EOL;
return $result;
}
// Returns the html representing the version of ZoneMinder
function getZMVersionHTML() {
- $result='';
+ $result = '';
$class = (ZM_DYN_DB_VERSION&&(ZM_DYN_DB_VERSION!=ZM_VERSION))?'text-danger':'';
- $result .= '
'.PHP_EOL;
return $result;
}
// Returns the html representing the ZoneMinder logo
function getNavBrandHTML() {
- $result='';
+ $result = '';
$result .= '' .ZM_HOME_CONTENT. ''.PHP_EOL;
@@ -596,7 +593,7 @@ function getNavBrandHTML() {
// Returns the html representing the Console menu item
function getConsoleHTML() {
- $result='';
+ $result = '';
if ( canView('Monitors') ) {
$result .= '
'.PHP_EOL;
@@ -607,7 +604,7 @@ function getConsoleHTML() {
// Returns the html representing the Options menu item
function getOptionsHTML() {
- $result='';
+ $result = '';
if ( canView('System') ) {
$result .= '
'.PHP_EOL;
@@ -766,12 +765,13 @@ function getHeaderFlipHTML() {
// Returns the html representing the logged in user name and avatar
function getAcctCircleHTML($user=null) {
- $result='';
+ $result = '';
if ( ZM_OPT_USE_AUTH and $user ) {
$result .= '
'.PHP_EOL;
}
@@ -780,7 +780,7 @@ function getAcctCircleHTML($user=null) {
// Returns the html representing the runtime status button
function getStatusBtnHTML($status) {
- $result='';
+ $result = '';
if ( canEdit('System') ) {
//$result .= '
'.PHP_EOL;
diff --git a/web/skins/classic/views/js/postlogin.js.php b/web/skins/classic/views/js/postlogin.js.php
index a062b4c52..35a22fe3a 100644
--- a/web/skins/classic/views/js/postlogin.js.php
+++ b/web/skins/classic/views/js/postlogin.js.php
@@ -1,4 +1,6 @@
-(
+$j(
function () {
// Append '?(GET query)' to URL if the GET query is not empty.
var querySuffix = '