From 11f1ca70ee1ee83cb0bdcd424fdeaff6b116b90a Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Sat, 14 Sep 2019 23:00:49 -0400 Subject: [PATCH] Removed lingering php files --- invoice_old.php | 439 ------------------------------------------------ login_new.php | 162 ------------------ login_old.php | 151 ----------------- 3 files changed, 752 deletions(-) delete mode 100644 invoice_old.php delete mode 100644 login_new.php delete mode 100644 login_old.php 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"; - } - -?> - - - -
- -
-
- -
-
- -
-
- -
-
-
-
- From -
-
-
    -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
- Bill To -
-
-
    -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
- Details -
-
-
    -
  • Invoice Number:
  • -
  • Invoice Date:
  • -
  • Payment Due:
  • -
-
-
-
-
- - - -
-
-
-
- Items -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProductDescriptionQtyPriceTaxTotal
$$$
- -
-
-
-
- -
-
-
-
- Notes -
-
-
- - - -
-
-
-
- - - - - - - 0){ ?> - - - - - - 0){ ?> - - - - - - 0){ ?> - - - - - - - - - - -
Subtotal$
Discount$
Tax$
Paid to Date
$
Balance Due$
-
-
- -
- -
-
-
-
- History -
-
- - - - - - - - - - - - - - - - - - -
DateStatusDescription
-
-
-
-
-
-
- Payments -
-
- - - - - - - - - - - - - - - - - - - -
DateAmountAccountAction
$
-
-
-
-
- - - - - - - - - - \ 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. - -
- "; - } -} - -?> - - - - - - - - - - - <?php echo $config_app_name; ?> | 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. - -
- "; - } -} - -?> - - - - - - - - - - - <?php echo $config_app_name; ?> | Login - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - -