An easy point of sale system with automatic inventory tracking. https://netsyms.biz/apps/nickelbox/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

action.php 588B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Make things happen when buttons are pressed and forms submitted.
  4. */
  5. require_once __DIR__ . "/required.php";
  6. dieifnotloggedin();
  7. function returnToSender($msg, $arg = "") {
  8. global $VARS;
  9. if ($arg == "") {
  10. header("Location: app.php?page=" . urlencode($VARS['source']) . "&msg=" . $msg);
  11. } else {
  12. header("Location: app.php?page=" . urlencode($VARS['source']) . "&msg=$msg&arg=$arg");
  13. }
  14. die();
  15. }
  16. switch ($VARS['action']) {
  17. case "signout":
  18. session_destroy();
  19. header('Location: index.php');
  20. die("Logged out.");
  21. }