-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathcover.php
More file actions
executable file
·33 lines (25 loc) · 822 Bytes
/
Copy pathcover.php
File metadata and controls
executable file
·33 lines (25 loc) · 822 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
25
26
27
28
29
30
31
32
33
<?php
require_once('../config.php');
DEFINE('COVER', true);
//require_once('updates.php');
//if (!defined('SUBMIT')) {
// require_once('happenings.php');
// require_once('courses.php');
//}
require_once('exhibition.php');
$benchmark_start = microtime_float();
$page = new Page('', 'Cover');
$page->subtemplate('template.cover.html');
//$page->set('updates', get_updates(24));
//$page->set('happenings', get_happenings(5));
//$page->set('courses', get_courses_short(5));
$page->set('exhibition', get_curated_short());
writeFile("index.php", $page->out());
$benchmark_end = microtime_float();
$execution_time = round($benchmark_end - $benchmark_start, 4);
if (!defined('SUBMIT')) {
echo <<<EOC
<h2>Index.php Generation Successful</h2> <p>Generator took $execution_time seconds to execute</p>
EOC;
}
?>