Stable 2-ago-2023
This commit is contained in:
27
service/auto.php
Normal file
27
service/auto.php
Normal 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;
|
||||
Reference in New Issue
Block a user