[drupal-docs] Someone with bypass input data permission please post

Kieran Lal kieran at civicspacelabs.org
Sat Apr 2 15:41:48 UTC 2005


http://www.ourmedia.org/
If anyone wants to see the login directly.

I'll ask Chris Messina to post CSL's custom login too.  There have been 
requests for it as well.

Cheers,
Kieran
On Apr 1, 2005, at 6:49 PM, Boris Mann wrote:

> Hey:
>
> Someone contacted Ourmedia.org asking for the PHPTemplate code for
> doing the login area in the nav bar. I thought it would be a good time
> to create a "theme snippets repository", like we have for blocks. So I
> did: http://drupal.org/node/19854
>
> But, I can't include the code below because it has too many funky
> stuff that thinks I'm trying to hack Drupal. If someone could paste
> this into the Custom Login node (http://drupal.org/node/19855), that
> would be great.
>
> (the code tags are just for formatting in the handbook)
>
> <code>
>   <?php if ($user->uid) : ?>
>   Logged in as: <?php print l($user->name,'user/'.$user->uid); ?> |
> <?php print l("logout","logout"); ?>
>   <?php else : ?>
>   <?php print l("Register","user/register"); ?> | Login: <form
> action="user/login" method="post"><input type="hidden"
> name="edit[destination]" value="user" /><input type="text"
> maxlength="64" class="form-text" name="edit[name]" id="edit-name"
> size="15" value="" /><input type="password" class="form-password"
> maxlength="64" name="edit[pass]" id="edit-pass" size="15" value=""
> /><input type="submit"  name="op" value="Log in"  /></form>
>   <?php endif; ?>
> </code>
>
> --
> Boris Mann
> http://www.bryght.com
> -- 
> [ drupal-docs | http://lists.drupal.org/listinfo/drupal-docs ]
>




More information about the drupal-docs mailing list