<?php
  /**
   * Copyright 2011 Zazavi - http://www.zazavi.com
   * Zazavi is free software released under the terms of the GNU General Public License.
   * You should have received a copy of the license.  If not, see <http://www.gnu.org/licenses/>.
   */
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');
?>
<!-- Start Login Module -->
<?php if($user->logged_in):?>
<strong><?php echo _WELCOME;?>:</strong>&nbsp; <a href="<?php echo SITEURL;?>/account.php"><?php echo $user->name;?></a> &bull; <a href="<?php echo SITEURL;?>/logout.php"><font color="000000"><?php echo _N_LOGOUT;?></font></a>
<?php else:?>
<form action="<?php echo SITEURL;?>/login.php" method="post" id="login_form_mod" name="login_form_mod">
  <div><input name="username" type="text" class="inputbox" id="m_username" maxlength="20"  style="width:95%"/></div>
  <div style="padding-top:10px;padding-bottom:10px"><input name="password" type="password" maxlength="20" class="inputbox" id="m_password" style="width:95%"/></div>
  <div><input name="submit" value="<?php echo _UA_LOGINNOW;?>" type="submit" class="button"/></div>
  <input name="doLogin" type="hidden" value="1" />
</form>
<script type="text/javascript"> 
// <![CDATA[
$(document).ready(function () {
   $("#m_username").watermark("<?php echo _USERNAME;?>");
   $("#m_password").watermark("<?php echo _PASSWORD;?>");
});
// ]]>
</script> 
<?php endif;?>
<!-- End Login Module /-->