Added single missing quotes to currecies
This commit is contained in:
@@ -868,7 +868,7 @@ if (isset($_POST['add_database'])) {
|
||||
}
|
||||
|
||||
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) {
|
||||
$_SESSION['alert_message'] = "Users already exist in the database. Clear them to reconfigure here.";
|
||||
header("Location: setup.php?company");
|
||||
@@ -885,7 +885,7 @@ if (isset($_POST['add_user'])) {
|
||||
//Generate user specific 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");
|
||||
|
||||
@@ -898,7 +898,7 @@ if (isset($_POST['add_user'])) {
|
||||
$file_name = $_FILES['file']['name'];
|
||||
$file_size = $_FILES['file']['size'];
|
||||
$file_type = $_FILES['file']['type'];
|
||||
$file_extension = strtolower(end(explode('.',$_FILES['file']['name'])));
|
||||
$file_extension = strtolower(end(explode('.', $_FILES['file']['name'])));
|
||||
|
||||
// sanitize file-name
|
||||
$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
|
||||
$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;
|
||||
}
|
||||
|
||||
@@ -923,7 +923,7 @@ if (isset($_POST['add_user'])) {
|
||||
move_uploaded_file($file_tmp_path, $dest_path);
|
||||
|
||||
//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.';
|
||||
} else {
|
||||
@@ -933,7 +933,7 @@ if (isset($_POST['add_user'])) {
|
||||
}
|
||||
|
||||
//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!";
|
||||
|
||||
@@ -950,13 +950,13 @@ if (isset($_POST['add_company_settings'])) {
|
||||
$city = sanitizeInput($_POST['city']);
|
||||
$state = sanitizeInput($_POST['state']);
|
||||
$zip = sanitizeInput($_POST['zip']);
|
||||
$phone = preg_replace("/[^0-9]/", '',$_POST['phone']);
|
||||
$phone = preg_replace("/[^0-9]/", '', $_POST['phone']);
|
||||
$email = sanitizeInput($_POST['email']);
|
||||
$website = sanitizeInput($_POST['website']);
|
||||
$locale = sanitizeInput($_POST['locale']);
|
||||
$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
|
||||
if ($_FILES['file']['tmp_name'] != '') {
|
||||
@@ -967,7 +967,7 @@ if (isset($_POST['add_company_settings'])) {
|
||||
$file_name = $_FILES['file']['name'];
|
||||
$file_size = $_FILES['file']['size'];
|
||||
$file_type = $_FILES['file']['type'];
|
||||
$file_extension = strtolower(end(explode('.',$_FILES['file']['name'])));
|
||||
$file_extension = strtolower(end(explode('.', $_FILES['file']['name'])));
|
||||
|
||||
// sanitize file-name
|
||||
$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
|
||||
$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;
|
||||
}
|
||||
|
||||
@@ -991,7 +991,7 @@ if (isset($_POST['add_company_settings'])) {
|
||||
|
||||
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.';
|
||||
} else {
|
||||
@@ -1003,34 +1003,34 @@ if (isset($_POST['add_company_settings'])) {
|
||||
|
||||
|
||||
$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
|
||||
if (file_exists("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');
|
||||
}
|
||||
|
||||
//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 = '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 = '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 = '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 = 'Search Engine', category_type = 'Referral', category_color = 'red'");
|
||||
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 = '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 = '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 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!";
|
||||
@@ -1045,7 +1045,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
|
||||
$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);
|
||||
|
||||
$company_name = $row['company_name'];
|
||||
@@ -1067,7 +1067,8 @@ if (isset($_POST['add_telemetry'])) {
|
||||
)
|
||||
);
|
||||
|
||||
$opts = array('http' =>
|
||||
$opts = array(
|
||||
'http' =>
|
||||
array(
|
||||
'method' => 'POST',
|
||||
'header' => 'Content-type: application/x-www-form-urlencoded',
|
||||
@@ -1121,7 +1122,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
|
||||
<body class="hold-transition sidebar-mini">
|
||||
|
||||
<div class="wrapper text-sm">
|
||||
<div class="wrapper text-sm">
|
||||
|
||||
<!-- Navbar -->
|
||||
<nav class="main-header navbar navbar-expand navbar-primary navbar-dark">
|
||||
@@ -1152,28 +1153,40 @@ 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>
|
||||
@@ -1214,7 +1227,8 @@ 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>
|
||||
|
||||
@@ -1228,9 +1242,10 @@ 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{ ?>
|
||||
<?php } else { ?>
|
||||
<form method="post" autocomplete="off">
|
||||
|
||||
<div class="form-group">
|
||||
@@ -1239,7 +1254,8 @@ 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>
|
||||
|
||||
@@ -1249,7 +1265,9 @@ 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>
|
||||
@@ -1262,7 +1280,8 @@ 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>
|
||||
|
||||
@@ -1272,7 +1291,8 @@ 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>
|
||||
|
||||
@@ -1300,7 +1320,8 @@ 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>
|
||||
|
||||
@@ -1310,7 +1331,8 @@ 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>
|
||||
|
||||
@@ -1320,7 +1342,9 @@ 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>
|
||||
@@ -1329,12 +1353,14 @@ 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>
|
||||
@@ -1354,7 +1380,8 @@ 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>
|
||||
|
||||
@@ -1362,9 +1389,11 @@ 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>
|
||||
|
||||
@@ -1384,7 +1413,8 @@ 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>
|
||||
|
||||
@@ -1394,7 +1424,8 @@ 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>
|
||||
|
||||
@@ -1406,8 +1437,10 @@ if (isset($_POST['add_telemetry'])) {
|
||||
</div>
|
||||
<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>
|
||||
<?php foreach ($countries_array as $country_name) { ?>
|
||||
<option>
|
||||
<?php echo $country_name; ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -1429,7 +1462,8 @@ 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>
|
||||
|
||||
@@ -1439,7 +1473,8 @@ 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>
|
||||
|
||||
@@ -1451,7 +1486,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
</div>
|
||||
<select class="form-control select2" name="locale" required>
|
||||
<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>
|
||||
<?php } ?>
|
||||
</select>
|
||||
@@ -1466,7 +1501,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||
</div>
|
||||
<select class="form-control select2" name="currency_code" required>
|
||||
<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>
|
||||
<?php } ?>
|
||||
</select>
|
||||
@@ -1503,19 +1538,25 @@ 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>
|
||||
|
||||
@@ -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>
|
||||
</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('.')) {
|
||||
@@ -1561,23 +1609,23 @@ if (isset($_POST['add_telemetry'])) {
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
|
||||
<!-- jQuery -->
|
||||
<script src="plugins/jquery/jquery.min.js"></script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- Custom js-->
|
||||
<script src='plugins/select2/js/select2.min.js'></script>
|
||||
<script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="dist/js/adminlte.min.js"></script>
|
||||
<!-- jQuery -->
|
||||
<script src="plugins/jquery/jquery.min.js"></script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- Custom js-->
|
||||
<script src='plugins/select2/js/select2.min.js'></script>
|
||||
<script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="dist/js/adminlte.min.js"></script>
|
||||
|
||||
<!-- Custom js-->
|
||||
<script src="js/app.js"></script>
|
||||
<!-- Custom js-->
|
||||
<script src="js/app.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user