Subversion Repositories oidplus

Rev

Rev 453 | Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 453 Rev 472
Line 42... Line 42...
42
        } else {
42
        } else {
43
                return $pagetitle . ' - ' . $systemtitle;
43
                return $pagetitle . ' - ' . $systemtitle;
44
        }
44
        }
45
}
45
}
46
 
46
 
47
$sysid_oid = OIDplus::getSystemId(true);
-
 
48
if (!$sysid_oid) $sysid_oid = 'unknown'; // do not translate
-
 
49
header('X-OIDplus-SystemID:'.$sysid_oid);
-
 
50
 
-
 
51
$sys_url = OIDplus::getSystemUrl();
-
 
52
header('X-OIDplus-SystemURL:'.$sys_url);
-
 
53
 
-
 
54
$sys_ver = OIDplus::getVersion();
-
 
55
if (!$sys_ver) $sys_ver = 'unknown'; // do not translate
-
 
56
header('X-OIDplus-SystemVersion:'.$sys_ver);
-
 
57
 
-
 
58
$sys_install_type = OIDplus::getInstallType();
-
 
59
header('X-OIDplus-SystemInstallType:'.$sys_install_type);
-
 
60
 
-
 
61
$sys_title = OIDplus::config()->getValue('system_title');
-
 
62
header('X-OIDplus-SystemTitle:'.$sys_title);
-
 
63
 
-
 
64
$add_css_args = array();
47
$add_css_args = array();
65
if (class_exists('OIDplusPageAdminColors')) {
48
if (class_exists('OIDplusPageAdminColors')) {
66
        // Usually, such things would be done using "features" (implementsFeature),
49
        // Usually, such things would be done using "features" (implementsFeature),
67
        // but there are following reasons why we DON'T do it:
50
        // but there are following reasons why we DON'T do it:
68
        // 1. Just having a "CSS URL parameter feature" would change the URL parameter,
51
        // 1. Just having a "CSS URL parameter feature" would change the URL parameter,
Line 80... Line 63...
80
?><!DOCTYPE html>
63
?><!DOCTYPE html>
81
<html lang="<?php echo substr(OIDplus::getCurrentLang(),0,2); ?>">
64
<html lang="<?php echo substr(OIDplus::getCurrentLang(),0,2); ?>">
82
 
65
 
83
<head>
66
<head>
84
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
67
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
85
        <meta name="OIDplus-SystemID" content="<?php echo htmlentities($sysid_oid); ?>">
-
 
86
        <meta name="OIDplus-SystemURL" content="<?php echo htmlentities($sys_url); ?>">
-
 
87
        <meta name="OIDplus-SystemVersion" content="<?php echo htmlentities($sys_ver); ?>">
-
 
88
        <meta name="OIDplus-SystemInstallType" content="<?php echo htmlentities($sys_install_type); ?>">
-
 
89
        <meta name="OIDplus-SystemTitle" content="<?php echo htmlentities($sys_title); /* Do not remove. This meta tag is acessed by oidplus_base.js */ ?>">
68
        <meta name="OIDplus-SystemTitle" content="<?php echo htmlentities(OIDplus::config()->getValue('system_title')); /* Do not remove. This meta tag is acessed by oidplus_base.js */ ?>">
90
        <meta name="theme-color" content="#A9DCF0">
69
        <meta name="theme-color" content="#A9DCF0">
91
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
70
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
92
 
71
 
93
        <title><?php echo htmlentities(combine_systemtitle_and_pagetitle(OIDplus::config()->getValue('system_title'), $static_title)); ?></title>
72
        <title><?php echo htmlentities(combine_systemtitle_and_pagetitle(OIDplus::config()->getValue('system_title'), $static_title)); ?></title>
94
 
73