Added single missing quotes to currecies
This commit is contained in:
@@ -1067,7 +1067,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$opts = array('http' =>
|
$opts = array(
|
||||||
|
'http' =>
|
||||||
array(
|
array(
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'header' => 'Content-type: application/x-www-form-urlencoded',
|
'header' => 'Content-type: application/x-www-form-urlencoded',
|
||||||
@@ -1152,28 +1153,40 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
|
|
||||||
<!-- Sidebar Menu -->
|
<!-- Sidebar Menu -->
|
||||||
<nav class="mt-2">
|
<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">
|
<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>
|
<i class="nav-icon fas fa-database"></i>
|
||||||
<p>Database</p>
|
<p>Database</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<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>
|
<i class="nav-icon fas fa-user"></i>
|
||||||
<p>User</p>
|
<p>User</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<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>
|
<i class="nav-icon fas fa-building"></i>
|
||||||
<p>Company</p>
|
<p>Company</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<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>
|
<i class="nav-icon fas fa-share-alt"></i>
|
||||||
<p>Telemetry</p>
|
<p>Telemetry</p>
|
||||||
</a>
|
</a>
|
||||||
@@ -1214,7 +1227,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<li>Upload is readable and writeable</li>
|
<li>Upload is readable and writeable</li>
|
||||||
<li>PHP 8.0+ Installed</li>
|
<li>PHP 8.0+ Installed</li>
|
||||||
</ul>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1228,7 +1242,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<?php if (file_exists('config.php')) { ?>
|
<?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.
|
or deleting it and refreshing this page.
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<form method="post" autocomplete="off">
|
<form method="post" autocomplete="off">
|
||||||
@@ -1239,7 +1254,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1249,7 +1265,9 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||||
</div>
|
</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">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -1262,7 +1280,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-database"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-database"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1272,7 +1291,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1300,7 +1320,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1310,7 +1331,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1320,7 +1342,9 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||||
</div>
|
</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">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -1329,12 +1353,14 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Avatar</label>
|
<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>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1354,7 +1380,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1362,9 +1389,11 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<label>Address</label>
|
<label>Address</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<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>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1384,7 +1413,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-flag"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-flag"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1394,7 +1424,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fab fa-fw fa-usps"></i></span>
|
<span class="input-group-text"><i class="fab fa-fw fa-usps"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1407,7 +1438,9 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<select class="form-control select2" name="country" required>
|
<select class="form-control select2" name="country" required>
|
||||||
<option value="">- Country -</option>
|
<option value="">- Country -</option>
|
||||||
<?php foreach ($countries_array as $country_name) { ?>
|
<?php foreach ($countries_array as $country_name) { ?>
|
||||||
<option><?php echo $country_name; ?></option>
|
<option>
|
||||||
|
<?php echo $country_name; ?>
|
||||||
|
</option>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -1429,7 +1462,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1439,7 +1473,8 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1503,19 +1538,25 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
|
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input type="checkbox" class="form-check-input" name="share_data" value="1">
|
<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>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Comments</label>
|
<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>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<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>
|
<hr>
|
||||||
|
|
||||||
@@ -1535,10 +1576,17 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
<h3 class="card-title"><i class="fas fa-fw fa-cube mr-2"></i>ITFlow Setup</h3>
|
<h3 class="card-title"><i class="fas fa-fw fa-cube mr-2"></i>ITFlow Setup</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<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><b>Thank you for choosing to try ITFlow!</b> Feel free to reach out on the <a
|
||||||
<p>A database must be created before proceeding - click on the button below to get started! </p>
|
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>
|
<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
|
<?php
|
||||||
// Check that there is access to write to the current directory
|
// Check that there is access to write to the current directory
|
||||||
if (!is_writable('.')) {
|
if (!is_writable('.')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user