Viewing file: data.php (2.75 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Copyright 2008 Grestul Group
* Powered by Grestul
**/
define('GRESTUL_ROOT', dirname(dirname(__FILE__))."/");
/* Check if lock exists */
if (file_exists('lock')) {
echo "<title>";
echo 'Grestul error';
echo "</title>";
echo "<strong>";
echo '<h1>Grestul Error!</h1>';
echo '<style type="text/css"> p {text-indent:50px; } </style><h2><p>Security notice:</p></h2>';
echo '<p>You must remove the lock from the installer to continue installation.</p>';
echo "</strong>";
echo '<hr width="700" align="left">';
echo 'Grestul ';
include ('version.php');
return;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grestul Installation</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="contain">
<div class="logo">
</div>
<div class="main">
<div class="header">Installation Status</div>
<div class="nav">
<ul>
<li class="com">Overview</li>
<li class="com">License Agreement</li>
<li class="com">Requirements</li>
<li class="on">Database Info</li>
<li>Create Tables</li>
<li>Create Admin</li>
<li>Complete Install</li>
</ul>
</div>
<div class="content">
<h3 class="data">Database Information</h3>
<div class="note"> http:// is required for the path option!</div>
<table>
<tr class="alt_row">
<td>Path (E.g http://domain.com/comment) no '/' on end:</td>
<?php
echo '<form method="post" action="post.php">';
echo '<td>';
echo '<input type="text" name="domain" id="domain" size="20"';
echo ' value="';
echo "http://$domain";
echo '"';
echo " />";
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>Host (usually localhost):</td>';
echo '<td>';
echo '<input type="text" name="host" id="host" size="20"';
echo ' value="';
echo "$host";
echo '"';
echo " />";
echo '</td>';
echo '</tr>';
?>
<tr class="alt_row">
<td>Database User:</td>
<td><input type="text" name="dbuser" size="20" value="<? echo "$dbuser"; ?>" /></td>
</tr>
<tr>
<td>Database Password:</td>
<td><input type="text" name="dbpass" size="20" value="<? echo "$dbpass"; ?>" />
</td>
</tr>
<tr class="alt_row">
<td>Database name:</td>
<td><input type="text" name="dbname" size="20" value="<? echo "$dbname"; ?>" /></td>
</tr>
</table>
<div class="next"><input type="submit" name="sub" class="submit" value="Continue" /></div><br style="clear: both;" />
</form>
</div>
<div class="footer">
Copyright © 2008 Grestul Group
</div>
</div>
</div>
</body>
</html>
|