Ver código fonte

create lockfile at the end

1day2die 3 anos atrás
pai
commit
32f8e643ef
1 arquivos alterados com 4 adições e 0 exclusões
  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
     <?php
 }
 }
 if (isset($_GET['step']) && $_GET['step'] == 7) {
 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">
     <div class="card card-outline card-primary">