[ Index ]

Source Code Reference for V1.00

title

Body

[close]

/style/w2p-snowball/ -> login.php.bak (source)

   1  <?php /* STYLE/DEFAULT $Id: login.php,v 1.6.6.2 2007/03/17 15:54:04 caseydk Exp $ */
   2  if (!defined('W2P_BASE_DIR')){
   3      die('You should not access this file directly');
   4  }
   5  
   6  ?>
   7  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   8         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   9  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  10  <head>
  11      <title><?php echo @$w2Pconfig['page_title'];?></title>
  12      <meta http-equiv="Content-Type" content="text/html;charset=<?php echo isset( $locale_char_set ) ? $locale_char_set : 'UTF-8';?>" />
  13             <title><?php echo @$w2Pconfig['company_name'];?> :: web2Project Login</title>
  14      <meta http-equiv="Pragma" content="no-cache" />
  15      <meta name="Version" content="<?php echo @$AppUI->getVersion();?>" />
  16      <link rel="stylesheet" type="text/css" href="./style/<?php echo $uistyle;?>/main.css" media="all" />
  17      <style type="text/css" media="all">@import "./style/<?php echo $uistyle;?>/main.css";</style>
  18      <link rel="shortcut icon" href="./style/<?php echo $uistyle;?>/favicon.ico" type="image/ico" />
  19  </head>
  20  
  21  <body bgcolor="#f0f0f0" onload="document.loginform.username.focus();">
  22  <table width="100%" cellspacing="0" cellpadding="0" border="0">
  23  <tbody><tr>
  24      <td width="508"><a href="http://www.web2project.net"><img border="0" alt="web2Project Home" src="./style/<?php echo $uistyle;?>/w2p_logo.jpg"/></a></td>
  25      <td background="./style/<?php echo $uistyle;?>/logo_bkgd.jpg">&nbsp;</td>
  26  </tr>
  27  </tbody>
  28  </table>
  29  <table width="100%" cellspacing="0" cellpadding="0" border="0">
  30  <tbody>
  31      <tr>
  32      <td valign="top" background="./style/<?php echo $uistyle;?>/nav_shadow.jpg" align="left">
  33          <img width="1" height="13" border="0" src="./style/<?php echo $uistyle;?>/nav_shadow.jpg"/>
  34      </td>
  35  </tr>
  36  </tbody>
  37  </table>
  38  <br /><br /><br /><br />
  39  <?php 
  40  include ('overrides.php'); 
  41  //please leave action argument empty ?>

  42  <!--form action="./index.php" method="post" name="loginform"-->
  43  <form method="post" action="<?php echo $loginFromPage; ?>" name="loginform">
  44  <table style="border-style:none;" align="center" border="0" width="250" cellpadding="0" cellspacing="0" class="std">
  45  <input type="hidden" name="login" value="<?php echo time();?>" />
  46  <input type="hidden" name="lostpass" value="0" />
  47  <input type="hidden" name="redirect" value="<?php echo $redirect;?>" />
  48  <tr><td colspan="2">
  49  <?php 
  50      echo styleRenderBoxTop();
  51  ?>
  52  </td></tr>
  53  <tr>
  54      <th style="padding:6px" colspan="2"><em><?php echo @$w2Pconfig['company_name'];?></em></th>
  55  </tr>
  56  <tr>
  57      <td style="padding:6px" align="right" nowrap><?php echo $AppUI->_('Username');?>:</td>
  58      <td style="padding:6px" align="left" nowrap><input type="text" size="25" maxlength="255" name="username" class="text" /></td>
  59  </tr>
  60  <tr>
  61      <td style="padding:6px" align="right" nowrap><?php echo $AppUI->_('Password');?>:</td>
  62      <td style="padding:6px" align="left" nowrap><input type="password" size="25" maxlength="32" name="password" class="text" /></td>
  63  </tr>
  64  <tr>
  65      <td style="padding:6px" align="left" nowrap><a href="http://www.web2project.net/"><img src="./style/web2project/w2p_icon.gif" width="32" height="24" border="0" alt="web2Project logo" /></a></td>
  66      <td style="padding:6px" align="right" valign="bottom" nowrap><input type="submit" name="login" value="<?php echo $AppUI->_('login');?>" class="button" /></td>
  67  </tr>
  68  <tr>
  69      <td style="padding:6px" colspan="2"><a href="#" onclick="f=document.loginform;f.lostpass.value=1;f.submit();"><?php echo $AppUI->_('forgotPassword');?></a></td>
  70  </tr>
  71  <tr><td colspan="2">
  72  <?php 
  73      echo styleRenderBoxBottom();
  74  ?>
  75  </td></tr>
  76  </table>
  77  <?php if (@$AppUI->getVersion()) { ?>
  78  <div align="center">
  79      <span style="font-size:7pt">Version <?php echo @$AppUI->getVersion();?></span>
  80  </div>
  81  <?php } ?>
  82  </form>
  83  <div align="center">
  84  <?php
  85      echo '<span class="error">'.$AppUI->getMsg().'</span>';
  86  
  87      $msg = '';
  88      $msg .=  phpversion() < '4.1' ? '<br /><span class="warning">WARNING: web2Project is NOT SUPPORT for this PHP Version ('.phpversion().')</span>' : '';
  89      $msg .= function_exists( 'mysql_pconnect' ) ? '': '<br /><span class="warning">WARNING: PHP may not be compiled with MySQL support.  This will prevent proper operation of web2Project.  Please check you system setup.</span>';
  90      echo $msg;
  91  ?>
  92  </div>
  93  <center><span style="font-size:7pt"><strong><?php echo $AppUI->_('You must have cookies enabled in your browser');?></strong></span></center>
  94  </body>
  95  </html>


Generated: Thu Jan 8 03:00:03 2009 Cross-referenced by PHPXref 0.7