*/ use wishthis\{Page, Database}; $page = new page(__FILE__, 'Home'); $page->header(); $step = isset($_POST['step']) ? $_POST['step'] : 1; switch ($step) { case 1: ?>

Install

Step

Welcome to the wishthis installer.

wishthis needs a database to function properly. Please enter your credentials.

$value) { if ('DATABASE' === substr($key, 0, 8)) { $configContents = preg_replace('/(' . $key . '.+?\').*?(\')/', '$1' . $value . '$2', $configContents); } } file_put_contents($configPath, $configContents); ?>

Install

Step

Klick Continue to test the database connection.

query('CREATE TABLE IF NOT EXISTS `users` ( `id` int AUTO_INCREMENT, `email` varchar(64), `password` varchar(128), PRIMARY KEY (id) );'); ?>

Success

Login
footer();