ajax.php 450 B

1234567891011121314151617181920212223242526
  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'] == 'checkLatestVersion')
  17. {
  18. $facturisSync->checkLatestVersion();
  19. }
  20. }