function rw_site_redirect($location = '')
{
    rw_redirect(rw_get_site_url($location));
    exit;
}
 public function AccountPageLoad()
 {
     RWLogger::LogEnterence('AccountPageLoad');
     if (rw_request_is_action('delete_account')) {
         check_admin_referer('delete_account');
         RWLogger::Log('AccountPageLoad', 'delete_account');
         $this->fs->delete_account_event();
         $this->_options->clear(true);
         $this->ClearTransients();
         rw_redirect('#');
     }
     if (rw_request_is_action('clear_cache')) {
         check_admin_referer('clear_cache');
         RWLogger::Log('AccountPageLoad', 'clear_cache');
         $this->ClearTransients();
         add_action('all_admin_notices', array(&$this, 'ClearCacheConfirmNotice'));
     }
     if (rw_request_is_action('default_settings')) {
         check_admin_referer('default_settings');
         RWLogger::Log('AccountPageLoad', 'default_settings');
         $this->RestoreDefaultSettings();
         add_action('all_admin_notices', array(&$this, 'RestoreSettingsConfirmNotice'));
     }
     if (rw_request_is_action('clear_ratings')) {
         check_admin_referer('clear_ratings');
         RWLogger::Log('AccountPageLoad', 'clear_ratings');
         rwapi()->call('/ratings.json', 'DELETE');
         $this->ClearTransients();
         add_action('all_admin_notices', array(&$this, 'ClearRatingsConfirmNotice'));
     }
     if (rw_request_is_action('go_factory')) {
         check_admin_referer('go_factory');
         RWLogger::Log('AccountPageLoad', 'go_factory');
         rwapi()->call('/ratings.json', 'DELETE');
         $this->ClearTransients();
         $this->RestoreDefaultSettings();
         add_action('all_admin_notices', array(&$this, 'StartFreshConfirmNotice'));
     }
     $this->_update_account();
 }