<?
	$cfg = array();

	#
	# enter your mysql host, username and password on the first line
	# then put the name of your database on the second. your host
	# will be able to help you with these
	#

	$db = mysql_connect("localhost", "cal", "B0B");
	mysql_select_db("cal",$db);

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

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

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

	$cfg[table_prefix] = 'ami_advanced';

	#
	# 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] = 0;

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

	$cfg[show_submit_link] = 1;

	###################################################################
	#
	# these options only apply if you have the top.php optional extra
	#
	# 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
	#

	$cfg[badsites] = array();

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

?>
