Added single missing quotes to currecies
This commit is contained in:
@@ -1067,8 +1067,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
)
|
||||
);
|
||||
|
||||
$opts = array(
|
||||
'http' =>
|
||||
$opts = array('http' =>
|
||||
array(
|
||||
'method' => 'POST',
|
||||
'header' => 'Content-type: application/x-www-form-urlencoded',
|
||||
@@ -1153,40 +1152,28 @@ if (isset($_POST['add_telemetry'])) {
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
|
||||
data-accordion="false">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<li class="nav-item">
|
||||
<a href="?database"
|
||||
class="nav-link <?php if (isset($_GET['database'])) {
|
||||
echo "active";
|
||||
} ?>">
|
||||
<a href="?database" class="nav-link <?php if (isset($_GET['database'])) { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-database"></i>
|
||||
<p>Database</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="?user" class="nav-link <?php if (isset($_GET['user'])) {
|
||||
echo "active";
|
||||
} ?>">
|
||||
<a href="?user" class="nav-link <?php if (isset($_GET['user'])) { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-user"></i>
|
||||
<p>User</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="?company"
|
||||
class="nav-link <?php if (isset($_GET['company'])) {
|
||||
echo "active";
|
||||
} ?>">
|
||||
<a href="?company" class="nav-link <?php if (isset($_GET['company'])) { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-building"></i>
|
||||
<p>Company</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="?telemetry"
|
||||
class="nav-link <?php if (isset($_GET['telemetry'])) {
|
||||
echo "active";
|
||||
} ?>">
|
||||
<a href="?telemetry" class="nav-link <?php if (isset($_GET['telemetry'])) { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-share-alt"></i>
|
||||
<p>Telemetry</p>
|
||||
</a>
|
||||
@@ -1227,8 +1214,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<li>Upload is readable and writeable</li>
|
||||
<li>PHP 8.0+ Installed</li>
|
||||
</ul>
|
||||
<div style="text-align: center;"><a href="?database"
|
||||
class="btn btn-lg btn-primary text-bold mb-5">Install</a></div>
|
||||
<div style="text-align: center;"><a href="?database" class="btn btn-lg btn-primary text-bold mb-5">Install</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1242,8 +1228,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (file_exists('config.php')) { ?>
|
||||
Database is already configured. Any further changes should be made by editing the config.php
|
||||
file,
|
||||
Database is already configured. Any further changes should be made by editing the config.php file,
|
||||
or deleting it and refreshing this page.
|
||||
<?php }else{ ?>
|
||||
<form method="post" autocomplete="off">
|
||||
@@ -1254,8 +1239,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="username"
|
||||
placeholder="Database User" autofocus required>
|
||||
<input type="text" class="form-control" name="username" placeholder="Database User" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1265,9 +1249,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||
</div>
|
||||
<input type="password" class="form-control" data-toggle="password"
|
||||
name="password" placeholder="Enter a Database Password"
|
||||
autocomplete="new-password" required>
|
||||
<input type="password" class="form-control" data-toggle="password" name="password" placeholder="Enter a Database Password" autocomplete="new-password" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
@@ -1280,8 +1262,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-database"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="database"
|
||||
placeholder="Database Name" required>
|
||||
<input type="text" class="form-control" name="database" placeholder="Database Name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1291,8 +1272,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="host" value="localhost"
|
||||
placeholder="Database Host" required>
|
||||
<input type="text" class="form-control" name="host" value="localhost" placeholder="Database Host" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1320,8 +1300,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="name" placeholder="Full Name"
|
||||
autofocus required>
|
||||
<input type="text" class="form-control" name="name" placeholder="Full Name" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1331,8 +1310,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
</div>
|
||||
<input type="email" class="form-control" name="email"
|
||||
placeholder="Email Address" required>
|
||||
<input type="email" class="form-control" name="email" placeholder="Email Address" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1342,9 +1320,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||
</div>
|
||||
<input type="password" class="form-control" data-toggle="password"
|
||||
name="password" placeholder="Enter a Password" autocomplete="new-password"
|
||||
required minlength="8">
|
||||
<input type="password" class="form-control" data-toggle="password" name="password" placeholder="Enter a Password" autocomplete="new-password" required minlength="8">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
@@ -1353,14 +1329,12 @@ if (isset($_POST['add_telemetry'])) {
|
||||
|
||||
<div class="form-group">
|
||||
<label>Avatar</label>
|
||||
<input type="file" class="form-control-file" accept="image/*;capture=camera"
|
||||
name="file">
|
||||
<input type="file" class="form-control-file" accept="image/*;capture=camera" name="file">
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<button type="submit" name="add_user" class="btn btn-primary text-bold">Next <i
|
||||
class="fa fa-fw fa-arrow-circle-right"></i></button>
|
||||
<button type="submit" name="add_user" class="btn btn-primary text-bold">Next <i class="fa fa-fw fa-arrow-circle-right"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1380,8 +1354,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="name" placeholder="Company Name"
|
||||
autofocus required>
|
||||
<input type="text" class="form-control" name="name" placeholder="Company Name" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1389,11 +1362,9 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<label>Address</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i
|
||||
class="fa fa-fw fa-map-marker-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="address"
|
||||
placeholder="Street Address">
|
||||
<input type="text" class="form-control" name="address" placeholder="Street Address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1413,8 +1384,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-flag"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="state"
|
||||
placeholder="State or Province">
|
||||
<input type="text" class="form-control" name="state" placeholder="State or Province">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1424,8 +1394,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fab fa-fw fa-usps"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="zip"
|
||||
placeholder="Zip or Postal Code">
|
||||
<input type="text" class="form-control" name="zip" placeholder="Zip or Postal Code">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1438,9 +1407,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<select class="form-control select2" name="country" required>
|
||||
<option value="">- Country -</option>
|
||||
<?php foreach($countries_array as $country_name) { ?>
|
||||
<option>
|
||||
<?php echo $country_name; ?>
|
||||
</option>
|
||||
<option><?php echo $country_name; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -1462,8 +1429,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
</div>
|
||||
<input type="email" class="form-control" name="email"
|
||||
placeholder="Email address">
|
||||
<input type="email" class="form-control" name="email" placeholder="Email address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1473,8 +1439,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" name="website"
|
||||
placeholder="Website address">
|
||||
<input type="text" class="form-control" name="website" placeholder="Website address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1538,25 +1503,19 @@ if (isset($_POST['add_telemetry'])) {
|
||||
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="share_data" value="1">
|
||||
<label class="form-check-label ml-2">Share <small class="form-text"><a
|
||||
href="https://docs.itflow.org/telemetry" target="_blank">Click Here for
|
||||
additional details regarding the information we gather <i
|
||||
class="fas fa-external-link-alt"></i></a></small></label>
|
||||
<label class="form-check-label ml-2">Share <small class="form-text"><a href="https://docs.itflow.org/telemetry" target="_blank">Click Here for additional details regarding the information we gather <i class="fas fa-external-link-alt"></i></a></small></label>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Comments</label>
|
||||
<textarea class="form-control" rows="4" name="comments"
|
||||
placeholder="Any Comments?"></textarea>
|
||||
<textarea class="form-control" rows="4" name="comments" placeholder="Any Comments?"></textarea>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<p>Housekeeping: <b>Post installation, <a
|
||||
href="https://docs.itflow.org/installation#essential_housekeeping">a few
|
||||
additional steps</a> are required</b></p>
|
||||
<p>Housekeeping: <b>Post installation, <a href="https://docs.itflow.org/installation#essential_housekeeping">a few additional steps</a> are required</b></p>
|
||||
|
||||
<hr>
|
||||
|
||||
@@ -1576,17 +1535,10 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-cube mr-2"></i>ITFlow Setup</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><b>Thank you for choosing to try ITFlow!</b> Feel free to reach out on the <a
|
||||
href="https://forum.itflow.org/t/support" target="_blank">forums</a> if you have any
|
||||
questions.</p>
|
||||
<p>A database must be created before proceeding - click on the button below to get started!
|
||||
</p>
|
||||
<p><b>Thank you for choosing to try ITFlow!</b> Feel free to reach out on the <a href="https://forum.itflow.org/t/support" target="_blank">forums</a> if you have any questions.</p>
|
||||
<p>A database must be created before proceeding - click on the button below to get started! </p>
|
||||
<hr>
|
||||
<p class="text-muted">ITFlow is <b>free software</b>: you can redistribute and/or modify it
|
||||
under the terms of the <a href="https://www.gnu.org/licenses/gpl-3.0.en.html"
|
||||
target="_blank">GNU General Public License</a>. <br> It is distributed in the hope
|
||||
that it will be useful, but <b>without any warranty</b>; without even the implied
|
||||
warranty of merchantability or fitness for a particular purpose.</p>
|
||||
<p class="text-muted">ITFlow is <b>free software</b>: you can redistribute and/or modify it under the terms of the <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank">GNU General Public License</a>. <br> It is distributed in the hope that it will be useful, but <b>without any warranty</b>; without even the implied warranty of merchantability or fitness for a particular purpose.</p>
|
||||
<?php
|
||||
// Check that there is access to write to the current directory
|
||||
if (!is_writable('.')) {
|
||||
|
||||
Reference in New Issue
Block a user