<?php if($u->isRegistered()){ ?> <span class="login"><a href="<?php echo $this->url('/login', 'logout') ?>" class="style8"><?php echo t('Sign Out') ?></a> | <a href="<?php echo $this->url('/profile', $u->uID) ?>" class="style8"><?php echo t('MyProfile') ?></a> | </span> <span class="login style8"> Hello <b><?php echo $u->getUserName() ?></b>, today <?php echo strtolower(date('l d F Y')." at ". date('H:i a')) ?></span> <?php }else{ ?> <form method="post" action="<?php echo $this->url('/login', 'do_login')?>" class="login"> <span class="login-title" ><?php echo t(USER_REGISTRATION_WITH_EMAIL_ADDRESS == true ? 'Email Address' : 'Username') ?></span> <input class="login-input" type="text" name="uName" id="uName" <?php echo (isset($uName)?'value="'.$uName.'"':'');?> > <span class="login-title"><?php echo t(' Password')?></span> <input class="login-input" type="password" name="uPassword" id="uPassword" > <?php echo $form->submit('submit', '', array(), 'login-submit')?> <?php echo $form->checkbox('uMaintainLogin', 1)?>
<?php if($u->isRegistered()){ ?> <span class="login"><a href="<?php echo $this->url('/login', 'logout') ?>" class="style8"><?php echo t('Sign Out') ?></a> | <a href="<?php echo $this->url('/profile', $u->uID) ?>" class="style8"><?php echo t('MyProfile') ?></a> | </span> <span class="login style8"> Hello <b><?php echo $u->getUserName() ?></b>, today <?php echo strtolower(date('l d F Y')." at ". date('H:i a')) ?></span> <?php }else{ ?> <form method="post" action="<?php echo $this->url('/login', 'do_login')?>" class="login"> <span class="login-title" ><?php echo t(USER_REGISTRATION_WITH_EMAIL_ADDRESS == true ? 'Email Address' : 'Username') ?></span> <input class="login-input" type="text" name="uName" id="uName" <?php echo (isset($uName)?'value="'.$uName.'"':'');?> > <span class="login-title"><?php echo t(' Password')?></span> <input class="login-input" type="password" name="uPassword" id="uPassword" > <?php echo $form->submit('submit', '', array(), 'login-submit')?> <?php echo $form->checkbox('uMaintainLogin', 1)?> <span class="login-title"><?php echo t('Remember Me')?> | </span> <a class="style8" href="/register" ><span class="login-title"><?php echo t('Register')?></span></a> <?php $rcID = isset($_REQUEST['rcID']) ? preg_replace('/<|>/', '', $_REQUEST['rcID']) : $rcID; ?> <input type="hidden" name="rcID" value="<?php echo $rcID?>" /> </form> <?PHP } ?>
You are allowed to delete your post for 5 minutes after it's posted.
Delete
Are you sure you would like to mark this post as spam?
Mark as Spam
This script will report this post as spam and add a permanent IP ban for this user, type "DESTROY" below to continue.
DESTROY SPAMMER
You must have a user account and be signed to perform this action.
i put this in the heade.php theme
there is someone make free login add-on too, see in marketplace