|
@@ -1098,8 +1098,8 @@ if (!defined('NOLOGIN')) {
|
|
|
|
|
|
|
|
|
// Case forcing style from url
|
|
|
-if (GETPOST('theme', 'alpha')) {
|
|
|
- $conf->theme = GETPOST('theme', 'alpha', 1);
|
|
|
+if (GETPOST('theme', 'aZ09')) {
|
|
|
+ $conf->theme = GETPOST('theme', 'aZ09', 1);
|
|
|
$conf->css = "/theme/".$conf->theme."/style.css.php";
|
|
|
}
|
|
|
|
|
@@ -1704,8 +1704,8 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
|
|
}
|
|
|
print '<script>';
|
|
|
print '/* enable ckeditor by main.inc.php */';
|
|
|
- print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n";
|
|
|
- print 'var ckeditorConfig = \''.dol_buildpath($themesubdir.'/theme/'.$conf->theme.'/ckeditor/config.js'.($ext ? '?'.$ext : ''), 1).'\';'."\n"; // $themesubdir='' in standard usage
|
|
|
+ print 'var CKEDITOR_BASEPATH = \''.dol_escape_js($pathckeditor).'\';'."\n";
|
|
|
+ print 'var ckeditorConfig = \''.dol_escape_js(dol_buildpath($themesubdir.'/theme/'.$conf->theme.'/ckeditor/config.js'.($ext ? '?'.$ext : ''), 1)).'\';'."\n"; // $themesubdir='' in standard usage
|
|
|
print 'var ckeditorFilebrowserBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
|
|
|
print 'var ckeditorFilebrowserImageBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
|
|
|
print '</script>'."\n";
|