Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1131 | Rev 1289 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | 67 | ||
68 | //$tbl_prefix = OIDplus::baseConfig()->getValue('TABLENAME_PREFIX',''); |
68 | //$tbl_prefix = OIDplus::baseConfig()->getValue('TABLENAME_PREFIX',''); |
69 | //$files[] = 'var language_tblprefix = '.json_encode($tbl_prefix).';'; |
69 | //$files[] = 'var language_tblprefix = '.json_encode($tbl_prefix).';'; |
70 | $files[] = 'var language_tblprefix = "<tableprefix>";'; // hide TABLENAME_PREFIX from the client |
70 | $files[] = 'var language_tblprefix = "<tableprefix>";'; // hide TABLENAME_PREFIX from the client |
71 | 71 | ||
72 | $files[] = 'var oidplus_webpath = '.js_escape(OIDplus::webpath(null, OIDplus::PATH_RELATIVE_TO_ROOT)).';'; |
72 | $files[] = 'var oidplus_webpath_relative = '.js_escape(OIDplus::webpath(null, OIDplus::PATH_RELATIVE_TO_ROOT)).';'; |
- | 73 | $files[] = 'var oidplus_webpath_absolute_canonical = '.js_escape(OIDplus::webpath(null, OIDplus::PATH_ABSOLUTE_CANONICAL)).';'; |
|
73 | 74 | ||
74 | // The CSRF token is set by index.php |
75 | // The CSRF token is set by index.php |
75 | // TODO: can there race-conditions if we set csrf_token here? Or should we set it as inline-script in index.php ? |
76 | // TODO: can there race-conditions if we set csrf_token here? Or should we set it as inline-script in index.php ? |
76 | $files[] = 'var csrf_token = '.js_escape($_COOKIE['csrf_token'] ?? '').';'; |
77 | $files[] = 'var csrf_token = '.js_escape($_COOKIE['csrf_token'] ?? '').';'; |
77 | 78 |