Viewing file: finish.php (3.07 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__))."/");
if (isset($_POST['sub'])) {
// Update the settings file
$str = "<?php
/**
* Copyright 2008 Grestul Group
* Powered by Grestul
**/\n
// Please use the visual Installer to install this software
// If Grestul is already installed please use the admin panel to modify this information\n";
foreach ($_POST as $k=>$v)
{
if ($k != 'sub') // ignore submit button
{
$str .= "\$$k='$v';\n"; // add line to config file text
}
}
$str .= "?>";
$file_open = fopen(GRESTUL_ROOT.'inc/settings.php', "w+");
fwrite($file_open, $str);
}
require (GRESTUL_ROOT.'inc/config.php');
?>
<!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="com">Database Info</li>
<li class="com">Create Tables</li>
<li class="com">Create Admin</li>
<li class="on">Complete Install</li>
</ul>
</div>
<div class="content">
<h3 class="other">Installation Complete!</h3>
<div class="complete">Congratulations! Grestul has been installed successfully!</div>
<?php
// writes to file
$handle = fopen("lock", "w+");
$con = '.';
$contents = fread($handle, 1);
if (fwrite($handle, $con)) {
echo '<div class="note">';
echo 'Grestul has locked the installer, to unlock it delete the lock file';
echo '</div>';
}
else {
echo '<div class="note">';
echo "Grestul may have locked the installer, but cannot check. Check the install directory for a lock file, if it doesn't exist, create it.";
echo '</div>';
}
fclose($handle);
?>
To get started visit the <a href="<?php echo "$domain"; ?>/admin" target="_blank">Admin Panel</a> to embed the comment system, change the general settings, and more!
Or you can visit the front-end of the software by clicking <a href="<?php echo "$domain" ?>" target="_blank">here.</a>
<br /><br /><strong>Don't forget!</strong><br /><br />
Don't forget to visit us at <a href="http://grestul.com" target="_blank">Grestul.com</a> or join the Grestul
<a href="http://community.grestul.com" target="_blank">community</a> and chat with the others, release modifications, leave feedback, or get free support!
<br /><br /><strong>A Thanks</strong><br /><br />
Thanks for using Grestul. Don't forget to spread the word about Grestul! We also thank our developers, testers, and contributers for helping out.
</div>
<div class="footer">
Copyright © 2008 Grestul Group
</div>
</div>
</div>
</body>
</html>
|