aboutsummaryrefslogtreecommitdiff
path: root/command/download.php
blob: 8cc2f53b837ab05e678939f8de7644317253e109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

$conf = $GLOBALS['CONFIG']['DOWNLOAD'];

if(isset($conf['REQUIRE_USER']))
{
	if(get_current_user() != $conf['require-user'])
	{
		stderr(
			'Not downloading files for user %s, run this script as user %s',
			get_current_user(),
			$conf['require-user']
		);
		exit(2);
	}
}

foreach (Conferences::getConferences() as $conference)
{
	stdout('== %s ==', $conference->getSlug());

	if(isset($conf['MAX_CONFERENCE_AGE']))
	{
		date_diff()
		return time() >= $this->endsAt();
	}

}