|
@@ -1,8 +1,12 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
$fecha = date('d_m_Y');
|
|
$fecha = date('d_m_Y');
|
|
|
|
|
+require_once 'class/c_login.php';
|
|
|
|
|
+if (!isset($_SESSION['user'])){
|
|
|
|
|
+ die(header('Location: index.php'));
|
|
|
|
|
+}
|
|
|
header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
|
-header("Content-Disposition: attachment;filename=horario_$fecha.xlsx");
|
|
|
|
|
|
|
+header("Content-Disposition: attachment;filename=solicitudes_$fecha.xlsx");
|
|
|
header("Cache-Control: max-age=0");
|
|
header("Cache-Control: max-age=0");
|
|
|
|
|
|
|
|
require_once "../vendor/autoload.php";
|
|
require_once "../vendor/autoload.php";
|