dbupdate.php 340 B

123456789101112131415
  1. <?php
  2. require_once("../config.php");
  3. if(isset($_SESSION['authorized']) && $_SESSION['authorized'] && $_SESSION['client_id'] == 1) {
  4. $dbBuilder = new DatabaseBuilder();
  5. if(isset($_GET['install'])) {
  6. $dbBuilder->init();
  7. $dbBuilder->updateV2();
  8. $dbBuilder->updateV3();
  9. }
  10. $dbBuilder->updateV4();
  11. } else {
  12. header("Location: /");
  13. }