From 7716f82c2a5c58d758f099f630f149f7d9c6082b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 19 Feb 2019 21:17:38 +0300 Subject: installer: dojoify --- install/index.php | 250 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 146 insertions(+), 104 deletions(-) (limited to 'install/index.php') diff --git a/install/index.php b/install/index.php index d34bffe78..927d7b129 100755 --- a/install/index.php +++ b/install/index.php @@ -1,13 +1,52 @@ +\n"; + } + + function javascript_tag($filename) { + $query = ""; + + if (!(strpos($filename, "?") === FALSE)) { + $query = substr($filename, strpos($filename, "?")+1); + $filename = substr($filename, 0, strpos($filename, "?")); + } + + $timestamp = filemtime($filename); + + if ($query) $timestamp .= "&$query"; + + return "\n"; + } +?> + Tiny Tiny RSS - Installer - + - + + +
- - -

Database settings

- - - -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - If needed -
- -
- - - Usually 3306 for MySQL or 5432 for PostgreSQL -
- -

Other settings

- -

This should be set to the location your Tiny Tiny RSS will be available on.

- -
- - -
+ +

Database settings

-

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + If needed +
+ +
+ + + Usually 3306 for MySQL or 5432 for PostgreSQL +
+ +

Other settings

+ +

This should be set to the location your Tiny Tiny RSS will be available on.

+ +
+ + +
+ +

@@ -304,63 +341,68 @@ $pdo = pdo_connect($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME, $DB_TYPE, $DB_PORT); if (!$pdo) { - print_error("Unable to connect to database using specified parameters."); + print_error("Unable to connect to database using specified parameters (driver: $DB_TYPE)."); exit; } - print_notice("Database test succeeded."); ?> - -

Initialize database

- -

Before you can start using tt-rss, database needs to be initialized. Click on the button below to do that now.

- - query("SELECT true FROM ttrss_feeds"); + print_notice("Database test succeeded."); + ?> - if ($res && $res->fetch()) { - print_error("Some tt-rss data already exists in this database. If you continue with database initialization your current data will be lost."); - $need_confirm = true; - } else { - $need_confirm = false; - } - ?> +

Initialize database

-
-
- +

Before you can start using tt-rss, database needs to be initialized. Click on the button below to do that now.

- - - - - - - - - -

- -

- -
- -
-
- - - - - - - + query("SELECT true FROM ttrss_feeds"); - -

-
+ if ($res && $res->fetch()) { + print_error("Some tt-rss data already exists in this database. If you continue with database initialization your current data WILL BE LOST."); + $need_confirm = true; + } else { + $need_confirm = false; + } + ?> -
+
+
+ + + + + + + + + + +

+ + + + + +

+
+ +
+
+ + + + + + + + + + +

+
+ +
-