Return to Snippet

Revision: 17486
at September 7, 2009 03:37 by level09


Initial Code
<ul id="access">
       
        <li><?php
		global $user;
		if($user->uid>0){
			//logged in
			echo "<span>Welcome! $user->name </span>"  .l("My Account",'user') .'</li>';
			
		}
		else {
			
			echo l('Sign up','user/register') .'</li>';
		
			echo '<li>' .l('Login','user') .'</li>';
		}
		
		 ?>
       
      </ul>

Initial URL

                                

Initial Description

                                

Initial Title
Drupal SignIn/Welcome

Initial Tags

                                

Initial Language
PHP