Location: PHPKode > projects > OpenBlog mini > OpenBlog mini 1.0/config.php
<?php

//1	// This data is used to gain access to the database
	$mysql_hostname = "location.database.com";
	$mysql_username = "databaseusername";
	$mysql_password = "databasepassword";
	$mysql_database = "database";
	
//2	// Establishes connection to database
	$mysql_connection = mysql_connect($mysql_hostname, $mysql_username, $mysql_password);
	mysql_select_db($mysql_database, $mysql_connection);

//3	// This is where you can customize the look and feel of the site
	$site_body_text_color = "#000000";
	$site_link_color = "#df332a";
	$site_background = "background='images/bg.png'";
	$site_name = "OpenBlog mini";
	$site_header = "<img src='images/header.png' width='920' height='150' alt='header' border='0'>";
	$site_header_color = "#000000";
	$site_sidebar_content = "<img src='images/avatar.png' align='right'><i>OpenBlog mini</i> is an open-source blog built with goal in mind: To create a fully functioning blog system (complete with Administrative access and moderation!) using less than 250 lines of code. <i>OpenBlog mini</i> is extremely easy to setup, requires only 1 MySQL database table and is easy to add on to as well!<br><br>Thank you for checking this out and be sure to check out my other open-source work!<br><br><i>-Scott Carmichael</i>";
	$site_sidebar_color = "#e1e1e1";
	$site_sidebar_text_color = "#000000";
	$site_footer = "OpenBlog mini is an Open-Source Blog! Programming by Scott Carmichael, 2012";
	$site_footer_color = "#000000";	
	$site_footer_text_color = "#ffffff";
	$site_font = 'arial'; //times, georgia, arial, etc.

//4	// These are fields used by the Database, change them to whatever you wish (Recommended for Security)
	$mysql_post_id = "post_id";
	$mysql_post_title = "post_title";
	$mysql_post_body = "post_body";
	$mysql_post_date = "post_date";
	$mysql_post_tags = "post_tags";	
	$mysql_post_table = "opencms_mini_post";

//5	// Administrator username & password (Hard-coded)
	$admin_username = "admin";
	$admin_password = "test";
	
//6	// This is the "container" HTML code around the main content
	$html_header = "<html>\n<body>\n<head>\n<title>\n" . $site_name . "\n</title>\n</head>\n<body " . $site_background . " topmargin='0' leftmargin='0' text='" . $site_body_text_color . "' link='" . $site_link_color . "' vlink='" . $site_link_color . "' >\n<table width='960' border='0' cellpadding='20' cellspacing='0' align='center'>\n<tr>\n<td colspan='2' valign='top' bgcolor='" . $site_header_color . "'>\n<font size='5' face='" . $site_font . "'><b><a href='index.php'>" . $site_header . "</a></b></font>\n</td>\n</tr>\n<tr>\n<td width='700' valign='top' bgcolor='#ffffff'>\n<font face='" . $site_font . "' size='2' color='" . $site_body_text_color. "'>";
	
	$html_footer = "</font>\n</td>\n<td width='260' valign='top' bgcolor='" . $site_sidebar_color . "'>\n<font face='" . $site_font . "' size='2' color='" . $site_sidebar_text_color . "'>\n<b>Blog Search:</b>\n<br>\n<form method='post' action='index.php'>\n<input type='text' name='search' size='10'>\n<input type='submit' value='Search Tags'>\n</form>\n<br>\n" . $site_sidebar_content. "\n<br><br>\n" . $_SESSION['logout'] . "\n</font>\n</td>\n</tr>\n\n<tr>\n<td colspan='2' bgcolor='" . $site_footer_color . "'>\n<font face='" . $site_font . "' size='1' color='" . $site_footer_text_color . "'>" . $site_footer . " &ndash; <a href='admin.php'>Administrative Log-In</a></font>\n</td>\n</tr>\n</table>\n</body>\n</html>";

?>
Return current item: OpenBlog mini