home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / style / default / login.php < prev    next >
PHP Script  |  2004-01-11  |  3KB  |  57 lines

  1. <?php /* STYLE/DEFAULT $Id: login.php,v 1.23 2004/01/11 04:53:35 ajdonnison Exp $ */
  2. ?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7.     <title><?php echo @$AppUI->getConfig( 'page_title' );?></title>
  8.     <meta http-equiv="Content-Type" content="text/html;charset=<?php echo isset( $locale_char_set ) ? $locale_char_set : 'UTF-8';?>" />
  9.            <title><?php echo $AppUI->cfg['company_name'];?> :: dotProject Login</title>
  10.     <meta http-equiv="Pragma" content="no-cache" />
  11.     <meta name="Version" content="<?php echo @$AppUI->getVersion();?>" />
  12.     <link rel="stylesheet" type="text/css" href="./style/<?php echo $uistyle;?>/main.css" media="all" />
  13.     <style type="text/css" media="all">@import "./style/<?php echo $uistyle;?>/main.css";</style>
  14.     <link rel="shortcut icon" href="./style/<?php echo $uistyle;?>/images/favicon.ico" type="image/ico" />
  15. </head>
  16.  
  17. <body bgcolor="#f0f0f0" onload="document.loginform.username.focus();">
  18. <br /><br /><br /><br />
  19. <form action="./index.php" method="post" name="loginform">
  20. <table align="center" border="0" width="250" cellpadding="6" cellspacing="0" class="std">
  21. <input type="hidden" name="login" value="<?php echo time();?>" />
  22. <input type="hidden" name="redirect" value="<?php echo $redirect;?>" />
  23. <tr>
  24.     <th colspan="2"><em><?php echo $AppUI->cfg['company_name'];?></em></th>
  25. </tr>
  26. <tr>
  27.     <td align="right" nowrap><?php echo $AppUI->_('Username');?>:</td>
  28.     <td align="left" nowrap><input type="text" size="25" maxlength="20" name="username" class="text" /></td>
  29. </tr>
  30. <tr>
  31.     <td align="right" nowrap><?php echo $AppUI->_('Password');?>:</td>
  32.     <td align="left" nowrap><input type="password" size="25" maxlength="32" name="password" class="text" /></td>
  33. </tr>
  34. <tr>
  35.     <td align="left" nowrap><a href="http://www.dotproject.net/"><img src="./style/default/images/dp_icon.gif" width="120" height="20" border="0" alt="dotProject logo" /></a></td>
  36.     <td align="right" valign="bottom" nowrap><input type="submit" name="login" value="<?php echo $AppUI->_('login');?>" class="button" /></td>
  37. </tr>
  38. </table>
  39. <?php if (@$AppUI->getVersion()) { ?>
  40. <div align="center">
  41.     <span style="font-size:7pt">Version <?php echo @$AppUI->getVersion();?></span>
  42. </div>
  43. <?php } ?>
  44. </form>
  45. <div align="center">
  46. <?php
  47.     echo '<span class="error">'.$AppUI->getMsg().'</span>';
  48.  
  49.     $msg = '';
  50.     $msg .=  phpversion() < '4.1' ? '<br /><span class="warning">WARNING: dotproject is NOT SUPPORT for this PHP Version ('.phpversion().')</span>' : '';
  51.     $msg .= function_exists( 'mysql_pconnect' ) ? '': '<br /><span class="warning">WARNING: PHP may not be compiled with MySQL support.  This will prevent proper operation of dotProject.  Please check you system setup.</span>';
  52.     echo $msg;
  53. ?>
  54. </div>
  55. </body>
  56. </html>
  57.