| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,96 +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 |
-if ($_SERVER['REQUEST_SCHEME'] == 'http') { exit("Roundpin cannot be installed over HTTP. It needs a domain that uses HTTPS."); }
|
|
| 17 |
- |
|
| 18 |
- if(isset($_POST['createconfigbttn'])) {
|
|
| 19 |
- |
|
| 20 |
- if (isset($_POST['databasename']) && $_POST['databasename'] != '' && isset($_POST['databaseuser']) && $_POST['databaseuser'] != '' && |
|
| 21 |
- isset($_POST['dbuserpassword']) && $_POST['dbuserpassword'] != '') {
|
|
| 22 |
- |
|
| 23 |
- // Create the configuration file |
|
| 24 |
- $dbname = $_POST['databasename']; |
|
| 25 |
- $dbuser = $_POST['databaseuser']; |
|
| 26 |
- $dbuserpswd = $_POST['dbuserpassword']; |
|
| 27 |
- |
|
| 28 |
- // Generate the secret |
|
| 29 |
- $keypassin = substr(sha1(mt_rand()), 0, 32); |
|
| 30 |
- $keysaltin = openssl_random_pseudo_bytes(24); |
|
| 31 |
- $keyLengthin = 80; |
|
| 32 |
- $iterationin = 100; |
|
| 33 |
- $generated_keyin = openssl_pbkdf2($keypassin, $keysaltin, $keyLengthin, $iterationin, 'sha256'); |
|
| 34 |
- $keypwd = bin2hex($generated_keyin); |
|
| 35 |
- |
|
| 36 |
- $texttofill = "<?php\r\nif(!defined('ACCESSCONST')){die();}\r\n\r\n\$databasename='".$dbname."';\r\n\$username='".$dbuser."';\r\n\$password='".$dbuserpswd."';\r\n\$secret='".$keypwd."';\r\n?>";
|
|
| 37 |
- |
|
| 38 |
- file_put_contents("roundpin-config.php", $texttofill);
|
|
| 39 |
- |
|
| 40 |
- |
|
| 41 |
- session_start(); |
|
| 42 |
- |
|
| 43 |
- $_SESSION['validateaccess'] = "accessallowed"; |
|
| 44 |
- |
|
| 45 |
- header("Location: roundpin-initializedb.php");
|
|
| 46 |
- } |
|
| 47 |
- } |
|
| 48 |
- |
|
| 49 |
-?> |
|
| 50 |
- |
|
| 51 |
-<html> |
|
| 52 |
- |
|
| 53 |
-<head> |
|
| 54 |
- <title>Roundpin Setup</title> |
|
| 55 |
- |
|
| 56 |
- <link rel="stylesheet" href="css/setup.min.css"> |
|
| 57 |
- <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> |
|
| 58 |
- <script type="text/javascript" src="js/roundpin-setup.min.js"></script> |
|
| 59 |
- |
|
| 60 |
-</head> |
|
| 61 |
- |
|
| 62 |
-<body> |
|
| 63 |
- |
|
| 64 |
- <div id="mainarea"> |
|
| 65 |
- |
|
| 66 |
- <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 67 |
- |
|
| 68 |
- <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 69 |
- |
|
| 70 |
- <img class="setupStage" src="images/roundpin-setup-stages-1.svg" /> |
|
| 71 |
- |
|
| 72 |
- <form id="roundpincredform" action="" method="POST"> |
|
| 73 |
- |
|
| 74 |
- <label for="databasename" class="fieldlabels">Roundpin database name:</label><br> |
|
| 75 |
- <input type="text" id="databasename" class="textinput" name="databasename"/><br><br> |
|
| 76 |
- |
|
| 77 |
- <label for="databaseuser" class="fieldlabels">Roundpin database user:</label><br> |
|
| 78 |
- <input type="text" id="databaseuser" class="textinput" name="databaseuser"/><br><br> |
|
| 79 |
- |
|
| 80 |
- <label for="userpassword" class="fieldlabels">Roundpin database user password:</label><br> |
|
| 81 |
- <input type="password" id="dbuserpassword" class="textinput" name="dbuserpassword"/><br><br> |
|
| 82 |
- |
|
| 83 |
- <input type="submit" id="createconfigbttn" name="createconfigbttn" value="Next" /> |
|
| 84 |
- |
|
| 85 |
- </form> |
|
| 86 |
- |
|
| 87 |
- </div> |
|
| 88 |
- |
|
| 89 |
-</body> |
|
| 90 |
- |
|
| 91 |
-</html> |
|
| 92 |
- |
|
| 93 |
-<?php |
|
| 94 |
-} |
|
| 95 |
- |
|
| 96 |
-?> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,96 @@ |
| 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 |
+if ($_SERVER['REQUEST_SCHEME'] == 'http') { exit("Roundpin cannot be installed over HTTP. It needs a domain that uses HTTPS."); }
|
|
| 17 |
+ |
|
| 18 |
+ if(isset($_POST['createconfigbttn'])) {
|
|
| 19 |
+ |
|
| 20 |
+ if (isset($_POST['databasename']) && $_POST['databasename'] != '' && isset($_POST['databaseuser']) && $_POST['databaseuser'] != '' && |
|
| 21 |
+ isset($_POST['dbuserpassword']) && $_POST['dbuserpassword'] != '') {
|
|
| 22 |
+ |
|
| 23 |
+ // Create the configuration file |
|
| 24 |
+ $dbname = $_POST['databasename']; |
|
| 25 |
+ $dbuser = $_POST['databaseuser']; |
|
| 26 |
+ $dbuserpswd = $_POST['dbuserpassword']; |
|
| 27 |
+ |
|
| 28 |
+ // Generate the secret |
|
| 29 |
+ $keypassin = substr(sha1(mt_rand()), 0, 32); |
|
| 30 |
+ $keysaltin = openssl_random_pseudo_bytes(24); |
|
| 31 |
+ $keyLengthin = 80; |
|
| 32 |
+ $iterationin = 100; |
|
| 33 |
+ $generated_keyin = openssl_pbkdf2($keypassin, $keysaltin, $keyLengthin, $iterationin, 'sha256'); |
|
| 34 |
+ $keypwd = bin2hex($generated_keyin); |
|
| 35 |
+ |
|
| 36 |
+ $texttofill = "<?php\r\nif(!defined('ACCESSCONST')){die();}\r\n\r\n\$databasename='".$dbname."';\r\n\$username='".$dbuser."';\r\n\$password='".$dbuserpswd."';\r\n\$secret='".$keypwd."';\r\n?>";
|
|
| 37 |
+ |
|
| 38 |
+ file_put_contents("roundpin-config.php", $texttofill);
|
|
| 39 |
+ |
|
| 40 |
+ |
|
| 41 |
+ session_start(); |
|
| 42 |
+ |
|
| 43 |
+ $_SESSION['validateaccess'] = "accessallowed"; |
|
| 44 |
+ |
|
| 45 |
+ header("Location: roundpin-initializedb.php");
|
|
| 46 |
+ } |
|
| 47 |
+ } |
|
| 48 |
+ |
|
| 49 |
+?> |
|
| 50 |
+ |
|
| 51 |
+<html> |
|
| 52 |
+ |
|
| 53 |
+<head> |
|
| 54 |
+ <title>Roundpin Setup</title> |
|
| 55 |
+ |
|
| 56 |
+ <link rel="stylesheet" href="css/setup.min.css"> |
|
| 57 |
+ <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> |
|
| 58 |
+ <script type="text/javascript" src="js/roundpin-setup.min.js"></script> |
|
| 59 |
+ |
|
| 60 |
+</head> |
|
| 61 |
+ |
|
| 62 |
+<body> |
|
| 63 |
+ |
|
| 64 |
+ <div id="mainarea"> |
|
| 65 |
+ |
|
| 66 |
+ <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 67 |
+ |
|
| 68 |
+ <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 69 |
+ |
|
| 70 |
+ <img class="setupStage" src="images/roundpin-setup-stages-1.svg" /> |
|
| 71 |
+ |
|
| 72 |
+ <form id="roundpincredform" action="" method="POST"> |
|
| 73 |
+ |
|
| 74 |
+ <label for="databasename" class="fieldlabels">Roundpin database name:</label><br> |
|
| 75 |
+ <input type="text" id="databasename" class="textinput" name="databasename"/><br><br> |
|
| 76 |
+ |
|
| 77 |
+ <label for="databaseuser" class="fieldlabels">Roundpin database user:</label><br> |
|
| 78 |
+ <input type="text" id="databaseuser" class="textinput" name="databaseuser"/><br><br> |
|
| 79 |
+ |
|
| 80 |
+ <label for="userpassword" class="fieldlabels">Roundpin database user password:</label><br> |
|
| 81 |
+ <input type="password" id="dbuserpassword" class="textinput" name="dbuserpassword"/><br><br> |
|
| 82 |
+ |
|
| 83 |
+ <input type="submit" id="createconfigbttn" name="createconfigbttn" value="Next" /> |
|
| 84 |
+ |
|
| 85 |
+ </form> |
|
| 86 |
+ |
|
| 87 |
+ </div> |
|
| 88 |
+ |
|
| 89 |
+</body> |
|
| 90 |
+ |
|
| 91 |
+</html> |
|
| 92 |
+ |
|
| 93 |
+<?php |
|
| 94 |
+} |
|
| 95 |
+ |
|
| 96 |
+?> |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,96 +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 |
-if ($_SERVER['REQUEST_SCHEME'] == 'http') { exit("Roundpin cannot be installed on domains using the HTTP protocol. It can only be installed on domains using the HTTPS protocol."); }
|
|
| 17 |
- |
|
| 18 |
- if(isset($_POST['createconfigbttn'])) {
|
|
| 19 |
- |
|
| 20 |
- if (isset($_POST['databasename']) && $_POST['databasename'] != '' && isset($_POST['databaseuser']) && $_POST['databaseuser'] != '' && |
|
| 21 |
- isset($_POST['dbuserpassword']) && $_POST['dbuserpassword'] != '') {
|
|
| 22 |
- |
|
| 23 |
- // Create the configuration file |
|
| 24 |
- $dbname = $_POST['databasename']; |
|
| 25 |
- $dbuser = $_POST['databaseuser']; |
|
| 26 |
- $dbuserpswd = $_POST['dbuserpassword']; |
|
| 27 |
- |
|
| 28 |
- // Generate the secret |
|
| 29 |
- $keypassin = substr(sha1(mt_rand()), 0, 32); |
|
| 30 |
- $keysaltin = openssl_random_pseudo_bytes(24); |
|
| 31 |
- $keyLengthin = 80; |
|
| 32 |
- $iterationin = 100; |
|
| 33 |
- $generated_keyin = openssl_pbkdf2($keypassin, $keysaltin, $keyLengthin, $iterationin, 'sha256'); |
|
| 34 |
- $keypwd = bin2hex($generated_keyin); |
|
| 35 |
- |
|
| 36 |
- $texttofill = "<?php\r\nif(!defined('ACCESSCONST')){die();}\r\n\r\n\$databasename='".$dbname."';\r\n\$username='".$dbuser."';\r\n\$password='".$dbuserpswd."';\r\n\$secret='".$keypwd."';\r\n?>";
|
|
| 37 |
- |
|
| 38 |
- file_put_contents("roundpin-config.php", $texttofill);
|
|
| 39 |
- |
|
| 40 |
- |
|
| 41 |
- session_start(); |
|
| 42 |
- |
|
| 43 |
- $_SESSION['validateaccess'] = "accessallowed"; |
|
| 44 |
- |
|
| 45 |
- header("Location: roundpin-initializedb.php");
|
|
| 46 |
- } |
|
| 47 |
- } |
|
| 48 |
- |
|
| 49 |
-?> |
|
| 50 |
- |
|
| 51 |
-<html> |
|
| 52 |
- |
|
| 53 |
-<head> |
|
| 54 |
- <title>Roundpin Setup</title> |
|
| 55 |
- |
|
| 56 |
- <link rel="stylesheet" href="css/setup.min.css"> |
|
| 57 |
- <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> |
|
| 58 |
- <script type="text/javascript" src="js/roundpin-setup.min.js"></script> |
|
| 59 |
- |
|
| 60 |
-</head> |
|
| 61 |
- |
|
| 62 |
-<body> |
|
| 63 |
- |
|
| 64 |
- <div id="mainarea"> |
|
| 65 |
- |
|
| 66 |
- <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 67 |
- |
|
| 68 |
- <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 69 |
- |
|
| 70 |
- <img class="setupStage" src="images/roundpin-setup-stages-1.svg" /> |
|
| 71 |
- |
|
| 72 |
- <form id="roundpincredform" action="" method="POST"> |
|
| 73 |
- |
|
| 74 |
- <label for="databasename" class="fieldlabels">Roundpin database name:</label><br> |
|
| 75 |
- <input type="text" id="databasename" class="textinput" name="databasename"/><br><br> |
|
| 76 |
- |
|
| 77 |
- <label for="databaseuser" class="fieldlabels">Roundpin database user:</label><br> |
|
| 78 |
- <input type="text" id="databaseuser" class="textinput" name="databaseuser"/><br><br> |
|
| 79 |
- |
|
| 80 |
- <label for="userpassword" class="fieldlabels">Roundpin database user password:</label><br> |
|
| 81 |
- <input type="password" id="dbuserpassword" class="textinput" name="dbuserpassword"/><br><br> |
|
| 82 |
- |
|
| 83 |
- <input type="submit" id="createconfigbttn" name="createconfigbttn" value="Next" /> |
|
| 84 |
- |
|
| 85 |
- </form> |
|
| 86 |
- |
|
| 87 |
- </div> |
|
| 88 |
- |
|
| 89 |
-</body> |
|
| 90 |
- |
|
| 91 |
-</html> |
|
| 92 |
- |
|
| 93 |
-<?php |
|
| 94 |
-} |
|
| 95 |
- |
|
| 96 |
-?> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,96 @@ |
| 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 |
+if ($_SERVER['REQUEST_SCHEME'] == 'http') { exit("Roundpin cannot be installed on domains using the HTTP protocol. It can only be installed on domains using the HTTPS protocol."); }
|
|
| 17 |
+ |
|
| 18 |
+ if(isset($_POST['createconfigbttn'])) {
|
|
| 19 |
+ |
|
| 20 |
+ if (isset($_POST['databasename']) && $_POST['databasename'] != '' && isset($_POST['databaseuser']) && $_POST['databaseuser'] != '' && |
|
| 21 |
+ isset($_POST['dbuserpassword']) && $_POST['dbuserpassword'] != '') {
|
|
| 22 |
+ |
|
| 23 |
+ // Create the configuration file |
|
| 24 |
+ $dbname = $_POST['databasename']; |
|
| 25 |
+ $dbuser = $_POST['databaseuser']; |
|
| 26 |
+ $dbuserpswd = $_POST['dbuserpassword']; |
|
| 27 |
+ |
|
| 28 |
+ // Generate the secret |
|
| 29 |
+ $keypassin = substr(sha1(mt_rand()), 0, 32); |
|
| 30 |
+ $keysaltin = openssl_random_pseudo_bytes(24); |
|
| 31 |
+ $keyLengthin = 80; |
|
| 32 |
+ $iterationin = 100; |
|
| 33 |
+ $generated_keyin = openssl_pbkdf2($keypassin, $keysaltin, $keyLengthin, $iterationin, 'sha256'); |
|
| 34 |
+ $keypwd = bin2hex($generated_keyin); |
|
| 35 |
+ |
|
| 36 |
+ $texttofill = "<?php\r\nif(!defined('ACCESSCONST')){die();}\r\n\r\n\$databasename='".$dbname."';\r\n\$username='".$dbuser."';\r\n\$password='".$dbuserpswd."';\r\n\$secret='".$keypwd."';\r\n?>";
|
|
| 37 |
+ |
|
| 38 |
+ file_put_contents("roundpin-config.php", $texttofill);
|
|
| 39 |
+ |
|
| 40 |
+ |
|
| 41 |
+ session_start(); |
|
| 42 |
+ |
|
| 43 |
+ $_SESSION['validateaccess'] = "accessallowed"; |
|
| 44 |
+ |
|
| 45 |
+ header("Location: roundpin-initializedb.php");
|
|
| 46 |
+ } |
|
| 47 |
+ } |
|
| 48 |
+ |
|
| 49 |
+?> |
|
| 50 |
+ |
|
| 51 |
+<html> |
|
| 52 |
+ |
|
| 53 |
+<head> |
|
| 54 |
+ <title>Roundpin Setup</title> |
|
| 55 |
+ |
|
| 56 |
+ <link rel="stylesheet" href="css/setup.min.css"> |
|
| 57 |
+ <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> |
|
| 58 |
+ <script type="text/javascript" src="js/roundpin-setup.min.js"></script> |
|
| 59 |
+ |
|
| 60 |
+</head> |
|
| 61 |
+ |
|
| 62 |
+<body> |
|
| 63 |
+ |
|
| 64 |
+ <div id="mainarea"> |
|
| 65 |
+ |
|
| 66 |
+ <img class="logosetuppage" src="images/login-logo.svg" /> |
|
| 67 |
+ |
|
| 68 |
+ <h3 style="text-align:center;">Roundpin Setup</h3><br> |
|
| 69 |
+ |
|
| 70 |
+ <img class="setupStage" src="images/roundpin-setup-stages-1.svg" /> |
|
| 71 |
+ |
|
| 72 |
+ <form id="roundpincredform" action="" method="POST"> |
|
| 73 |
+ |
|
| 74 |
+ <label for="databasename" class="fieldlabels">Roundpin database name:</label><br> |
|
| 75 |
+ <input type="text" id="databasename" class="textinput" name="databasename"/><br><br> |
|
| 76 |
+ |
|
| 77 |
+ <label for="databaseuser" class="fieldlabels">Roundpin database user:</label><br> |
|
| 78 |
+ <input type="text" id="databaseuser" class="textinput" name="databaseuser"/><br><br> |
|
| 79 |
+ |
|
| 80 |
+ <label for="userpassword" class="fieldlabels">Roundpin database user password:</label><br> |
|
| 81 |
+ <input type="password" id="dbuserpassword" class="textinput" name="dbuserpassword"/><br><br> |
|
| 82 |
+ |
|
| 83 |
+ <input type="submit" id="createconfigbttn" name="createconfigbttn" value="Next" /> |
|
| 84 |
+ |
|
| 85 |
+ </form> |
|
| 86 |
+ |
|
| 87 |
+ </div> |
|
| 88 |
+ |
|
| 89 |
+</body> |
|
| 90 |
+ |
|
| 91 |
+</html> |
|
| 92 |
+ |
|
| 93 |
+<?php |
|
| 94 |
+} |
|
| 95 |
+ |
|
| 96 |
+?> |