Simple PHP api for SnipeIT app. Not maintained anymore; check out BinStack instead: https://source.netsyms.com/Business/BinStack and https://netsyms.biz/binstack
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.

readfrom.php 445B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Filter table info to sane choices. You could add aliases if you like.
  4. * The app uses all of these variations because I'm lazy and just pass label text.
  5. */
  6. switch ($from) {
  7. case 'accessories':
  8. case 'accessory':
  9. case 'acc':
  10. $from = 'accessories';
  11. break;
  12. case 'consumables':
  13. case 'consumable':
  14. case 'con':
  15. $from = 'consumables';
  16. break;
  17. default:
  18. $from = 'assets';
  19. }