This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
executable file
·87 lines (76 loc) · 2.77 KB
/
install.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
$is_php4 = version_compare(PHP_VERSION, '5.0.0', '<');
define('LS_INST_PHP4', $is_php4);
if (!LS_INST_PHP4)
{
require "installer_files/libs/misc.php";
if (cli_detect())
{
cli_install();
die();
}
} else
{
$sapi = php_sapi_name();
if ($sapi == 'cli'
|| (array_key_exists('SHELL', $_SERVER) && strlen($_SERVER['SHELL']))
|| (!array_key_exists('DOCUMENT_ROOT', $_SERVER) || !strlen($_SERVER['DOCUMENT_ROOT']))
)
{
fwrite(STDOUT, "\n\nWELCOME TO THE LEMONSTAND INSTALLATION!\n\n");
fwrite(STDOUT, "We detected that your server is using PHP 4. We are sorry, but LemonStand requires PHP 5.\n");
fwrite(STDOUT, "To complete the installation you will need to upgrade this server to run PHP 5 and all other required libraries, or restart the installation on another server which meets all of the server requirements.\n");
die;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>LemonStand Installer</title>
<link rel="stylesheet" href="installer_files/resources/css/installer.css" type="text/css"/>
<script src="installer_files/resources/javascript/mootools.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="header">
<div class="wrapper">
<h1>LemonStand Installer</h1>
</div>
</div>
<?php
if (!LS_INST_PHP4)
output_install_page();
if (LS_INST_PHP4):
?>
<div id="page_header">
<div class="wrapper">
<h2>PHP 4 Detected</h2>
</div>
</div>
<div id="content">
<div class="wrapper">
<h3>We detected that your server is using PHP 4. We are sorry, but LemonStand requires PHP 5.</h3>
<p>To complete the installation you will need to upgrade this server to run PHP 5 and all other required libraries, or restart the installation on another server which meets all of the server requirements.</p>
<p>To install LemonStand your server must meet the following requirements:</p>
<ul class="bool_list bullets">
<li>PHP 5.2.5 or higher</li>
<li>PHP CURL library</li>
<li>PHP OpenSSL library</li>
<li>PHP Mcrypt library</li>
<li>PHP MySQL functions</li>
<li>PHP Multibyte String functions</li>
<li>Permissions for PHP to write to the installation directory</li>
</ul>
</div>
</div>
<?php endif ?>
<div id="footer">
<div class="wrapper">
<p>Copyright © <?= date('Y', time()) ?> LemonStand - All Rights Reserved</p>
<p class="right">LemonStand is a product by <a href="http://limewheel.com">Limewheel Creative</a></p>
<div class="clear"></div>
</div>
</div>
</body>
</html>