Third pass at adding key files
This commit is contained in:
45
site/forum.slowtwitch.com/www/admin/config.php
Normal file
45
site/forum.slowtwitch.com/www/admin/config.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?
|
||||
###########################################
|
||||
#-----------Forum stats config------------#
|
||||
###########################################
|
||||
/*=========================================\
|
||||
Author : Jordan Rapped \\
|
||||
Version : 1.0 \\
|
||||
Date Created: Feb 2 2008 \\
|
||||
---------------------------- \\
|
||||
Last Update: Feb 2 2008 \\
|
||||
---------------------------- \\
|
||||
\\
|
||||
===========================================\
|
||||
------------------------------------------*/
|
||||
//skip the config file if somebody call it from the browser.
|
||||
if (eregi("config.php", $_SERVER['SCRIPT_NAME'])) {
|
||||
Header("Location: index.php"); die();
|
||||
}
|
||||
|
||||
//your database hostname.
|
||||
$dbhost = "192.168.1.10";
|
||||
//your database username.
|
||||
$dbuname = "slowtwitch";
|
||||
//your db password
|
||||
$dbpass = "k9volqlAcpq";
|
||||
$dbname = "slowtwitch";
|
||||
$prefix = "gforum_";
|
||||
|
||||
//change this
|
||||
$site_name = "Slowtwitch.com";
|
||||
$site_email = "aaron@gossamer-threads.com";
|
||||
$site_url = "http://test.slowtwitch.com/stackreach/";
|
||||
|
||||
include("mysql.class.php");
|
||||
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
|
||||
if(!$db->db_connect_id) {
|
||||
echo "<br><font color=red><h3><br><center>Error:</b><br><hr><br>
|
||||
<b>Connection to database failed</b><br>
|
||||
<br><br><br><br><br><br><br><br><br></b></center>";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user