i18n::translate('Login'), 'type'=>'both', // On My Page, this becomes a Logout block 'descr'=>i18n::translate('The Login block accepts a user name and password for users to login.'), 'canconfig'=>false, 'config'=>array( 'cache'=>0 ) ); /** * Print Login Block * * Prints a block allowing the user to login to the site directly from the portal */ function print_login_block($block = true, $config="", $side, $index) { global $QUERY_STRING, $USE_REGISTRATION_MODULE, $TEXT_DIRECTION; if (WT_USER_ID) { $id="logout_block"; $title = i18n::translate('Logout'); $i = 0; // Initialize tab index $content = '
"; } else { $id="login_block"; $i = 0; // Initialize tab index $title = i18n::translate('Login'); if ($USE_REGISTRATION_MODULE) { $title.=help_link('index_login_register'); } else { $title.=help_link('index_login'); } $LOGIN_URL=get_site_setting('LOGIN_URL'); $content = ""; } global $THEME_DIR; if ($block) { require $THEME_DIR.'templates/block_small_temp.php'; } else { require $THEME_DIR.'templates/block_main_temp.php'; } } ?>