Location: PHPKode > projects > PM Report for PostgreSQL > pm_report/config.php
<?
// UNCOMMENT AND ENTER THE VALUE FOR THE FOLLOWING VARIABLES IF YOU DO NOT WANT TO HAVE TO ENTER THEM EVERY TIME YOU USE PM REPORT


//$SQL_SERVER = "10.10.10.5";	// MYSQL SERVER NAME
//$SQL_USER = "webuser";		// MYSQL USER NAME
//$SQL_PASSWORD = "scanpoint21";	// MYSQL PASSWORD
//$SQL_DATABASE = "";	// NAME OF DATABASE YOU WOULD LIKE TO USE

//$SQL_DSN = "host=$SQL_SERVER dbname=$SQL_DATABASE user=$SQL_USER password=$SQL_PASSWORD";
session_start();
if(! isset($_SESSION[SQL_SERVER])) {$_SESSION[SQL_SERVER] = '192.168.1.10';}	// PGSQL SERVER NAME
if(! isset($_SESSION[SQL_USER])) {$_SESSION[SQL_USER] = 'user1';}		// PGSQL USER NAME
if(! isset($_SESSION[SQL_PASSWORD])) {$_SESSION[SQL_PASSWORD] = '12345';}	// PGSQL PASSWORD
if(! isset($_SESSION[SQL_DATABASE])) {$_SESSION[SQL_DATABASE] = 'mydb';}	// NAME OF DATABASE YOU WOULD LIKE TO USE


// EDIT THE FOLLOWING VARS TO CHANGE THE REPORT COLORS
$header_row_bg_color = "#003366";	// Top row of report background color
$header_row_fg_color = "#FFFFFF";	// Top row of report text color
$alt_1_row_bg_color = "#FFFFFF";	// First alternating row color
$alt_2_row_bg_color = "#CCCCCC";	// Second alternating row color
$text_color = "#003366";		// Color of text on page
$highlight_bg_color = "#993333";	// Background color of row when mouse is over
$highlight_fg_color = "#FFFFFF";	// Text color of row when mouse is over
$report_border_color = "#666666";	// Border color on the report

// EDIT THE FOLLOWING VARS TO CHANGE THE GRAPH COLORS -- LEAVE BLANK FOR DEFAULT COLORS
$barColor = "";		// Color for bar(s) (seperate multiple colors with commas...multiple colors will only be used when graphing results and not totals)
$barBGColor = "";	// Background color for bar(s)
$labelColor = "";	// Color for label(s)
$labelBGColor = "";	// Background color for label(s)

// EDIT THE FOLLOWING TO ADJUST FONT SIZES
$report_text_size = "10";
$report_title_size = "14";

foreach($_POST as $key=>$value) {
	eval("$$key = \"$value\";");
}     
?> 
Return current item: PM Report for PostgreSQL