<?
	$cfg = array();

	#
	# enter your mysql host, username, password and database name in place
	# of the default values. your host will be able to tell you what these
	# values should be.
	#

	$db_hostname = 'localhost';
	$db_username = 'root';
	$db_password = 'root';
	$db_database = 'my_db_name';

	$db_hostname = 'localhost';
	$db_username = 'cal';
	$db_password = 'B0B';
	$db_database = 'cal_horde';

	#
	# the URL to the folder this program will be running in (no trailing slash):
	#

	$cfg[root_url] = "http://software.iamcal.com/ami_downloads/ami/framework";

	#
	# the name of the database tables. if you change the names, change this value too!
	#

	$cfg[table_prefix] = 'ami';

	#
	# your contact email address
	#

	$cfg[contact_email] = "user@domain.com";

	#
	# do you want to show the [skip this picture] link? (1 for yes, 0 for no)
	#

	$cfg[show_skip_link] = 1;

	#
	# do you want to show the [submit a picture] link? (1 for yes, 0 for no)
	#

	$cfg[show_submit_link] = 1;

	#
	# do you want to show the "If the picture above is broken" text?
	#

	$cfg[show_reportbad_text] = 1;

	#
	# subject of site: "am i XXX or not". setting this puts the system in "single"
	# site mode
	#

	$cfg[subject] = '';

	#
	# which submission modes are allowed?
	#

	$cfg[allow_submit_url] = 1;
	$cfg[allow_submit_upload] = 1;

	#
	# if image upload is enabled: path and url to uploaded files
	# (the folder must be writable by the web server!)
	#

	$cfg[upload_path] = '/var/www/cal/software.iamcal.com/ami_downloads/ami/framework/uploads';
	$cfg[upload_url] = 'http://software.iamcal.com/ami_downloads/ami/framework/uploads';

	#
	# maximum size of uploaded files (in bytes)
	#

	$cfg[upload_max_size] = 50 * 1024; # 50KB

	#
	# do you want to enable pre-approval
	# (images do not appear on the site until approved)
	#

	$cfg[pre_approval] = 0;

	#
	# do you want to use pretty urls?
	# (requires apache to have mod_rewrite and to recognise the .htaccess file)
	#

	$cfg[pretty_urls] = 1;

	#
	# the method used to rank the categories in list.php
	#
	# pic_count:	category with the most pics goes first
	# alpha:	sorted alphabetically
	#

	$cfg[list_rank] = 'alpha';

	###################################################################
	#
	# these options only apply if you have the top.php optional file
	#
	# number of items in the top chart (e.g. top 30)
	#

	$cfg[top_count] = 20;

	#
	# who many votes an item must have recieved before appearing in the chart
	#
	# set this quite high to avoid images leaping straight to the top of
	# the chart
	#

	$cfg[top_threshold] = 5;

	###################################################################
	#
	# DON'T EDIT BELOW THIS LINE
	#

	$db = mysql_connect($db_hostname, $db_username, $db_password);
	mysql_select_db($db_database,$db);

	$cfg[badsites] = array();

	$result = mysql_query("SELECT * FROM $cfg[table_prefix]_block",$db);
	while($row = mysql_fetch_array($result)){
		$cfg[badsites][] = $row[url];
	}

?>
