-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathenvironment_local.php
More file actions
executable file
·28 lines (20 loc) · 805 Bytes
/
environment_local.php
File metadata and controls
executable file
·28 lines (20 loc) · 805 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
<?php
require_once('../config.php');
require('lib/Translation.class.php');
$benchmark_start = microtime_float();
$source = CONTENTDIR."api_en/environment/";
$path = DISTDIR."/environment/";
$page = new LocalPage('Environment (IDE)', 'Environment', 'Environment', '../');
$page->content(file_get_contents($source.'index.html'));
$page->language('en');
writeFile($path.'index.html', $page->out());
if (is_dir(DISTDIR.'environment/images')) {
rmdir(DISTDIR.'environment/images');
}
mkdir(DISTDIR.'environment/images', 0755);
copydirr($source.'images', DISTDIR.'environment/images');
$benchmark_end = microtime_float();
$execution_time = round($benchmark_end - $benchmark_start, 4);
?>
<h2>Local environment page generation successful!</h2>
<p>Generated files in <?=$execution_time?> seconds.</p>