--- page.tpl.php~ 2012-01-05 10:12:56.982239009 +0800
+++ page.tpl.php 2012-01-05 10:13:59.236364896 +0800
@@ -135,6 +135,7 @@
print '
' .t('Logout'). ''; }
else {
print '' .t('Login'). '';
+ if(variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL) <> USER_REGISTER_ADMINISTRATORS_ONLY)
print '' .t('Register'). ''; }
?>