- $o .= file_get_contents('home.html');
- } else {
- $o .= '<h1>'.((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"), $a->config['sitename']) : "").'</h1>';
+ $homefilepath = $a->getBasePath() . "/home.html";
+ $cssfilepath = $a->getBasePath() . "/home.css";
+ if (file_exists($homefilepath)) {
+ $customhome = $homefilepath;
+ if (file_exists($cssfilepath)) {
+ $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.System::baseUrl().'/home.css'.'" media="all" />';
+ }