mirror of https://github.com/itflow-org/itflow
Updated setup to wotk with the automatically generated cron key used in the itflow install script
This commit is contained in:
parent
39b4bce09e
commit
48a660094c
11
setup.php
11
setup.php
|
|
@ -977,9 +977,20 @@ 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-'");
|
||||
|
||||
# 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'");
|
||||
|
||||
unlink('uploads/tmp/cronkey.php');
|
||||
}
|
||||
|
||||
//Create Some Data
|
||||
|
||||
mysqli_query($mysqli,"INSERT INTO accounts SET account_name = 'Cash', account_currency_code = '$currency_code'");
|
||||
|
|
|
|||
Loading…
Reference in New Issue