by admin on Jun 23, 2007
$GLOBALS['conf']['cache'] = FALSE; // Prevent caching on this page
global $user;
if(strstr($_REQUEST['q'],'user/login')) {
$output = '
';
$output .= '
$output .= '
It looks like you\'re having trouble trying to log in. We\'re sorry about this.
Here\'s some help:
';
$output .= '
';
$output .= '
';
$output .= '
';
$output .= '
';
print $output;
}
elseif (tth_util_is_node_published($_REQUEST['q']) == 0) { /* Node is unpublished */
print '
';
print '
This page is currently unavailable. We might have taken it offline to make a few changes or the information on the page is no longer relevant.
';
if (in_array('Member', $user->roles)) { print '
If you can see this message, you are a Premium Member and are logged in. There is not an error with your account.
'; }
}
else { /* Published node */
print '
';
print '
print '
This content is exclusively for Premium Members. There are tons of great exclusives and benefits for Premium Members, including access to the content you\'re trying to view now.
';
print'
';
if (!in_array('authenticated user', $user->roles)) { /* Not logged in */
print '
';
print '
If you\'re already a Premium Member, login below:
';
print drupal_get_form('user_login_block');
print '
';
}
print '
';
}
?>