diff --git a/share/tools/check.php b/share/tools/check.php
new file mode 100644
index 0000000..efd4d67
--- /dev/null
+++ b/share/tools/check.php
@@ -0,0 +1,90 @@
+
+ * @copyright Copyright (c) 2010, The volkszaehler.org project
+ * @license http://www.gnu.org/licenses/gpl.txt GNU Public License
+ */
+/*
+ * This file is part of volkzaehler.org
+ *
+ * volkzaehler.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * volkzaehler.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with volkszaehler.org. If not, see .
+ */
+
+/**
+ * @param boolean
+ * @return string HTML formatted output
+ */
+function print_test($bool) {
+ if ($bool) {
+ return 'ok';
+ }
+ else {
+ return 'fail';
+ }
+}
+
+array(
+ 'php_version' => version_compare(phpversion(), '5.3.0'),
+ 'pdo' => extension_loaded('pdo'),
+ 'pdo_version' => version_compare(phpversion('pdo'), '5.3.0')),
+ 'pdo_my'
+
+extension_loaded('pdo_firebird')
+extension_loaded('pdo_informix')
+extension_loaded('pdo_mssql')
+extension_loaded('pdo_mysql')
+extension_loaded('pdo_oci')
+extension_loaded('pdo_oci8')
+extension_loaded('pdo_odbc')
+extension_loaded('pdo_pgsql')
+extension_loaded('pdo_sqlite')
+
+pdo_firebird
+pdo_informix
+pdo_mssql
+pdo_mysql
+pdo_oci
+pdo_oci8
+pdo_odbc
+pdo_pgsql
+pdo_sqlite
+
+)
+
+
+?>
+
+
PHP version
+Your PHP version: = phpversion() ?>
+Required version: 5.3.0
+= print_test()?>
+
+PDO (PHP Data Objects)
+Your PDO version: = phpversion('pdo') ?>
+Required version: 5.3.0
+= print_test(FALSE && version_compare(phpversion('pdo'), '5.3.0'))?>
+
+// TODO check for PDO drivers (at least one)
+// TODO check for additional Doctrine requirements
+
+// TODO check for APC (optional)
+
+// TODO check for Doctrine libraries & version
+// TODO check for Symfony libraries &version (optional)
+// TODO check for volkszaehler.org backend
+// TODO check for volkszaehler.org (optional)
+
+?>
\ No newline at end of file
diff --git a/share/tools/generate_docs.php b/share/tools/generate_docs.php
index ae0a409..a9fff33 100644
--- a/share/tools/generate_docs.php
+++ b/share/tools/generate_docs.php
@@ -10,7 +10,6 @@
* @author Steffen Vogel
* @package tools
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
- * @todo propably we could put this into install.php later..
*/
/*
* This file is part of volkzaehler.org
diff --git a/share/tools/import_flo.php b/share/tools/import_flo.php
index a268299..e4f9bdd 100644
--- a/share/tools/import_flo.php
+++ b/share/tools/import_flo.php
@@ -5,6 +5,8 @@
* @copyright Copyright (c) 2010, The volkszaehler.org project
* @package tools
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
+ * @todo adapt to doctrine dbal or use native pdo
+ * @todo move to installer
*/
/*
* This file is part of volkzaehler.org
diff --git a/share/tools/import_justin.php b/share/tools/import_justin.php
index bcbbd63..02fc889 100644
--- a/share/tools/import_justin.php
+++ b/share/tools/import_justin.php
@@ -5,7 +5,8 @@
* @copyright Copyright (c) 2010, The volkszaehler.org project
* @package tools
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
- * @todo adapt to doctrine dal or use native mysql
+ * @todo adapt to doctrine dbal or use native pdo
+ * @todo move to installer
*/
/*
* This file is part of volkzaehler.org
diff --git a/share/tools/install.php b/share/tools/install.php
index 2d724c3..e11ea52 100644
--- a/share/tools/install.php
+++ b/share/tools/install.php
@@ -1,12 +1,15 @@
- volkszaehler.org - installer
+ volkszaehler.org - installation
+ volkszaehler.org - installation
welcome to the installation of your volkszaehler backend!
- lets proceed with the next step
';
+if (isset($_GET['step'])) {
+ if (file_exists($_GET['step'] . '.php')) {
+ include $_GET['step'] . '.php';
+ }
+ else {
+ // TODO check js history call
+ echo 'Invalid step during installation: ' . $_GET['step'] . '
+ back
';
+ }
+}
+else {
+ echo <<Welcome to the installation of your volkszaehler.org!
+This installer will:
+
+ - check for all requirements
+ - install missing libraries
+ - setup your database + configuration
+ - import your existing data
+ - test your installation
+
+Only fundamental administration knowledge is required :)
+
+
+So, ready? Take a cup of coffee and lets take a look on your system:
+Start with step 1: analyze your system
+EOT;
}
?>