Quote: Originally Posted by
transit
Thank you!
Maybe you could upload the file onto another mirror? Very much appreciated. Or maybe you could post the install.php code here.
K here you have ^^¨have fun
[code]
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Install Hablog</title>
<?
$hostfile=getenv( REMOTE_ADDR );
if("$hostfile" == "127.0.0.1") {
$port=$_POST[port];
$db=$_POST[db];
$name=$_POST[name];
if("$db" == "") {
}else{
include("configuration/cms.php");
$configs=file_get_contents('configuration\cms.php');
$configs=str_replace('$hotel_path="'.$hotel_path.'', '$hotel_path="'.$db.'', $configs);
$configs=str_replace('$hotel_path="'.$hotel_port.'', '$hotel_port="'.$port.'', $configs);
$configs=str_replace('$hotel_path="'.$hotel_name.'', '$hotel_name="'.$name.'', $configs);
if (!$handle = fopen("configuration\cms.php", 'w')) {
exit;
}
if (fwrite($handle, $configs) === FALSE) {
exit;
}
fclose($handle);
}
echo"<br><br><br><br><center><img src='http://localhost/web-gallery/v2/styles/images/habbo.png'></center><br>";
}else{
echo"<br><br><br><br><br><br><br><br><br><br><br><center><img src='http://localhost/web-gallery/v2/styles/images/habbo.png'></center><br>";
}
?>
<style type="text/css">
<!--
body
{
color: #000;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 11px;
background-color: #2C708F;
margin: 0px;
padding: 30px 50px 30px 50px;
}
h1
{
color: #FFF;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 14px;
font-weight: bold;
}
#contentbody
{
background-color: #E59E0F;
padding: 14px;
border: 1px solid black;
}
-->
</style>
</head>
<body>
<div id="contentbody">
<div id="content">
<h1>The hotel is not installed</h1>
<p>
Sorry - Hablog Hotel is not installed. If you are the owner of this hotel please install the CMS on http://127.0.0.1/ in just 3 steps!<br>
</p>
</div>
</div><?
$hostfile=getenv( REMOTE_ADDR );
if("$hostfile" == "127.0.0.1") {
}else{
exit;
}
?>
<br><br>
<div id="contentbody">
<div id="content">
<h1>Administratored installer</h1>
<p>
<form method="post" action="?do">
</tr>
<td width='100' class='tbl'>Port: (The settings.ini in DB folder needs a change)<br></td>
<td width='80%' class='tbl'><input type='text' name='port' value='147' class='text' style='width: 240px'><br></td>
<br>
<td width='100' class='tbl'>Path where the DB folder is: (Have a look in the Hablog Server CMD you find the path u need)<br></td>
<td width='80%' class='tbl'><input type='text' name='db' value='C:\HABLOG\SERVER' class='text' style='width: 240px'><br></td>
</tr>
<br>
<td width='100' class='tbl'>Hotel Name: (Choose a Hotel name u want)<br></td>
<td width='80%' class='tbl'><input type='text' name='name' value='Hotel name here' class='text' style='width: 240px'><br></td>
</tr>
</tr><br>
<input type='submit' name='addnew' value='Submit' class='submit'>
</form>
</p>
</div>
</div>
</body>
</html>