<?php
if (!in_array(arg(1), array('login', 'logout', 'register', 'password', 'reset'))) {
global $user;
$user_page_uid = false;
if (arg(0) == 'user') $user_page_uid = arg(1);
else if (arg(0) . arg(1) . arg(2) == 'administrationpartnerspartner') $user_page_uid = arg(3);
if (user_is_logged_in() && $user_page_uid == $user->uid) {
  $acct_profile_form = drupal_get_form('deliver_user_account_profile_form', false);
  $acct_details_form = drupal_get_form('deliver_user_account_details_form');
  $acct_payment_form = drupal_get_form('deliver_user_account_payment_form');
   print   drupal_render($acct_profile_form) .
      drupal_render($acct_details_form) .
      drupal_render($acct_payment_form);
} else {
  $acct_profile_form = drupal_get_form('deliver_user_account_profile_form', true);
   print drupal_render($acct_profile_form);
}
}
?>