Browse Source

create lockfile at the end

1day2die 3 years ago
parent
commit
32f8e643ef
1 changed files with 4 additions and 0 deletions
  1. 4 0
      public/install/index.php

+ 4 - 0
public/install/index.php

@@ -440,6 +440,10 @@ if (isset($_GET['step']) && $_GET['step'] == 6) {
     <?php
 }
 if (isset($_GET['step']) && $_GET['step'] == 7) {
+
+    $lockfile = fopen("install.lock", "w") or die("Unable to open file!");
+    fwrite($lockfile, "locked");
+    fclose($lockfile);
     ?>
 
     <div class="card card-outline card-primary">