booking/serv_come_inv.php

25 lines
581 B
PHP
Executable File

<?php
require_once('fixed/config/go_con.php');
access(70);
$today = date("Y-m");
if (!empty($_GET['date'])) {
$today = $_GET['date'];
if (DateTime::createFromFormat('Y-m', $today) == false) {
$today = date("Y-m");
}
}
if ($_GET['m'] == 50) {
require_once('work/files/reports/serv_come_inv/3.php');
} else {
if (strtotime($today) < strtotime('2023-01-01 00:00:00')) {
require_once('work/files/reports/serv_come_inv/1.php');
}
else {
require_once('work/files/reports/serv_come_inv/2.php');
}
}