booking/daily_user_d.php

22 lines
652 B
PHP
Executable File

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