diff --git a/css/desktop.css b/css/desktop.css index ca8d708..42f0a85 100755 --- a/css/desktop.css +++ b/css/desktop.css @@ -3,7 +3,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url(../../fonts/inter-tight-400.woff2); + src: url(../fonts/inter-tight-400.woff2); unicode-range: U+000-5FF; } @@ -12,7 +12,7 @@ font-style: normal; font-weight: 700; font-display: swap; - src: url(../../fonts/inter-tight-700.woff2); + src: url(../fonts/inter-tight-700.woff2); unicode-range: U+000-5FF; } diff --git a/fonts/inter-tight-400.woff2 b/fonts/inter-tight-400.woff2 new file mode 100644 index 0000000..308f3c0 Binary files /dev/null and b/fonts/inter-tight-400.woff2 differ diff --git a/fonts/inter-tight-700.woff2 b/fonts/inter-tight-700.woff2 new file mode 100644 index 0000000..ba0b293 Binary files /dev/null and b/fonts/inter-tight-700.woff2 differ diff --git a/site-settings.php b/site-settings.php index a0cc05f..2067d9d 100755 --- a/site-settings.php +++ b/site-settings.php @@ -29,6 +29,10 @@ require_once 'vendor/autoload.php'; $Parsedown = new Parsedown(); + $oldmask = umask(0); + mkdir($dir_files, 0777, true); + umask($oldmask); + if(!file_exists($dir_files.'/encryption.key')) { $enckey = KeyFactory::generateEncryptionKey(); KeyFactory::save($enckey, $dir_files.'/encryption.key'); @@ -40,17 +44,19 @@ - try { - $sql = null; - if($sql === null) { - $sql = new PDO('pgsql:host='.$database_host.';port='.$database_port.';dbname='.$database_name.';user='.$database_user.';password='.$database_pass); - $sql->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + if(!empty($database_host) AND !empty($database_port) AND !empty($database_name) AND !empty($database_user) AND !empty($database_pass)) { + try { + $sql = null; + if($sql === null) { + $sql = new PDO('pgsql:host='.$database_host.';port='.$database_port.';dbname='.$database_name.';user='.$database_user.';password='.$database_pass); + $sql->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + } + } + + catch(PDOException $e) { + echo $e; + exit; } } - catch(PDOException $e) { - echo $e; - exit; - } - ?>