Adds time range helper function
parent
8765fe22c0
commit
8e123cf5f2
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
$time_range_specified = false;
|
||||
if (!isset($_REQUEST['from_time']) || (isset($_REQUEST['from_time']) && $_REQUEST['from_time'] == '')) {
|
||||
$from_time = '0000-01-01';
|
||||
} else {
|
||||
$from_time = $_REQUEST['from_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
if (!isset($_REQUEST['until_time']) || (isset($_REQUEST['until_time']) && $_REQUEST['until_time'] == '')) {
|
||||
$until_time = '9999-12-31';
|
||||
} else {
|
||||
$until_time = $_REQUEST['until_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
|
||||
?>
|
|
@ -7,20 +7,8 @@ require 'classes/component.php';
|
|||
require 'helpers/database.php';
|
||||
$db = connectDB($config, 'jilo');
|
||||
|
||||
// FIXME move thi sto a special function
|
||||
$time_range_specified = false;
|
||||
if (!isset($_REQUEST['from_time']) || (isset($_REQUEST['from_time']) && $_REQUEST['from_time'] == '')) {
|
||||
$from_time = '0000-01-01';
|
||||
} else {
|
||||
$from_time = $_REQUEST['from_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
if (!isset($_REQUEST['until_time']) || (isset($_REQUEST['until_time']) && $_REQUEST['until_time'] == '')) {
|
||||
$until_time = '9999-12-31';
|
||||
} else {
|
||||
$until_time = $_REQUEST['until_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
// specify time range
|
||||
include 'helpers/time_range.php';
|
||||
|
||||
// jitsi component events list
|
||||
// we use $_REQUEST, so that both links and forms work
|
||||
|
|
|
@ -7,20 +7,8 @@ require 'classes/conference.php';
|
|||
require 'helpers/database.php';
|
||||
$db = connectDB($config, 'jilo');
|
||||
|
||||
// FIXME move thi sto a special function
|
||||
$time_range_specified = false;
|
||||
if (!isset($_REQUEST['from_time']) || (isset($_REQUEST['from_time']) && $_REQUEST['from_time'] == '')) {
|
||||
$from_time = '0000-01-01';
|
||||
} else {
|
||||
$from_time = $_REQUEST['from_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
if (!isset($_REQUEST['until_time']) || (isset($_REQUEST['until_time']) && $_REQUEST['until_time'] == '')) {
|
||||
$until_time = '9999-12-31';
|
||||
} else {
|
||||
$until_time = $_REQUEST['until_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
// specify time range
|
||||
include 'helpers/time_range.php';
|
||||
|
||||
// conference id/name are specified when searching specific conference(s)
|
||||
// either id OR name, id has precedence
|
||||
|
|
|
@ -7,20 +7,8 @@ require 'classes/participant.php';
|
|||
require 'helpers/database.php';
|
||||
$db = connectDB($config, 'jilo');
|
||||
|
||||
// FIXME move thi sto a special function
|
||||
$time_range_specified = false;
|
||||
if (!isset($_REQUEST['from_time']) || (isset($_REQUEST['from_time']) && $_REQUEST['from_time'] == '')) {
|
||||
$from_time = '0000-01-01';
|
||||
} else {
|
||||
$from_time = $_REQUEST['from_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
if (!isset($_REQUEST['until_time']) || (isset($_REQUEST['until_time']) && $_REQUEST['until_time'] == '')) {
|
||||
$until_time = '9999-12-31';
|
||||
} else {
|
||||
$until_time = $_REQUEST['until_time'];
|
||||
$time_range_specified = true;
|
||||
}
|
||||
// specify time range
|
||||
include 'helpers/time_range.php';
|
||||
|
||||
// participant id/name/IP are specified when searching specific participant(s)
|
||||
// participant name - this is 'stats_id' in the db
|
||||
|
|
Loading…
Reference in New Issue