diff --git a/README.md b/README.md index 22dcb1cd..5e0f2b2e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ CRM, Accounting and Invoicing System for small managed IT companies * Apps * Networks * Files - * Technical Notes + * Documentation * Invoicing * Email Past Due Reminders * Auto Email Receipts upon payments @@ -47,8 +47,10 @@ CRM, Accounting and Invoicing System for small managed IT companies * Clone this repo * Create a Mysql database -* Point your browser to setup.php fill in the info -* Your Done! +* Point your browser to the URL where you downloaded the crm +* Go through the Setup Process +* Login +* Start inputting some data #### Requirements * Webserver (Apache, NGINX) @@ -59,7 +61,6 @@ CRM, Accounting and Invoicing System for small managed IT companies * PHP/MySQL * SB Admin Bootstrap CSS Framework * fontawesome -* datatables * chart.js * moments.js * Jquery diff --git a/check_login.php b/check_login.php index 096b3aa7..e4a1b5ae 100644 --- a/check_login.php +++ b/check_login.php @@ -30,9 +30,6 @@ include("get_settings.php"); - $_SESSION['alert_message'] = ''; - $_SESSION['alert_type'] = "warning"; - //Detects if using an apple device and uses apple maps instead of google $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); diff --git a/get_settings.php b/get_settings.php index 87baede7..f3d1e6f4 100644 --- a/get_settings.php +++ b/get_settings.php @@ -56,6 +56,7 @@ $config_default_net_terms = $row['config_default_net_terms']; $config_recurring_auto_send_invoice = $row['config_recurring_auto_send_invoice']; $config_api_key = $row['config_api_key']; +$config_base_url = $row['config_base_url']; $config_enable_cron = $row['config_enable_cron']; $client_types_array = array( diff --git a/guest_header.php b/guest_header.php index 6a00bd78..6f6f27f6 100644 --- a/guest_header.php +++ b/guest_header.php @@ -35,4 +35,4 @@
-
\ No newline at end of file +
\ No newline at end of file diff --git a/header.php b/header.php index 790e6ace..75b2a199 100644 --- a/header.php +++ b/header.php @@ -80,7 +80,7 @@ //Alert Feedback if(!empty($_SESSION['alert_message'])){ ?> -
+
diff --git a/post.php b/post.php index 277cba7a..1ff34c29 100644 --- a/post.php +++ b/post.php @@ -86,7 +86,7 @@ if(isset($_POST['add_company'])){ mysqli_query($mysqli,"INSERT INTO settings SET company_id = $company_id, config_company_name = '$name', config_invoice_prefix = 'INV-', config_invoice_next_number = 1, config_invoice_overdue_reminders = '1,3,7', config_quote_prefix = 'QUO-', config_quote_next_number = 1, config_api_key = '$config_api_key', config_recurring_auto_send_invoice = 1, config_default_net_terms = 7, config_send_invoice_reminders = 0, config_enable_cron = 0, config_ticket_next_number = 1, config_base_url = '$config_base_url'"); - $_SESSION['alert_message'] = "Company added"; + $_SESSION['alert_message'] = "Company $name created!"; header("Location: companies.php"); @@ -98,7 +98,7 @@ if(isset($_POST['edit_company'])){ mysqli_query($mysqli,"UPDATE companies SET company_name = '$name', company_updated_at = NOW() WHERE company_id = $company_id"); - $_SESSION['alert_message'] = "Company modified"; + $_SESSION['alert_message'] = "Company $name updated!"; header("Location: companies.php"); @@ -777,6 +777,7 @@ if(isset($_GET['delete_category'])){ mysqli_query($mysqli,"DELETE FROM categories WHERE category_id = $category_id"); $_SESSION['alert_message'] = "Category deleted"; + $_SESSION['alert_type'] = "danger"; header("Location: " . $_SERVER["HTTP_REFERER"]);