-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
163 lines (163 loc) · 7.03 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php
require "inc/ListAbstract.php";
require "inc/Timezone.php";
require "inc/Currency.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Generate Install Magento Command line</title>
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="js/jquery/jquery-ui-1.11.4.custom/jquery-ui.min.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/tooltipster.css" />
<script type="text/javascript" src="js/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery-ui-1.11.4.custom/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.tooltipster.min.js"></script>
</head>
<body>
<div class="wrapper" id="main">
<h1>Generation command line string for installing Magento 2</h1>
<form id="generate-input" method="post" action="action.php">
<div class="col">
<h3>Admin info:</h3>
<ul class="list">
<li class="items"><label>Base Url:</label> <input type="text"
name="base-url" class="require" />
<p class="note">
Example:<br>http://127.0.0.1/your_Magento_install_dir
</p></li>
<li class="items">
<label>Backend Frontname:</label>
<input type="text" name="backend-frontname" class="require" value="admin" />
<p class="note">Example: admin, backend...</p>
</li>
<li class="items"><label>Admin User:</label> <input type="text"
name="admin-user" class="require" /></li>
<li class="items"><label>Admin password:</label> <input type="text"
name="admin-password" class="require" /></li>
<li>
<h3>Optional:</h3>
<ul class="sub-list optional-list">
<li class="items"><label>Admin First name:</label> <input
type="text" name="admin-firstname" class="require" value="Admin" />
</li>
<li class="items"><label>Admin last name:</label> <input
type="text" name="admin-lastname" class="require" value="User" />
</li>
<li class="items"><label>Admin Email:</label> <input type="text"
name="admin-email" class="require" value="someone@admin.com" /></li>
</ul>
</li>
</ul>
<h3>Database Info:</h3>
<ul class="list">
<li class="items"><label>Host:</label> <input type="text"
name="db-host" class="require" value="localhost" />
<p class="note">
<span class="code">localhost</span> is default if your database
server is on the same host as your web server.
</p></li>
<li class="items"><label>Database name:</label> <input type="text"
name="db-name" class="require" value="magento2" />
<p class="note">
Default is <span class="code">magento2</span>
</p></li>
<li class="items"><label>Database User:</label> <input type="text"
name="db-user" class="require" value="root" />
<p class="note">
User name of the Magento database instance owner. Default is <span
class="code">root</span>.
</p></li>
<li class="items"><label>Database Password:</label> <input
type="text" name="db-password" class="require" /></li>
<li class="items"><label>Database Prefix:</label> <input type="text"
name="db-prefix" />
<p class="note">
Use only if you're installing the Magento database tables in a
database instance that has Magento tables in it already.
<br /> In that case, use a prefix to identify the Magento tables for this
installation. Some customers have more than one Magento instance
running on a server with all tables in the same database.
<br /> This option enables those customers to share the database server
with more than one Magento installation.
</p></li>
</ul>
</div>
<div class="col">
<ul class="list">
<li class="items"><label>Language:</label> <input type="text"
name="language" class="require" value="en_US" />
<p class="note">
Language code to use in the Admin and storefront.
<br/>
You can view the list of language codes by entering
<span class="code">php bin/magento info:language:list</span>
from your root magento folder.
</p>
</li>
<li class="items">
<label>Currency:</label>
<select name="currency" class="require">
<?php $list = new Currency();?>
<?php foreach($list->getOptions() as $option):?>
<?php $selected = ($option['value'] == "USD") ? 'selected="selected"' : ''; ?>
<option <?php echo $selected; ?> value="<?php echo $option['value']?>"><?php echo $option['label'];?></option>
<?php endforeach;?>
</select>
<p class="note">
Default currency to use in the storefront.
<br/>
you can view the list of currencies by entering
<span class="code">php bin/magento info:currency:list</span>
from your root magento folder.
</p>
</li>
<li class="items">
<label>Timezone:</label>
<select name="timezone" class="require">
<?php $list = new Timezone();?>
<?php foreach($list->getOptions() as $option):?>
<?php $selected = ($option['value'] == "America/New_York") ? 'selected="selected"' : ''; ?>
<option <?php echo $selected; ?> value="<?php echo $option['value']?>"><?php echo $option['label'];?></option>
<?php endforeach;?>
</select>
<p class="note">
Default time zone to use in the Admin and storefront
<br/>
You can view the list of timezone codes by entering
<span class="code">php bin/magento info:timezone:list</span>
from your root magento folder.
</p>
</li>
<li class="items"><label>Use rewrites:</label>
<input type="checkbox" checked="checked" name="use-rewrites" class="checkbox" value="1" />
<p class="note">
<span class="code">1</span> means you use web server rewrites for generated links in the storefront and Admin.
<br>
<span class="code">0</span> disables the use of web server rewrites. This is the default.
</p>
</li>
<li class="items"><label>Use Sample data:</label>
<input type="checkbox" checked="checked" name="use-sample-data" class="checkbox" value="_not_need_value" />
</li>
<li class="items"><label>Cleanup database:</label>
<input type="checkbox" checked="checked" name="cleanup-database" class="checkbox" value="_not_need_value" />
</li>
<li class="items"><label>Use secure:</label>
<input type="checkbox" name="use-secure" class="checkbox" value="1" />
<p class="note">
<span class="code">1</span> enables the use of Secure Sockets Layer (SSL) in all URLs (both Admin and storefront). Make sure your web server supports SSL before you select this option.
<br>
<span class="code">0</span> disables the use of SSL with Magento. This is the default.
</p>
</li>
</ul>
</div>
<button type="submit">Generate</button>
<button type="reset">Load Default Configuration</button>
</form>
</div>
</body>
<script type="text/javascript" src="js/scripts.js"></script>
</html>