Explorar el Código

create lockfile at the end

1day2die hace 3 años
padre
commit
32f8e643ef
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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">