1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<? include "config.inc"; include "template.inc"; global $user; if ($user->theme && file_exists($themes[$user->theme][0])) { include $themes[$user->theme][0]; } else { include $themes[key($themes)][0]; } $theme = new Theme(); ?>