Browse code

Created repository.

DoubleBastionAdmin authored on 29/11/2024 03:10:08
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,96 @@
1
+<?php
2
+
3
+/**
4
+ * @copyright 2024 Double Bastion LLC <www.doublebastion.com>
5
+ *
6
+ * @author Double Bastion LLC
7
+ *
8
+ * @license GNU AGPL version 3 or any later version
9
+ *
10
+ * This program is free software; you can redistribute it and/or
11
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
12
+ * License as published by the Free Software Foundation; either
13
+ * version 3 of the License, or any later version.
14
+ *
15
+ * This program is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
19
+ *
20
+ * You should have received a copy of the GNU Affero General Public
21
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
+ *
23
+ */
24
+
25
+define('RESTRICTED', TRUE);
26
+
27
+include 'install-signup-check.php';
28
+
29
+if ($installcheck == true) {
30
+
31
+ session_start();
32
+
33
+ if ($_SESSION['instcompleteaccesspnl'] == "instaccesspnl") {
34
+
35
+         $currentdomain = $_SERVER['HTTP_HOST'];
36
+
37
+         $messagetouser = '<h4 style="text-align: center;">RED SCARF Suite Panel has been successfully installed !</h4><div style="font-size:17px";>
38
+                           You can use the administrator username and password that you have just set up to login to RED SCARF Suite Panel here:
39
+                           <p><a href="https://'.$currentdomain.'/panel-login.php" target="_blank"><font style="color: #0082c9">
40
+                           https://'.$currentdomain.'/panel-login.php</font></a></p><br>
41
+                           If you want to run the installation process again, edit the <font style="font-family: Courier;
42
+                           font-weight: bold;">install-signup-check.php</font> file and change
43
+                           <br><br><font style="font-family: Courier; font-weight: bold;">$installcheck = false;</font><br>to<br>
44
+                           <font style="font-family: Courier; font-weight: bold;">$installcheck = true;</font><br><br></div>';
45
+
46
+         // Change $installcheck from 'true' to 'false'
47
+         $setupflcontent = file('install-signup-check.php');
48
+
49
+         foreach ($setupflcontent as $flkey => $flvalue) {
50
+               if (strpos($flvalue, "\$installcheck") !== false) {
51
+                   $replacestr = str_replace("true", "false", $flvalue);
52
+                   $setupflcontent[$flkey] = $replacestr;
53
+               break;
54
+               }
55
+         }
56
+
57
+         $finalfilecontent = implode("", $setupflcontent);
58
+         file_put_contents('install-signup-check.php', $finalfilecontent);
59
+
60
+         $_SESSION['instcompleteaccesspnl'] = "denyinstaccesspnl";
61
+
62
+?>
63
+
64
+<html>
65
+
66
+<head>
67
+  <title>RED SCARF Suite Panel Setup</title>
68
+
69
+  <link rel="stylesheet" href="assets/css/setup-style.css">
70
+
71
+</head>
72
+
73
+<body>
74
+
75
+  <div id="mainarea">
76
+
77
+    <img class="logosetuppage" src="images/red-scarf-suite-panel_logo_about.svg" />
78
+
79
+    <h3 style="text-align:center;">RED SCARF Suite Panel Setup</h3><br>
80
+
81
+    <img class="setupStage" src="images/panel-setup-stages-3.svg" />
82
+
83
+    <?php echo $messagetouser; ?>
84
+
85
+  </div>
86
+
87
+</body>
88
+
89
+</html>
90
+
91
+<?php
92
+
93
+ }
94
+}
95
+
96
+?>