Subversion Repositories oidplus

Rev

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

Rev 429 Rev 448
Line 62... Line 62...
62
// Third-party products
62
// Third-party products
63
$out .= process_file(__DIR__ . '/3p/jstree/themes/default/style'.($do_minify ? '.min' : '').'.css');
63
$out .= process_file(__DIR__ . '/3p/jstree/themes/default/style'.($do_minify ? '.min' : '').'.css');
64
$out .= process_file(__DIR__ . '/3p/jquery-ui/jquery-ui'.($do_minify ? '.min' : '').'.css');
64
$out .= process_file(__DIR__ . '/3p/jquery-ui/jquery-ui'.($do_minify ? '.min' : '').'.css');
65
$out .= process_file(__DIR__ . '/3p/bootstrap4/css/bootstrap'.($do_minify ? '.min' : '').'.css');
65
$out .= process_file(__DIR__ . '/3p/bootstrap4/css/bootstrap'.($do_minify ? '.min' : '').'.css');
66
 
66
 
-
 
67
// Find out base CSS
-
 
68
if (isset($_REQUEST['theme'])) {
-
 
69
        $theme = $_REQUEST['theme'];
-
 
70
        if (strpos($theme,'/') !== false) $theme = 'default';
-
 
71
        if (strpos($theme,'\\') !== false) $theme = 'default';
-
 
72
        if (strpos($theme,'..') !== false) $theme = 'default';
-
 
73
        if (!is_dir(__DIR__.'/plugins/design/'.$theme)) $theme = 'default';
-
 
74
} else {
-
 
75
        $theme = 'default';
-
 
76
}
-
 
77
$base_css = __DIR__ . '/plugins/design/'.$theme.'/oidplus_base.css';
-
 
78
 
67
// OIDplus basic definitions
79
// OIDplus basic definitions
68
if (file_exists(__DIR__ . '/userdata/styles/oidplus_base.css')) {
80
if (file_exists(__DIR__ . '/userdata/styles/oidplus_base.css')) {
69
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_base.css');
81
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_base.css');
70
} else {
82
} else {
71
        $out .= process_file(__DIR__ . '/oidplus_base.css');
83
        $out .= process_file($base_css);
72
}
84
}
73
 
85
 
74
// Then plugins
86
// Then plugins
75
$manifests = OIDplus::getAllPluginManifests('*Pages', true);
87
$manifests = OIDplus::getAllPluginManifests('*Pages', true);
76
foreach ($manifests as $manifest) {
88
foreach ($manifests as $manifest) {