diff options
Diffstat (limited to 'install/index.php')
-rwxr-xr-x | install/index.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/install/index.php b/install/index.php index bb351095..f5bce50d 100755 --- a/install/index.php +++ b/install/index.php | |||
@@ -94,10 +94,14 @@ else if (isset($_POST['install'])) { | |||
94 | $errors[] = 'Impossible to create the SQLite database file. Please check your file permissions.'; | 94 | $errors[] = 'Impossible to create the SQLite database file. Please check your file permissions.'; |
95 | } | 95 | } |
96 | else { | 96 | else { |
97 | $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; | 97 | try { |
98 | $handle = new PDO($db_path); | 98 | $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; |
99 | $handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | 99 | $handle = new PDO($db_path); |
100 | $sql_structure = ""; | 100 | $handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
101 | $sql_structure = ""; | ||
102 | } catch (PDOException $e) { | ||
103 | $errors[] = "SQLite has encountered an issue : " . $e->getMessage(); | ||
104 | } | ||
101 | } | 105 | } |
102 | } else { | 106 | } else { |
103 | // MySQL and Postgre | 107 | // MySQL and Postgre |
@@ -254,7 +258,6 @@ else if (isset($_POST['install'])) { | |||
254 | <link rel="apple-touch-icon-precomposed" sizes="144x144" href="themes/baggy/img/apple-touch-icon-144x144-precomposed.png"> | 258 | <link rel="apple-touch-icon-precomposed" sizes="144x144" href="themes/baggy/img/apple-touch-icon-144x144-precomposed.png"> |
255 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="themes/baggy/img/apple-touch-icon-72x72-precomposed.png"> | 259 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="themes/baggy/img/apple-touch-icon-72x72-precomposed.png"> |
256 | <link rel="apple-touch-icon-precomposed" href="themes/baggy/img/apple-touch-icon-precomposed.png"> | 260 | <link rel="apple-touch-icon-precomposed" href="themes/baggy/img/apple-touch-icon-precomposed.png"> |
257 | <link href='//fonts.googleapis.com/css?family=PT+Sans:700' rel='stylesheet' type='text/css'> | ||
258 | <link rel="stylesheet" href="themes/baggy/css/ratatouille.css" media="all"> | 261 | <link rel="stylesheet" href="themes/baggy/css/ratatouille.css" media="all"> |
259 | <link rel="stylesheet" href="themes/baggy/css/font.css" media="all"> | 262 | <link rel="stylesheet" href="themes/baggy/css/font.css" media="all"> |
260 | <link rel="stylesheet" href="themes/baggy/css/main.css" media="all"> | 263 | <link rel="stylesheet" href="themes/baggy/css/main.css" media="all"> |