diff --git a/invoice_old.php b/invoice_old.php
deleted file mode 100644
index e16b532d..00000000
--- a/invoice_old.php
+++ /dev/null
@@ -1,439 +0,0 @@
-
-
-
Nothing to see here
";
- }else{
-
- $row = mysqli_fetch_array($sql);
- $invoice_id = $row['invoice_id'];
- $invoice_number = $row['invoice_number'];
- $invoice_status = $row['invoice_status'];
- $invoice_date = $row['invoice_date'];
- $invoice_due = $row['invoice_due'];
- $invoice_amount = $row['invoice_amount'];
- $invoice_note = $row['invoice_note'];
- $invoice_url_key = $row['invoice_url_key'];
- $category_id = $row['category_id'];
- $client_id = $row['client_id'];
- $client_name = $row['client_name'];
- $client_address = $row['client_address'];
- $client_city = $row['client_city'];
- $client_state = $row['client_state'];
- $client_zip = $row['client_zip'];
- $client_email = $row['client_email'];
- $client_phone = $row['client_phone'];
- if(strlen($client_phone)>2){
- $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4);
- }
- $client_website = $row['client_website'];
- $client_net_terms = $row['client_net_terms'];
- if($client_net_terms == 0){
- $client_net_terms = $config_default_net_terms;
- }
-
- $sql_history = mysqli_query($mysqli,"SELECT * FROM history WHERE invoice_id = $invoice_id ORDER BY history_id DESC");
-
- $sql_payments = mysqli_query($mysqli,"SELECT * FROM payments, accounts WHERE payments.account_id = accounts.account_id AND payments.invoice_id = $invoice_id ORDER BY payments.payment_id DESC");
-
- //Add up all the payments for the invoice and get the total amount paid to the invoice
- $sql_amount_paid = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS amount_paid FROM payments WHERE invoice_id = $invoice_id");
- $row = mysqli_fetch_array($sql_amount_paid);
- $amount_paid = $row['amount_paid'];
-
- $balance = $invoice_amount - $amount_paid;
-
- //check to see if overdue
- if($invoice_status !== "Paid" AND $invoice_status !== "Draft" AND $invoice_status !== "Cancelled"){
- $unixtime_invoice_due = strtotime($invoice_due) + 86400;
- if($unixtime_invoice_due < time()){
- $invoice_overdue = "Overdue";
- }
- }
-
- //Set Badge color based off of invoice status
- if($invoice_status == "Sent"){
- $invoice_badge_color = "warning text-white";
- }elseif($invoice_status == "Viewed"){
- $invoice_badge_color = "info";
- }elseif($invoice_status == "Partial"){
- $invoice_badge_color = "primary";
- }elseif($invoice_status == "Paid"){
- $invoice_badge_color = "success";
- }elseif($invoice_status == "Cancelled"){
- $invoice_badge_color = "danger";
- }else{
- $invoice_badge_color = "secondary";
- }
-
-?>
-
-
- -
- Invoices
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Date |
- Status |
- Description |
-
-
-
-
-
- |
- |
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Date |
- Amount |
- Account |
- Action |
-
-
-
-
-
- |
- $ |
- |
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/login_new.php b/login_new.php
deleted file mode 100644
index 18c28f33..00000000
--- a/login_new.php
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
- Invalid Code.
-
-
- ";
- }
- }
-
- }else{
- mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Login', log_action = 'Failed', log_description = '$email - $ip - $os - $browser - $device', log_created_at = NOW()");
-
- $response = "
-
- Incorrect email or password.
-
-
- ";
- }
-}
-
-?>
-
-
-
-
-
-
-
-
-
-
- | Login
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/login_old.php b/login_old.php
deleted file mode 100644
index 40f77aa4..00000000
--- a/login_old.php
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
-
-
-
-
- Invalid Code.
-
-
- ";
- }
- }
-
- }else{
- mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Login', log_action = 'Failed', log_description = '$email - $ip - $os - $browser - $device', log_created_at = NOW()");
-
- $response = "
-
- Incorrect email or password.
-
-
- ";
- }
-}
-
-?>
-
-
-
-
-
-
-
-
-
-
- | Login
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-