- <?php
- require_once("../config.php");
- if(isset($_SESSION['authorized']) && $_SESSION['authorized'] && $_SESSION['client_id'] == 1) {
- $dbBuilder = new DatabaseBuilder();
- if(isset($_GET['install'])) {
- $dbBuilder->init();
- $dbBuilder->updateV2();
- $dbBuilder->updateV3();
- }
- $dbBuilder->updateV4();
-
- } else {
- header("Location: /");
- }
|