forked from unfoldingWord-dev/Door43
/
bootstrap.php
52 lines (43 loc) · 1.19 KB
/
bootstrap.php
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// Turn off output buffering
ini_set('output_buffering', 'off');
// Turn off PHP output compression
ini_set('zlib.output_compression', false);
//Flush (send) the output buffer and turn off output buffering
//ob_end_flush();
while (@ob_end_flush());
// Implicitly flush the buffer(s)
ini_set('implicit_flush', true);
ob_implicit_flush(true);
//prevent apache from buffering it for deflate/gzip
header( 'Content-type: text/html; charset=utf-8' );
header('Cache-Control: no-cache'); // recommended to prevent caching of event data.
for($i = 0; $i < 1000; $i++)
{
echo ' ';
}
flush();
/// Now start the program output
?>
<head>
<title>Bootstrap</title>
</head>
<body>
<?php
echo 'Putting config files in place...<br/>';
echo `cp conf/local.php.dev conf/local.php`;
echo `cp conf/plugins.local.php.dev conf/plugins.local.php`;
echo `cp conf/acl.auth.php.dev conf/acl.auth.php`;
echo `cp conf/users.auth.php.dev conf/users.auth.php`;
flush();
echo 'Making git configurations...<br/>';
echo `git config core.fileMode false`;
flush();
echo 'Pulling submodules...<br/>';
echo `git submodule init`;
echo `git submodule update`;
?>
<p>
OK! Proceed to <a href="home">Home page</a>
</p>
</body>