forked from Wavyzz/dolibarr
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -29,15 +29,15 @@ if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', 1);
|
||||
|
||||
require_once '../../main.inc.php';
|
||||
|
||||
if (! ($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root . '/' || $_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root . '/index.php'
|
||||
if (!($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root.'/' || $_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root.'/index.php'
|
||||
|| preg_match('/getmenu_div\.php/', $_SERVER['HTTP_REFERER'])))
|
||||
{
|
||||
global $langs, $conf;
|
||||
|
||||
top_httphead('text/javascript; charset=UTF-8');
|
||||
|
||||
print 'var login = \'' . $_SESSION['dol_login'] . '\';' . "\n";
|
||||
print 'var time_auto_update = '.$conf->global->MAIN_BROWSER_NOTIFICATION_FREQUENCY.';'."\n"; // Always defined
|
||||
print 'var login = \''.$_SESSION['dol_login'].'\';'."\n";
|
||||
print 'var time_auto_update = '.$conf->global->MAIN_BROWSER_NOTIFICATION_FREQUENCY.';'."\n"; // Always defined
|
||||
print 'var time_js_next_test = (Date.now() + time_auto_update);'."\n";
|
||||
?>
|
||||
|
||||
@@ -74,7 +74,7 @@ if (! ($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root . '/' || $_SERVER['H
|
||||
if (arr.length > 0) {
|
||||
var audio = null;
|
||||
<?php
|
||||
if (! empty($conf->global->AGENDA_REMINDER_BROWSER_SOUND)) {
|
||||
if (!empty($conf->global->AGENDA_REMINDER_BROWSER_SOUND)) {
|
||||
print 'audio = new Audio(\''.DOL_URL_ROOT.'/theme/common/sound/notification_agenda.wav'.'\');';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user