Stable 2-ago-2023

This commit is contained in:
2023-08-02 09:12:46 -06:00
parent 6a7c6b7ed9
commit f0cc3c585d
60 changed files with 6497 additions and 908 deletions

27
service/auto.php Normal file
View File

@@ -0,0 +1,27 @@
<?
$ruta = "../";
require_once "$ruta/include/bd_pdo.php";
header('Content-Type: application/json');
// json data from service\periodos.v1.php (input)
$urls = array(
'periodos.v1',
'periodos.v2',
'horarios',
);
$urls = array_map(fn($item) => "../$item.php", $urls);
ob_start();
include_once 'periodos.v1.php';
$periodos_v1 = ob_get_contents();
ob_end_clean();
ob_start();
include_once 'periodos.v2.php';
$periodos_v2 = ob_get_contents();
ob_end_clean();
// echo $periodos_v1;
echo $periodos_v2;