Help for Integration Pro SIte with Gravity Forms

Hey,

I hired a developper to integrate pro site with Gravity Forms some weeks/months ago and I just reallize that work was not well done. I explain:

I have 2 forms: one for level1 (free subscription) and level2 .

When I chose the form for level2 it always have the site expiration for the free level (level1) .If I chos one month the site will expire in 15 days (the expiration time of level1).

Developper made this code :

add_action("gform_site_created", "enter_pro_site_level", 10, 5);
function enter_pro_site_level($site_id, $user_id, $entry, $config, $password)
{

	global $wpdb,$psts;
		if ($entry['6'] == 'monthly') {	//1 month of subscription time, fill this in as a Value (termmonth) in Gravity Forms -- Note: Give this a Price in GForms
			$pststime= strtotime("+1 month");
		}
		else if ($entry['6'] == 'quarterly') {	//3 months of subscription time, fill this in as a Value (term3months) in Gravity Forms -- Note: Give this a Price in GForms
			$pststime= strtotime("+3 month");
		}
		else if ($entry['6'] == 'annual') {	//1 year of subscription time, fill this in as a Value (termyear) in Gravity Forms -- Note: Give this a Price in GForms
			$pststime= strtotime("+1 year");
		}

	update_option("hwesetdf",$entry);
	if($entry['16']=="level2")
	{
		$pstslevel=2;
	}
	else if($entry['5']=="level1")
	{
		$pstslevel=1;
	}

	//$pststime=strtotime("+1 year");
	$pstsgateway='GFormRegister';
	$pststerm="";
	$hweset="INSERT INTO " . $wpdb->base_prefix . "pro_sites (blog_ID, level, expire, gateway, term) VALUES ('$site_id', '$pstslevel', '$pststime', '$pstsgateway', '$pststerm')";
	update_option("skdfjskdjfskldjf",$hweset);

	if(!empty($site_id)){
		$update_level = $wpdb->query($wpdb->prepare("INSERT INTO " . $wpdb->base_prefix . "pro_sites (blog_ID, level, expire, gateway, term) VALUES ('$site_id', '$pstslevel', '$pststime', '$pstsgateway', '$pststerm')", $site_id, $pstslevel)); // Write to (wp)_pro_sites
	} else {
		// Do nothing
	}

	if( $update_level === false )
	{
				$updatehwe="update ". $wpdb->base_prefix . "pro_sites set level='$pstslevel',gateway='$pstsgateway' where blog_ID='$site_id' ";

		update_option("skdfjskdjfskldjf",$updatehwe);
		$wpdb->query($updatehwe);

Is there something of wrong I should correct it ?

Thank you for your big help

Xavier