$c = $_POST['c'];
        $result = $profile->updatepassword($o, $n, $c);
        if ($result == 1) {
            $error = "</font>Password Updated";
        } else {
            $error = "An error has occurred";
        }
    }
    if (strlen($_POST['deactivate']) > 5) {
        $profile->deactivate();
        $sess->Logout();
        //echo "deactivate";
    }
    if (strlen($_POST['activate']) > 3) {
        $profile->activate();
        Authenticate::reauth($id);
        header("Location: home.php");
        //echo "deactivate";
    }
    /*if(!$profile->save($_POST))
    		$error = "Error saving. Please try again later";
    	
    	else
    		$profile = new Profile($id); //reloads profile
    		*/
}
$dropdowns = new Dropdowns();
?>
<title>TheFacebook | Account Preferences</title> 
<link rel="stylesheet" href="style.css"> 
<link rel="shortcut icon" href="favicon.ico">