Forum » » Road map développement » » notice header.php
Posté : 12 mars 2021 à 15:16
[code php] function getUsetOrDefaultThemeAndSkin() { global $Default_Theme, $Default_Skin, $user; if (isset($user) and $user!='') { global $cookie; if($cookie[9] !='') { $ibix=explode('+', urldecode($cookie[9])); if (array_key_exists(0, $ibix)) $theme=$ibix[0]; else $theme=$Default_Theme; if (array_key_exists(1, $ibix)) $skin=$ibix[1]; else $skin=$Default_Skin; //$skin=''; $tmp_theme=$theme; if (!$file=@opendir("themes/$theme")) $tmp_theme=$Default_Theme; } else $tmp_theme=$Default_Theme; } else { $theme=$Default_Theme; $skin=$Default_Skin; $tmp_theme=$theme; } return [$theme, $skin, $tmp_theme]; } Appel list($theme, $skin, $tmp_theme) = getUsetOrDefaultThemeAndSkin(); [/code]
Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=1483&forum=21