-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.php
More file actions
26 lines (21 loc) · 804 Bytes
/
config.php
File metadata and controls
26 lines (21 loc) · 804 Bytes
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
<?php
$title = "Syslog Viewer"; //This appears as the <title> of your page and also the h1 header at the top of the page.
$hostname = "localhost"; //Change this to IP or hostname of your database server. Probably localhost.
$username = "root"; //This is a MySQL user that has access to the Syslog database.
$password = "password"; //Password for above user.
$database_name = "Syslog"; //The name of the database for the Syslog events.
$search_limit = 300;
# COLORS
$background_color = "rgb(17,17,17)";
$header_color = "rgb(17,17,17)";
$date_color = "#009E52";
$host_color = "#FFFA9E";
$tag_color = "#0081C2";
# DO NOT EDIT BELOW THIS LINE
$con = mysql_connect($hostname,$username,$password);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db($database_name, $con);
?>