forked from SiSGroup/OnApp-PHP-Frontend
/
1.php
executable file
·54 lines (47 loc) · 1.57 KB
/
1.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
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8" />
<title>Installation</title>
<style type="text/css">
table, .table {
width:900px;
background: #f6f6f6;
padding:10px;
margin:0 auto;
}
.yes{
color:green;
font-weight:bold
}
.red{
color:red;
}
</style>
</head>
<body>
<div class="table">This page reminds you to set correctly you virtual host in order your .htaccess file work in this directory!<br />
You must change <b>'AllowOverride None'</b> to <b>'AllowOverride All'</b> in you server config file!
<br />
<?php echo '<pre>
DocumentRoot /var/www /:yourhost
<Directory /var/www/:yourhost>
Options Indexes FollowSymLinks MultiViews
AllowOverride <b style="color:red">All</b>
Order allow,deny
allow from all
</Directory>
</pre>'; ?>
<?php $base = (
( isset($_SERVER['HTTPS'])
&& strtolower($_SERVER['HTTPS']) !== 'off'
? 'https://'
: 'http://'
) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']
);
$base = preg_replace('/1|index.php/', '', $base);?>
<b>If everything good restart your server, delete or rename "1.php" file</b> and follow the link <a href="<?php echo $base ?>" >Link</a>
</div>
</body>
</html>