Skip to content

redirect to /install if not configured #147

@tssgery

Description

@tssgery

I know v1.0.0 is not out yet, but I have been playing with it a little. I'd suggest that you redirect users to the /install url if the app is not yet configured.

The easiest way I know of to do that is to test for the existance of the includes/config.php file and, if not found send a redirect. This can be done by placing the following lines as the first lines of /index.php

<?php
        if (!file_exists(__DIR__.'/includes/config.php')) {
           header('Location: /install', true, 303);
           die();
        }
?>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions