ajax.php 534 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. include_once('config.php');
  3. include_once('autoloader.php');
  4. $db = new Database();
  5. $facturisSync = new FacturisSync($db);
  6. if(isset($_GET['action']))
  7. {
  8. if($_GET['action'] == 'testAuth')
  9. {
  10. $facturisSync->testAuth();
  11. }
  12. if($_GET['action'] == 'getPdlGestiuni')
  13. {
  14. $facturisSync->getPdlGestiuni();
  15. }
  16. if($_GET['action'] == 'getPdls')
  17. {
  18. $facturisSync->getPdls();
  19. }
  20. if($_GET['action'] == 'checkLatestVersion')
  21. {
  22. $facturisSync->checkLatestVersion();
  23. }
  24. }