Added single missing quotes to currecies
This commit is contained in:
@@ -1067,8 +1067,7 @@ if (isset($_POST['add_telemetry'])) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$opts = array(
|
$opts = array('http' =>
|
||||||
'http' =>
|
|
||||||
array(
|
array(
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'header' => 'Content-type: application/x-www-form-urlencoded',
|
'header' => 'Content-type: application/x-www-form-urlencoded',
|
||||||
@@ -1153,40 +1152,28 @@ 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"
|
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||||
data-accordion="false">
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="?database"
|
<a href="?database" class="nav-link <?php if (isset($_GET['database'])) { echo "active"; } ?>">
|
||||||
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'])) {
|
<a href="?user" class="nav-link <?php if (isset($_GET['user'])) { echo "active"; } ?>">
|
||||||
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"
|
<a href="?company" class="nav-link <?php if (isset($_GET['company'])) { echo "active"; } ?>">
|
||||||
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"
|
<a href="?telemetry" class="nav-link <?php if (isset($_GET['telemetry'])) { echo "active"; } ?>">
|
||||||
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>
|
||||||
@@ -1227,8 +1214,7 @@ 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"
|
<div style="text-align: center;"><a href="?database" class="btn btn-lg btn-primary text-bold mb-5">Install</a></div>
|
||||||
class="btn btn-lg btn-primary text-bold mb-5">Install</a></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1242,8 +1228,7 @@ 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
|
Database is already configured. Any further changes should be made by editing the config.php file,
|
||||||
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">
|
||||||
@@ -1254,8 +1239,7 @@ 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"
|
<input type="text" class="form-control" name="username" placeholder="Database User" autofocus required>
|
||||||
placeholder="Database User" autofocus required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1265,9 +1249,7 @@ 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"
|
<input type="password" class="form-control" data-toggle="password" name="password" placeholder="Enter a Database Password" autocomplete="new-password" required>
|
||||||
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>
|
||||||
@@ -1280,8 +1262,7 @@ 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"
|
<input type="text" class="form-control" name="database" placeholder="Database Name" required>
|
||||||
placeholder="Database Name" required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1291,8 +1272,7 @@ 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"
|
<input type="text" class="form-control" name="host" value="localhost" placeholder="Database Host" required>
|
||||||
placeholder="Database Host" required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1320,8 +1300,7 @@ 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"
|
<input type="text" class="form-control" name="name" placeholder="Full Name" autofocus required>
|
||||||
autofocus required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1331,8 +1310,7 @@ 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"
|
<input type="email" class="form-control" name="email" placeholder="Email Address" required>
|
||||||
placeholder="Email Address" required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1342,9 +1320,7 @@ 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"
|
<input type="password" class="form-control" data-toggle="password" name="password" placeholder="Enter a Password" autocomplete="new-password" required minlength="8">
|
||||||
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>
|
||||||
@@ -1353,14 +1329,12 @@ 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"
|
<input type="file" class="form-control-file" accept="image/*;capture=camera" name="file">
|
||||||
name="file">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<button type="submit" name="add_user" class="btn btn-primary text-bold">Next <i
|
<button type="submit" name="add_user" class="btn btn-primary text-bold">Next <i class="fa fa-fw fa-arrow-circle-right"></i></button>
|
||||||
class="fa fa-fw fa-arrow-circle-right"></i></button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1380,8 +1354,7 @@ 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"
|
<input type="text" class="form-control" name="name" placeholder="Company Name" autofocus required>
|
||||||
autofocus required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1389,11 +1362,9 @@ 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
|
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
|
||||||
class="fa fa-fw fa-map-marker-alt"></i></span>
|
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="address"
|
<input type="text" class="form-control" name="address" placeholder="Street Address">
|
||||||
placeholder="Street Address">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1413,8 +1384,7 @@ 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"
|
<input type="text" class="form-control" name="state" placeholder="State or Province">
|
||||||
placeholder="State or Province">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1424,8 +1394,7 @@ 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"
|
<input type="text" class="form-control" name="zip" placeholder="Zip or Postal Code">
|
||||||
placeholder="Zip or Postal Code">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1438,9 +1407,7 @@ 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>
|
<option><?php echo $country_name; ?></option>
|
||||||
<?php echo $country_name; ?>
|
|
||||||
</option>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -1462,8 +1429,7 @@ 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"
|
<input type="email" class="form-control" name="email" placeholder="Email address">
|
||||||
placeholder="Email address">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1473,8 +1439,7 @@ 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"
|
<input type="text" class="form-control" name="website" placeholder="Website address">
|
||||||
placeholder="Website address">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1538,25 +1503,19 @@ 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
|
<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>
|
||||||
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"
|
<textarea class="form-control" rows="4" name="comments" placeholder="Any Comments?"></textarea>
|
||||||
placeholder="Any Comments?"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<p>Housekeeping: <b>Post installation, <a
|
<p>Housekeeping: <b>Post installation, <a href="https://docs.itflow.org/installation#essential_housekeeping">a few additional steps</a> are required</b></p>
|
||||||
href="https://docs.itflow.org/installation#essential_housekeeping">a few
|
|
||||||
additional steps</a> are required</b></p>
|
|
||||||
|
|
||||||
<hr>
|
<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>
|
<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
|
<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>
|
||||||
href="https://forum.itflow.org/t/support" target="_blank">forums</a> if you have any
|
<p>A database must be created before proceeding - click on the button below to get started! </p>
|
||||||
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
|
<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>
|
||||||
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