-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpinfo.php
More file actions
24 lines (19 loc) · 841 Bytes
/
phpinfo.php
File metadata and controls
24 lines (19 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
declare(strict_types=1);
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
require_once('vendor/autoload.php');
include("includes/or-theme.php");
if(password_verify('eejohk3aer','$2y$10$cuOcw19BExoXTM8H3zfQtekhQoo8GKd9XDeGmY5fVusRTtAlwgqAm'))
{
echo "good job!";
}
$data = \model\Reservation::getAllReservationsForUser(\model\Db::getInstance(), "kushal");
highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n?>");
$starttime = strtotime($data[0]['start']);
$endtime = strtotime($data[0]['end']);
highlight_string("<?php\n\$starttime =\n" . var_export($starttime, true) . ";\n?>");
highlight_string("<?php\n\$endtime =\n" . var_export($endtime, true) . ";\n?>");
$interval = ($endtime - $starttime + 1) / 60;
highlight_string("<?php\n\$interval =\n" . var_export($interval, true) . ";\n?>");