noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 30/38: redirect via javascript


From: dwm
Subject: [Noalyss-commit] [noalyss] 30/38: redirect via javascript
Date: Sun, 18 Feb 2024 07:30:47 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 4c43d4882bff2538f402f38336354946a56767c7
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Feb 16 16:49:55 2024 +0100

    redirect via javascript
---
 html/index.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/html/index.php b/html/index.php
index a28710063..0fb6daa8f 100644
--- a/html/index.php
+++ b/html/index.php
@@ -135,9 +135,17 @@
  */
 
 
-if 
(!file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php'))
+if 
(!file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')
 )
 {
+    echo <<<EOF
+
+<script>
+window.location="install.php";
+</script>
+EOF;
+
     header("Location: install.php", true, 307);
+
     exit(0);
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]