-
Notifications
You must be signed in to change notification settings - Fork 46
/
configs.php
39 lines (34 loc) · 1.72 KB
/
configs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
session_save_path('phpsessions');
session_start();
$serveraddress = "localhost"; // Your MySQL server address
$serveruser = "root"; // Your MySQL user
$serverpass = "ascent"; //Your MySQL password
$serverport = "3306"; // Your MySQL Port
$server_db = "site"; //Your website database
$server_adb = "auth"; //Your account database
$server_cdb = "characters"; //Your characters database
$server_cdb_2 = "characters2"; //Your characters database
$server_wdb = "world"; //Your world database
$server_wdb_2 = "world"; //Your world database
$charTable = 'characters'; //Your Character Table!!
$name_realm1['realm'] = "Server_Name_1"; //Your Realm Name 1
$name_realm2['realm'] = "Server_Name_2"; //Your Realm Name 2
$charLimit = '10'; //Max characters to show on the page
$website['title'] = "WoWFailureCMS";
$website['slogan'] = "WoWFailureCMS, get your best CMS today, simple and fast!";
$website['address'] = "http://www.wowfailure.com"; // 'http://url/foldername/' or 'http://url/'
$website['root'] = "/WoWFailureCMS/"; // '/' <- for root and '/foldername/' <- for any folder
//Initialize Lang Files
include("lang/eng.php");
$connection_setup = mysql_connect($serveraddress,$serveruser,$serverpass)or die(mysql_error());
mysql_select_db($server_db,$connection_setup)or die(mysql_error());
if(isset($_SESSION['username'])){
mysql_select_db($server_adb,$connection_setup)or die(mysql_error());
$username = mysql_real_escape_string($_SESSION['username']);
$lbrspa = mysql_query("SELECT * FROM account WHERE username = '".$username."'");
$account_information = mysql_fetch_assoc($lbrspa);
mysql_select_db($server_db,$connection_setup)or die(mysql_error());
}
?>
<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>