Add correct url(subdiretory included) in config page
This commit is contained in:
@@ -73,6 +73,10 @@ if (!$err && $_SESSION['install']['step'] != $step) {
|
||||
|
||||
$_SESSION['install']['step'] = $step;
|
||||
|
||||
// Retrieve the website url
|
||||
$url = $_SERVER['PHP_SELF'];
|
||||
$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url);
|
||||
|
||||
?>
|
||||
<form action="end.php" method="POST" >
|
||||
<div class="well">
|
||||
@@ -98,7 +102,7 @@ $_SESSION['install']['step'] = $step;
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="site_name">website url :</label>
|
||||
<input id="site_name" class="form-control" type="text" name="url_site" placeholder="" value="http://<?php echo $_SERVER['SERVER_NAME']; ?>" required>
|
||||
<input id="site_name" class="form-control" type="text" name="url_site" placeholder="" value="http://<?php echo $_SERVER['SERVER_NAME'].$website_url; ?>" required>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<div class="control-btn">
|
||||
|
||||
Reference in New Issue
Block a user