Subversion Repositories oidplus

Rev

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

Rev 987 Rev 1047
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 * OIDplus 2.0
4
 * OIDplus 2.0
5
 * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
5
 * Copyright 2019 - 2022 Daniel Marschall, ViaThinkSoft
6
 *
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
9
 * You may obtain a copy of the License at
10
 *
10
 *
Line 78... Line 78...
78
 
78
 
79
                                // phpinfo() sets "h1 {font-size: 150%;}" and "h2 {font-size: 125%;}"
79
                                // phpinfo() sets "h1 {font-size: 150%;}" and "h2 {font-size: 125%;}"
80
                                $cont = preg_replace('@(h1|h2|h3|h4|h5) {.+}@ismU', '', $cont);
80
                                $cont = preg_replace('@(h1|h2|h3|h4|h5) {.+}@ismU', '', $cont);
81
 
81
 
82
                                // Make compatible for dark themes by removing all foreground and background colors
82
                                // Make compatible for dark themes by removing all foreground and background colors
83
                                $cont = preg_replace('@(body) {.+}@ismU', '', $cont);
83
                                $cont = preg_replace('@(body) {.+}@ismU', '', $cont, 1);
84
                                $cont = preg_replace('@background-color:(.+);@ismU', '', $cont);
84
                                $cont = preg_replace('@background-color:(.+)[\\};]@ismU', '', $cont);
85
                                $cont = '<span style="font-family: sans-serif;">'.$cont.'</span>';
85
                                $cont = '<span style="font-family: sans-serif;">'.$cont.'</span>';
86
 
86
 
87
                                // Font sizes
87
                                // Font sizes
88
                                $cont = preg_replace('@font-size:\\s*75%;@', '', $cont);
88
                                $cont = preg_replace('@font-size:\\s*75%;@', '', $cont);
89
                                for ($i=5; $i>=1; $i--) {
89
                                for ($i=5; $i>=1; $i--) {