X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Fheader.inc;h=8db8fe9ba5ae8f3b42cbea08022b42b6e48bd558;hb=e685a94465fe8f26c8ff3789242b43c1c20054cf;hp=793adc030678f06265548dc5768dde38a5810a45;hpb=a2ae0e35302270ae811db2e6acb44c16b186a970;p=fa-stable.git
diff --git a/includes/page/header.inc b/includes/page/header.inc
index 793adc03..8db8fe9b 100644
--- a/includes/page/header.inc
+++ b/includes/page/header.inc
@@ -40,9 +40,26 @@ function help_url($context=null)
if ($clean)
$help_page_url = access_string($help_page_url, true);
- return htmlspecialchars($SysPrefs->help_base_url
+ return html_specials_encode(
+ $SysPrefs->help_base_url
.urlencode(strtr(ucwords($help_page_url), array(' '=>'', '/'=>'', '&'=>'And')))
- .'&ctxhelp=1&lang='.$country, ENT_QUOTES);
+ .'&ctxhelp=1&lang='.$country);
+}
+
+function send_css($css = '')
+{
+ global $css_files;
+
+ css_files_ensure_init();
+
+ foreach ($css_files as $css_file)
+ {
+ echo " \n";
+ }
+ if ($css)
+ {
+ echo " \n";
+ }
}
function send_scripts()
@@ -75,7 +92,7 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js=""
// titles and screen header
global $path_to_root, $SysPrefs, $db_connections;
- if (in_ajax())
+ if (in_ajax() || isset($_POST['REP_ID']))
return; // just for speed up
$theme = user_theme();
@@ -125,10 +142,9 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js=""
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') != -1) // IE 11 doesn't work with input file type in form.
echo "\n";
echo "";
- echo " \n";
- echo " \n";
- if ($css)
- echo '';
+ echo " \n";
+
+ send_css($css);
send_scripts();