loadDriver.php 335 B

1234567891011121314151617181920
  1. <?php
  2. include '../auth.php';
  3. ?>
  4. <?php
  5. if (isset($_GET['tp']) && $_GET['tp'] != ""){
  6. $id = $_GET['tp'];
  7. if (file_exists("driver/$id")){
  8. $content = file_get_contents("driver/$id");
  9. header('Content-Type: application/json');
  10. echo json_encode($content);
  11. }else{
  12. echo "NOT FOUND";
  13. }
  14. }else{
  15. echo "Not enough parameter";
  16. }
  17. ?>