Original DVD Benchmark

User Login

{kl_php}defined( '_VALID_MOS' ) or die( 'Restricted access' ); global $mosConfig_frontend_login; if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) { return; } // url of current page that user will be returned to after login if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) { $return = 'index.php?' . $query_string; } else { $return = 'index.php'; } // converts & to & for xtml compliance $return = str_replace( '&', '&', $return ); if($_SESSION['jcs_access_url']) $return = $_SESSION['jcs_access_url']; $registration_enabled = $mainframe->getCfg( 'allowUserRegistration' ); $message_login = $params->def( 'login_message', 0 ); $message_logout = $params->def( 'logout_message', 0 ); $login = $params->def( 'login', $return ); $logout = $params->def( 'logout', $return ); $name = $params->def( 'name', 1 ); $greeting = $params->def( 'greeting', 1 ); $pretext = $params->get( 'pretext' ); $posttext = $params->get( 'posttext' ); if ( $my->id ) { // Logout output // ie HTML when already logged in and trying to logout if ( $name ) { $name = $my->name; } else { $name = $my->username; } ?>

 









{/kl_php}