| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,81 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * Copyright (C) 2021 Double Bastion LLC |
|
| 4 |
- * |
|
| 5 |
- * This file is part of Roundpin, which is licensed under the |
|
| 6 |
- * GNU Affero General Public License Version 3.0. The license terms |
|
| 7 |
- * are detailed in the "LICENSE.txt" file located in the root directory. |
|
| 8 |
- */ |
|
| 9 |
- |
|
| 10 |
-define('RESTRICTED', TRUE);
|
|
| 11 |
- |
|
| 12 |
-include 'install-signup-check.php'; |
|
| 13 |
- |
|
| 14 |
-if ($installcheck == true) {
|
|
| 15 |
- |
|
| 16 |
- session_start(); |
|
| 17 |
- |
|
| 18 |
- if ($_SESSION['instcompleteaccess'] == "instaccess") {
|
|
| 19 |
- |
|
| 20 |
- |
|
| 21 |
- $currentdomain = $_SERVER['HTTP_HOST']; |
|
| 22 |
- |
|
| 23 |
- $messagetouser = '<h4 style="text-align: center;">Roundpin has been successfully installed !</h4><div style="font-size:17px";>You can use the |
|
| 24 |
- administrator username and password that you have just set up to login to Roundpin here: |
|
| 25 |
- <p><a href="https://'.$currentdomain.'/roundpin-login.php" target="_blank"><font style="color: #0082c9"> |
|
| 26 |
- https://'.$currentdomain.'/roundpin-login.php</font></a></p><br> |
|
| 27 |
- If you want to run the installation process again, edit the <font style="font-family: Courier; |
|
| 28 |
- font-weight: bold;">install-signup-check.php</font> file and change |
|
| 29 |
- <br><br><font style="font-family: Courier; font-weight: bold;">$installcheck = false;</font><br>to<br> |
|
| 30 |
- <font style="font-family: Courier; font-weight: bold;">$installcheck = true;</font><br><br></div>'; |
|
| 31 |
- |
|
| 32 |
- // Change $installcheck from 'true' to 'false' |
|
| 33 |
- $setupflcontent = file('install-signup-check.php');
|
|
| 34 |
- |
|
| 35 |
- foreach ($setupflcontent as $flkey => $flvalue) {
|
|
| 36 |
- if (strpos($flvalue, "\$installcheck") !== false) {
|
|
| 37 |
- $replacestr = str_replace("true", "false", $flvalue);
|
|
| 38 |
- $setupflcontent[$flkey] = $replacestr; |
|
| 39 |
- break; |
|
| 40 |
- } |
|
| 41 |
- } |
|
| 42 |
- |
|
| 43 |
- $finalfilecontent = implode("", $setupflcontent);
|
|
| 44 |
- file_put_contents('install-signup-check.php', $finalfilecontent);
|
|
| 45 |
- |
|
| 46 |
- $_SESSION['instcompleteaccess'] = "denyinstaccess"; |
|
| 47 |
- |
|
| 48 |
-?> |
|
| 49 |
- |
|
| 50 |
-<html> |
|
| 51 |
- |
|
| 52 |
-<head> |
|
| 53 |
- <title>Roundpin Setup</title> |
|
| 54 |
- |
|
| 55 |
- <link rel="stylesheet" href="css/setup.min.css"> |
|
| 56 |
- |
|
| 57 |
-</head> |
|
| 58 |
- |
|
| 59 |
-<body> |
|
| 60 |
- |
|
| 61 |
- <div id="mainarea"> |
|
| 62 |
- |
|
| 63 |
- <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 64 |
- |
|
| 65 |
- <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 66 |
- |
|
| 67 |
- <img class="setupStage" src="images/roundpin-setup-stages-3.svg" /> |
|
| 68 |
- |
|
| 69 |
- <?php echo $messagetouser; ?> |
|
| 70 |
- |
|
| 71 |
- </div> |
|
| 72 |
- |
|
| 73 |
-</body> |
|
| 74 |
- |
|
| 75 |
-</html> |
|
| 76 |
- |
|
| 77 |
-<?php |
|
| 78 |
- } |
|
| 79 |
-} |
|
| 80 |
- |
|
| 81 |
-?> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,81 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * Copyright (C) 2021 Double Bastion LLC |
|
| 4 |
+ * |
|
| 5 |
+ * This file is part of Roundpin, which is licensed under the |
|
| 6 |
+ * GNU Affero General Public License Version 3.0. The license terms |
|
| 7 |
+ * are detailed in the "LICENSE.txt" file located in the root directory. |
|
| 8 |
+ */ |
|
| 9 |
+ |
|
| 10 |
+define('RESTRICTED', TRUE);
|
|
| 11 |
+ |
|
| 12 |
+include 'install-signup-check.php'; |
|
| 13 |
+ |
|
| 14 |
+if ($installcheck == true) {
|
|
| 15 |
+ |
|
| 16 |
+ session_start(); |
|
| 17 |
+ |
|
| 18 |
+ if ($_SESSION['instcompleteaccess'] == "instaccess") {
|
|
| 19 |
+ |
|
| 20 |
+ |
|
| 21 |
+ $currentdomain = $_SERVER['HTTP_HOST']; |
|
| 22 |
+ |
|
| 23 |
+ $messagetouser = '<h4 style="text-align: center;">Roundpin has been successfully installed !</h4><div style="font-size:17px";>You can use the |
|
| 24 |
+ administrator username and password that you have just set up to login to Roundpin here: |
|
| 25 |
+ <p><a href="https://'.$currentdomain.'/roundpin-login.php" target="_blank"><font style="color: #0082c9"> |
|
| 26 |
+ https://'.$currentdomain.'/roundpin-login.php</font></a></p><br> |
|
| 27 |
+ If you want to run the installation process again, edit the <font style="font-family: Courier; |
|
| 28 |
+ font-weight: bold;">install-signup-check.php</font> file and change |
|
| 29 |
+ <br><br><font style="font-family: Courier; font-weight: bold;">$installcheck = false;</font><br>to<br> |
|
| 30 |
+ <font style="font-family: Courier; font-weight: bold;">$installcheck = true;</font><br><br></div>'; |
|
| 31 |
+ |
|
| 32 |
+ // Change $installcheck from 'true' to 'false' |
|
| 33 |
+ $setupflcontent = file('install-signup-check.php');
|
|
| 34 |
+ |
|
| 35 |
+ foreach ($setupflcontent as $flkey => $flvalue) {
|
|
| 36 |
+ if (strpos($flvalue, "\$installcheck") !== false) {
|
|
| 37 |
+ $replacestr = str_replace("true", "false", $flvalue);
|
|
| 38 |
+ $setupflcontent[$flkey] = $replacestr; |
|
| 39 |
+ break; |
|
| 40 |
+ } |
|
| 41 |
+ } |
|
| 42 |
+ |
|
| 43 |
+ $finalfilecontent = implode("", $setupflcontent);
|
|
| 44 |
+ file_put_contents('install-signup-check.php', $finalfilecontent);
|
|
| 45 |
+ |
|
| 46 |
+ $_SESSION['instcompleteaccess'] = "denyinstaccess"; |
|
| 47 |
+ |
|
| 48 |
+?> |
|
| 49 |
+ |
|
| 50 |
+<html> |
|
| 51 |
+ |
|
| 52 |
+<head> |
|
| 53 |
+ <title>Roundpin Setup</title> |
|
| 54 |
+ |
|
| 55 |
+ <link rel="stylesheet" href="css/setup.min.css"> |
|
| 56 |
+ |
|
| 57 |
+</head> |
|
| 58 |
+ |
|
| 59 |
+<body> |
|
| 60 |
+ |
|
| 61 |
+ <div id="mainarea"> |
|
| 62 |
+ |
|
| 63 |
+ <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 64 |
+ |
|
| 65 |
+ <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 66 |
+ |
|
| 67 |
+ <img class="setupStage" src="images/roundpin-setup-stages-3.svg" /> |
|
| 68 |
+ |
|
| 69 |
+ <?php echo $messagetouser; ?> |
|
| 70 |
+ |
|
| 71 |
+ </div> |
|
| 72 |
+ |
|
| 73 |
+</body> |
|
| 74 |
+ |
|
| 75 |
+</html> |
|
| 76 |
+ |
|
| 77 |
+<?php |
|
| 78 |
+ } |
|
| 79 |
+} |
|
| 80 |
+ |
|
| 81 |
+?> |