$serendipity['dbType'] = $_POST['dbType'];
// Probe database
// (do it after the dir stuff, as we need to be able to create the sqlite database)
- include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
+ @include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
// For shared installations, probe the file on include path
include_once(S9Y_INCLUDE_PATH . 'include/db/db.inc.php');
header('Content-type: text/css');
if (IS_installed === false) {
- if (file_exists('templates/' . $serendipity['defaultTemplate'] . '/' . $css_file)) {
+ if (file_exists(S9Y_INCLUDE_PATH . 'templates/' . $serendipity['defaultTemplate'] . '/' . $css_file)) {
echo serendipity_printStylesheet('templates/' . $serendipity['defaultTemplate'] . '/' . $css_file);
}
die();