Added single missing quotes to currecies

This commit is contained in:
chanda chewe
2023-08-24 21:22:14 +02:00
parent 37ad8cfd7f
commit 2c807f433c
+74 -122
View File
@@ -868,7 +868,7 @@ if (isset($_POST['add_database'])) {
} }
if (isset($_POST['add_user'])) { if (isset($_POST['add_user'])) {
$user_count = mysqli_num_rows(mysqli_query($mysqli, "SELECT COUNT(*) FROM users")); $user_count = mysqli_num_rows(mysqli_query($mysqli,"SELECT COUNT(*) FROM users"));
if ($user_count < 0) { if ($user_count < 0) {
$_SESSION['alert_message'] = "Users already exist in the database. Clear them to reconfigure here."; $_SESSION['alert_message'] = "Users already exist in the database. Clear them to reconfigure here.";
header("Location: setup.php?company"); header("Location: setup.php?company");
@@ -885,7 +885,7 @@ if (isset($_POST['add_user'])) {
//Generate user specific key //Generate user specific key
$user_specific_encryption_ciphertext = setupFirstUserSpecificKey(trim($_POST['password']), $site_encryption_master_key); $user_specific_encryption_ciphertext = setupFirstUserSpecificKey(trim($_POST['password']), $site_encryption_master_key);
mysqli_query($mysqli, "INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext'"); mysqli_query($mysqli,"INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext'");
mkdirMissing("uploads/users/1"); mkdirMissing("uploads/users/1");
@@ -898,7 +898,7 @@ if (isset($_POST['add_user'])) {
$file_name = $_FILES['file']['name']; $file_name = $_FILES['file']['name'];
$file_size = $_FILES['file']['size']; $file_size = $_FILES['file']['size'];
$file_type = $_FILES['file']['type']; $file_type = $_FILES['file']['type'];
$file_extension = strtolower(end(explode('.', $_FILES['file']['name']))); $file_extension = strtolower(end(explode('.',$_FILES['file']['name'])));
// sanitize file-name // sanitize file-name
$new_file_name = md5(time() . $file_name) . '.' . $file_extension; $new_file_name = md5(time() . $file_name) . '.' . $file_extension;
@@ -906,7 +906,7 @@ if (isset($_POST['add_user'])) {
// check if file has one of the following extensions // check if file has one of the following extensions
$allowed_file_extensions = array('jpg', 'gif', 'png'); $allowed_file_extensions = array('jpg', 'gif', 'png');
if (in_array($file_extension, $allowed_file_extensions) === false) { if (in_array($file_extension,$allowed_file_extensions) === false) {
$file_error = 1; $file_error = 1;
} }
@@ -923,7 +923,7 @@ if (isset($_POST['add_user'])) {
move_uploaded_file($file_tmp_path, $dest_path); move_uploaded_file($file_tmp_path, $dest_path);
//Set Avatar //Set Avatar
mysqli_query($mysqli, "UPDATE users SET user_avatar = '$new_file_name' WHERE user_id = 1"); mysqli_query($mysqli,"UPDATE users SET user_avatar = '$new_file_name' WHERE user_id = 1");
$_SESSION['alert_message'] = 'File successfully uploaded.'; $_SESSION['alert_message'] = 'File successfully uploaded.';
} else { } else {
@@ -933,7 +933,7 @@ if (isset($_POST['add_user'])) {
} }
//Create Settings //Create Settings
mysqli_query($mysqli, "INSERT INTO user_settings SET user_id = 1, user_role = 3"); mysqli_query($mysqli,"INSERT INTO user_settings SET user_id = 1, user_role = 3");
$_SESSION['alert_message'] = "User <strong>$name</strong> created!"; $_SESSION['alert_message'] = "User <strong>$name</strong> created!";
@@ -950,13 +950,13 @@ if (isset($_POST['add_company_settings'])) {
$city = sanitizeInput($_POST['city']); $city = sanitizeInput($_POST['city']);
$state = sanitizeInput($_POST['state']); $state = sanitizeInput($_POST['state']);
$zip = sanitizeInput($_POST['zip']); $zip = sanitizeInput($_POST['zip']);
$phone = preg_replace("/[^0-9]/", '', $_POST['phone']); $phone = preg_replace("/[^0-9]/", '',$_POST['phone']);
$email = sanitizeInput($_POST['email']); $email = sanitizeInput($_POST['email']);
$website = sanitizeInput($_POST['website']); $website = sanitizeInput($_POST['website']);
$locale = sanitizeInput($_POST['locale']); $locale = sanitizeInput($_POST['locale']);
$currency_code = sanitizeInput($_POST['currency_code']); $currency_code = sanitizeInput($_POST['currency_code']);
mysqli_query($mysqli, "INSERT INTO companies SET company_name = '$name', company_address = '$address', company_city = '$city', company_state = '$state', company_zip = '$zip', company_country = '$country', company_phone = '$phone', company_email = '$email', company_website = '$website', company_locale = '$locale', company_currency = '$currency_code'"); mysqli_query($mysqli,"INSERT INTO companies SET company_name = '$name', company_address = '$address', company_city = '$city', company_state = '$state', company_zip = '$zip', company_country = '$country', company_phone = '$phone', company_email = '$email', company_website = '$website', company_locale = '$locale', company_currency = '$currency_code'");
//Check to see if a file is attached //Check to see if a file is attached
if ($_FILES['file']['tmp_name'] != '') { if ($_FILES['file']['tmp_name'] != '') {
@@ -967,7 +967,7 @@ if (isset($_POST['add_company_settings'])) {
$file_name = $_FILES['file']['name']; $file_name = $_FILES['file']['name'];
$file_size = $_FILES['file']['size']; $file_size = $_FILES['file']['size'];
$file_type = $_FILES['file']['type']; $file_type = $_FILES['file']['type'];
$file_extension = strtolower(end(explode('.', $_FILES['file']['name']))); $file_extension = strtolower(end(explode('.',$_FILES['file']['name'])));
// sanitize file-name // sanitize file-name
$new_file_name = md5(time() . $file_name) . '.' . $file_extension; $new_file_name = md5(time() . $file_name) . '.' . $file_extension;
@@ -975,7 +975,7 @@ if (isset($_POST['add_company_settings'])) {
// check if file has one of the following extensions // check if file has one of the following extensions
$allowed_file_extensions = array('jpg', 'gif', 'png'); $allowed_file_extensions = array('jpg', 'gif', 'png');
if (in_array($file_extension, $allowed_file_extensions) === false) { if (in_array($file_extension,$allowed_file_extensions) === false) {
$file_error = 1; $file_error = 1;
} }
@@ -991,7 +991,7 @@ if (isset($_POST['add_company_settings'])) {
move_uploaded_file($file_tmp_path, $dest_path); move_uploaded_file($file_tmp_path, $dest_path);
mysqli_query($mysqli, "UPDATE companies SET company_logo = '$new_file_name' WHERE company_id = 1"); mysqli_query($mysqli,"UPDATE companies SET company_logo = '$new_file_name' WHERE company_id = 1");
$_SESSION['alert_message'] = 'File successfully uploaded.'; $_SESSION['alert_message'] = 'File successfully uploaded.';
} else { } else {
@@ -1003,34 +1003,34 @@ if (isset($_POST['add_company_settings'])) {
$latest_database_version = LATEST_DATABASE_VERSION; $latest_database_version = LATEST_DATABASE_VERSION;
mysqli_query($mysqli, "INSERT INTO settings SET company_id = 1, config_current_database_version = '$latest_database_version', config_invoice_prefix = 'INV-', config_invoice_next_number = 1, config_recurring_prefix = 'REC-', config_recurring_next_number = 1, config_invoice_overdue_reminders = '1,3,7', config_quote_prefix = 'QUO-', config_quote_next_number = 1, config_default_net_terms = 30, config_ticket_next_number = 1, config_ticket_prefix = 'TCK-'"); mysqli_query($mysqli,"INSERT INTO settings SET company_id = 1, config_current_database_version = '$latest_database_version', config_invoice_prefix = 'INV-', config_invoice_next_number = 1, config_recurring_prefix = 'REC-', config_recurring_next_number = 1, config_invoice_overdue_reminders = '1,3,7', config_quote_prefix = 'QUO-', config_quote_next_number = 1, config_default_net_terms = 30, config_ticket_next_number = 1, config_ticket_prefix = 'TCK-'");
# Used only for the install script to grab the generated cronkey and insert into the db # Used only for the install script to grab the generated cronkey and insert into the db
if (file_exists("uploads/tmp/cronkey.php")) { if (file_exists("uploads/tmp/cronkey.php")) {
include("uploads/tmp/cronkey.php"); include("uploads/tmp/cronkey.php");
mysqli_query($mysqli, "UPDATE settings SET config_cron_key = '$itflow_install_script_generated_cronkey'"); mysqli_query($mysqli,"UPDATE settings SET config_cron_key = '$itflow_install_script_generated_cronkey'");
unlink('uploads/tmp/cronkey.php'); unlink('uploads/tmp/cronkey.php');
} }
//Create Some Data //Create Some Data
mysqli_query($mysqli, "INSERT INTO accounts SET account_name = 'Cash', account_currency_code = '$currency_code'"); mysqli_query($mysqli,"INSERT INTO accounts SET account_name = 'Cash', account_currency_code = '$currency_code'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Office Supplies', category_type = 'Expense', category_color = 'blue'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Office Supplies', category_type = 'Expense', category_color = 'blue'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Travel', category_type = 'Expense', category_color = 'red'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Travel', category_type = 'Expense', category_color = 'red'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Advertising', category_type = 'Expense', category_color = 'green'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Advertising', category_type = 'Expense', category_color = 'green'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Service', category_type = 'Income', category_color = 'blue'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Service', category_type = 'Income', category_color = 'blue'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Friend', category_type = 'Referral', category_color = 'blue'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Friend', category_type = 'Referral', category_color = 'blue'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Search Engine', category_type = 'Referral', category_color = 'red'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Search Engine', category_type = 'Referral', category_color = 'red'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Cash', category_type = 'Payment Method', category_color = 'blue'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Cash', category_type = 'Payment Method', category_color = 'blue'");
mysqli_query($mysqli, "INSERT INTO categories SET category_name = 'Check', category_type = 'Payment Method', category_color = 'red'"); mysqli_query($mysqli,"INSERT INTO categories SET category_name = 'Check', category_type = 'Payment Method', category_color = 'red'");
mysqli_query($mysqli, "INSERT INTO calendars SET calendar_name = 'Default', calendar_color = 'blue'"); mysqli_query($mysqli,"INSERT INTO calendars SET calendar_name = 'Default', calendar_color = 'blue'");
$_SESSION['alert_message'] = "Company <strong>$name</strong> created!"; $_SESSION['alert_message'] = "Company <strong>$name</strong> created!";
@@ -1045,7 +1045,7 @@ if (isset($_POST['add_telemetry'])) {
$comments = sanitizeInput($_POST['comments']); $comments = sanitizeInput($_POST['comments']);
$sql = mysqli_query($mysqli, "SELECT * FROM companies WHERE company_id = 1"); $sql = mysqli_query($mysqli,"SELECT * FROM companies WHERE company_id = 1");
$row = mysqli_fetch_array($sql); $row = mysqli_fetch_array($sql);
$company_name = $row['company_name']; $company_name = $row['company_name'];
@@ -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',
@@ -1122,7 +1121,7 @@ if (isset($_POST['add_telemetry'])) {
<body class="hold-transition sidebar-mini"> <body class="hold-transition sidebar-mini">
<div class="wrapper text-sm"> <div class="wrapper text-sm">
<!-- Navbar --> <!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-primary navbar-dark"> <nav class="main-header navbar navbar-expand navbar-primary navbar-dark">
@@ -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,10 +1228,9 @@ 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">
<div class="form-group"> <div class="form-group">
@@ -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>
@@ -1437,10 +1406,8 @@ if (isset($_POST['add_telemetry'])) {
</div> </div>
<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>
@@ -1486,7 +1451,7 @@ if (isset($_POST['add_telemetry'])) {
</div> </div>
<select class="form-control select2" name="locale" required> <select class="form-control select2" name="locale" required>
<option value="">- Select a Locale -</option> <option value="">- Select a Locale -</option>
<?php foreach ($locales_array as $locale_code => $locale_name) { ?> <?php foreach($locales_array as $locale_code => $locale_name) { ?>
<option value="<?php echo $locale_code; ?>"><?php echo "$locale_code - $locale_name"; ?></option> <option value="<?php echo $locale_code; ?>"><?php echo "$locale_code - $locale_name"; ?></option>
<?php } ?> <?php } ?>
</select> </select>
@@ -1501,7 +1466,7 @@ if (isset($_POST['add_telemetry'])) {
</div> </div>
<select class="form-control select2" name="currency_code" required> <select class="form-control select2" name="currency_code" required>
<option value="">- Currency -</option> <option value="">- Currency -</option>
<?php foreach ($currencies_array as $currency_code => $currency_name) { ?> <?php foreach($currencies_array as $currency_code => $currency_name) { ?>
<option value="<?php echo $currency_code; ?>"><?php echo "$currency_code - $currency_name"; ?></option> <option value="<?php echo $currency_code; ?>"><?php echo "$currency_code - $currency_name"; ?></option>
<?php } ?> <?php } ?>
</select> </select>
@@ -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('.')) {
@@ -1609,23 +1561,23 @@ if (isset($_POST['add_telemetry'])) {
<!-- /.content --> <!-- /.content -->
</div> </div>
<!-- /.content-wrapper --> <!-- /.content-wrapper -->
</div> </div>
<!-- ./wrapper --> <!-- ./wrapper -->
<!-- REQUIRED SCRIPTS --> <!-- REQUIRED SCRIPTS -->
<!-- jQuery --> <!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script> <script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 --> <!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Custom js--> <!-- Custom js-->
<script src='plugins/select2/js/select2.min.js'></script> <script src='plugins/select2/js/select2.min.js'></script>
<script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script> <script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script>
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script> <script src="dist/js/adminlte.min.js"></script>
<!-- Custom js--> <!-- Custom js-->
<script src="js/app.js"></script> <script src="js/app.js"></script>
</body> </body>