mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Thanks to iveinsomnia. Closes #165
This commit is contained in:
@@ -386,6 +386,8 @@ class e_install
|
||||
// $page_info = nl2br(LANINS_023);
|
||||
$page_info = "<div class='alert alert-block alert-info'>Please fill in the form below with your MySQL details. If you do not know this information, please contact your hosting provider. You may hover over each field for additional information.</div>";
|
||||
$e_forms->start_form("versions", $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING'] == "debug" ? "?debug" : ""));
|
||||
$isrequired = (($_SERVER['SERVER_ADDR'] == "127.0.0.1") || ($_SERVER['SERVER_ADDR'] == "localhost")) ? "" : "required='required'"; // + regex for 198.168.x.x
|
||||
|
||||
$output = "
|
||||
<div style='width: 100%; padding-left: auto; padding-right: auto;'>
|
||||
<table class='table table-striped' >
|
||||
@@ -408,7 +410,7 @@ class e_install
|
||||
<tr>
|
||||
<td><label for='password'>".LANINS_026."</label></td>
|
||||
<td>
|
||||
<input class='tbox' type='password' name='password' size='40' id='password' value='' maxlength='100' required='required' />
|
||||
<input class='tbox' type='password' name='password' size='40' id='password' value='' maxlength='100' {$isrequired} />
|
||||
<span class='field-help'>".LANINS_032."</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user