| @@ 1793-1795 (lines=3) @@ | ||
| 1790 | // read the attributes name=value |
|
| 1791 | $prop = '([a-zA-Z0-9_]+)=([^"\'\s>]+)'; |
|
| 1792 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 1793 | for ($k = 0; $k < count($match[0]); $k++) { |
|
| 1794 | $tmp[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 1795 | } |
|
| 1796 | ||
| 1797 | // read the attributes name="value" |
|
| 1798 | $prop = '([a-zA-Z0-9_]+)=["]([^"]*)["]'; |
|
| @@ 1800-1802 (lines=3) @@ | ||
| 1797 | // read the attributes name="value" |
|
| 1798 | $prop = '([a-zA-Z0-9_]+)=["]([^"]*)["]'; |
|
| 1799 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 1800 | for ($k = 0; $k < count($match[0]); $k++) { |
|
| 1801 | $tmp[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 1802 | } |
|
| 1803 | ||
| 1804 | // read the attributes name='value' |
|
| 1805 | $prop = "([a-zA-Z0-9_]+)=[']([^']*)[']"; |
|
| @@ 1807-1809 (lines=3) @@ | ||
| 1804 | // read the attributes name='value' |
|
| 1805 | $prop = "([a-zA-Z0-9_]+)=[']([^']*)[']"; |
|
| 1806 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 1807 | for ($k = 0; $k < count($match[0]); $k++) { |
|
| 1808 | $tmp[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 1809 | } |
|
| 1810 | ||
| 1811 | // if type text/css => we keep it |
|
| 1812 | if (isset($tmp['type']) && strtolower($tmp['type']) == 'text/css' && isset($tmp['href'])) { |
|
| @@ 318-319 (lines=2) @@ | ||
| 315 | // read the parameters : nom=valeur |
|
| 316 | $prop = '([a-zA-Z0-9_]+)=([^"\'\s>]+)'; |
|
| 317 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 318 | for ($k = 0; $k < count($match[0]); $k++) |
|
| 319 | $param[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 320 | ||
| 321 | // read the parameters : nom="valeur" |
|
| 322 | $prop = '([a-zA-Z0-9_]+)=["]([^"]*)["]'; |
|
| @@ 324-325 (lines=2) @@ | ||
| 321 | // read the parameters : nom="valeur" |
|
| 322 | $prop = '([a-zA-Z0-9_]+)=["]([^"]*)["]'; |
|
| 323 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 324 | for ($k = 0; $k < count($match[0]); $k++) |
|
| 325 | $param[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 326 | ||
| 327 | // read the parameters : nom='valeur' |
|
| 328 | $prop = "([a-zA-Z0-9_]+)=[']([^']*)[']"; |
|
| @@ 330-331 (lines=2) @@ | ||
| 327 | // read the parameters : nom='valeur' |
|
| 328 | $prop = "([a-zA-Z0-9_]+)=[']([^']*)[']"; |
|
| 329 | preg_match_all('/'.$prop.'/is', $code, $match); |
|
| 330 | for ($k = 0; $k < count($match[0]); $k++) |
|
| 331 | $param[trim(strtolower($match[1][$k]))] = trim($match[2][$k]); |
|
| 332 | ||
| 333 | // compliance of each parameter |
|
| 334 | $color = "#000000"; |
|