discourse-legacysite-perl/site/forum.slowtwitch.com/www/admin/config.php
2024-06-17 22:27:49 +10:00

46 lines
1.4 KiB
PHP

<?
###########################################
#-----------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();
}
?>