<?php # So require and include get the right path chdir('../..'); $doing_install = true; require_once '../shared/common.php'; require_once '../classes/InstallQuery.php'; if (!defined('OBIB_TESTS_DESTROY_DB') or OBIB_TESTS_DESTROY_DB != "yes") { die("database_constants: OBIB_TESTS_DESTROY_DB is not 'yes'"); } $installQ = new InstallQuery(); $e = $installQ->connect_e(); if ($e) { echo $e->toStr(); } $installQ->freshInstall('en', true, '0.4.0'); echo 'Installed 0.4.0';
<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ $doing_install = true; require_once "../shared/common.php"; require_once "../classes/InstallQuery.php"; require_once "../classes/Settings.php"; $installQ = new InstallQuery(); $version = NULL; $error = $installQ->connect_e(); if (!$error) { $version = $installQ->getCurrentDatabaseVersion(); $installQ->close(); } include "../install/header.php"; // 0.7: CircQuery uses PHP to determine current time, other scripts use MySQL $mysql_date = implode(mysql_fetch_row(mysql_query('select sysdate();'))); $php_date = date('Y-m-d H:i:s'); if ($php_date != $mysql_date) { ?> <font class="error">Mismatch in date and time configuration.</font><br> Recommended: correct before proceeding, else Check Out and Check In might fail temporarily.<br> Current date and time (YYYY-MM-DD HH:MM:SS):<br> <pre> MySQL : <?php echo $mysql_date; ?> PHP : <?php