Subversion Repositories oidplus

Rev

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

Rev 778 Rev 1033
Line 85... Line 85...
85
$out .= process_file(__DIR__ . '/vendor/twbs/bootstrap/dist/css/bootstrap.css');
85
$out .= process_file(__DIR__ . '/vendor/twbs/bootstrap/dist/css/bootstrap.css');
86
$out .= process_file(__DIR__ . '/vendor/gedmarc/layout/dist/layout-default.css');
86
$out .= process_file(__DIR__ . '/vendor/gedmarc/layout/dist/layout-default.css');
87
$out .= process_file(__DIR__ . '/includes/loading.css');
87
$out .= process_file(__DIR__ . '/includes/loading.css');
88
 
88
 
89
// Find out base CSS
89
// Find out base CSS
90
if (isset($_REQUEST['theme'])) {
90
if (isset($_GET['theme'])) {
91
        $theme = $_REQUEST['theme'];
91
        $theme = $_GET['theme'];
92
        if (strpos($theme,'/') !== false) $theme = 'default';
92
        if (strpos($theme,'/') !== false) $theme = 'default';
93
        if (strpos($theme,'\\') !== false) $theme = 'default';
93
        if (strpos($theme,'\\') !== false) $theme = 'default';
94
        if (strpos($theme,'..') !== false) $theme = 'default';
94
        if (strpos($theme,'..') !== false) $theme = 'default';
95
} else {
95
} else {
96
        $theme = 'default';
96
        $theme = 'default';
Line 126... Line 126...
126
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_add.css');
126
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_add.css');
127
}
127
}
128
 
128
 
129
# ---
129
# ---
130
 
130
 
131
$inv = isset($_REQUEST['invert']) ? $_REQUEST['invert'] : 0;
131
$inv = isset($_GET['invert']) ? $_GET['invert'] : 0;
132
if ($inv != 0) {
132
if ($inv != 0) {
133
        $out = invertColorsOfCSS($out);
133
        $out = invertColorsOfCSS($out);
134
}
134
}
135
 
135
 
136
$hs = isset($_REQUEST['h_shift']) ? $_REQUEST['h_shift'] : 0;
136
$hs = isset($_GET['h_shift']) ? $_GET['h_shift'] : 0;
137
$ss = isset($_REQUEST['s_shift']) ? $_REQUEST['s_shift'] : 0;
137
$ss = isset($_GET['s_shift']) ? $_GET['s_shift'] : 0;
138
$vs = isset($_REQUEST['v_shift']) ? $_REQUEST['v_shift'] : 0;
138
$vs = isset($_GET['v_shift']) ? $_GET['v_shift'] : 0;
139
if (($hs != 0) ||($ss != 0) || ($vs != 0)) {
139
if (($hs != 0) ||($ss != 0) || ($vs != 0)) {
140
        $out = changeHueOfCSS($out, $hs, $ss, $vs);
140
        $out = changeHueOfCSS($out, $hs, $ss, $vs);
141
}
141
}
142
 
142
 
143
# ---
143
# ---