<?php
	$refTypeBlacklist = 1;
	$refTypeReject = 2;

	function _activity_log_add($refid, $reftype, $description)
	{
		$query = "INSERT INTO activity_log (time, refid, reftype, description) VALUES (".time().", $refid, $reftype, '".$description."');";
		get_db_rows($query);
	}

	function _activity_log_name_from_type($refType) {
		switch ($refType)
		{
			case 1: return "blacklist maintenance";
			case 2: return "rpc call rejection";
			default: return "unknown";
		}
	}

?>
