phpBMS

Changeset 285 for trunk/phpbms/index.php

Show
Ignore:
Timestamp:
08/27/07 14:05:27 (5 years ago)
Author:
brieb
Message:

Merging object oriented branch back into trunk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/index.php

    r204 r285  
    3838*/ 
    3939        require_once("include/session.php"); 
    40         require_once("include/common_functions.php"); 
    4140        require_once("include/login_include.php"); 
    4241         
    43         if(!isset($_SESSION["app_path"])); 
    44 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    45 <html xmlns="http://www.w3.org/1999/xhtml"> 
    46 <head> 
    47         <title><?php echo $_SESSION["application_name"]; ?> - Login</title> 
    48         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    49  
    50         <link href="common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/base.css" rel="stylesheet" type="text/css" />        
    51         <link href="common/stylesheet/<?php echo $_SESSION["stylesheet"] ?>/pages/login.css" rel="stylesheet" type="text/css" /> 
    52         <script language="javascript" src="common/javascript/common.js" type="text/javascript"></script> 
    53         <script language="javascript" src="common/javascript/login.js" type="text/javascript"></script> 
    54 </head> 
    55 <body onload="init()"> 
     42        $pageTitle = APPLICATION_NAME." Log in"; 
     43         
     44        $phpbms->cssIncludes[] = "pages/login.css"; 
     45        $phpbms->jsIncludes[] = "common/javascript/login.js"; 
     46         
     47        $phpbms->showMenu = false; 
     48        $phpbms->showFooter = false;     
     49         
     50        include("header.php"); 
     51?> 
     52         
    5653        <div id="loginbox" class="bodyline" > 
    57                 <h1 class="box"> 
    58                         <a href="http://www.phpbms.org" title="phpBMS"><span class="alt">phpBMS</span></a> 
    59                 </h1> 
    60                 <h2><?php echo $_SESSION["application_name"];?></h2> 
    61                 <h3>Business Management Web Application</h3> 
     54                <h1><span><?php echo APPLICATION_NAME;?></span></h1> 
    6255                <?php if ($failed) {?><div class="standout" id="failed"><?php echo $failed?></div><?php } ?> 
    6356                <noscript> 
     
    6558                        <p> Please check browser requirements.</p> 
    6659                </noscript> 
     60                 
    6761                <form name="form1" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>"> 
    68                         <p> 
    69                                 <label for="username">name</label><br /> 
    70                                 <input name="name" type="text" id="username" size="25" maxlength="64" value="<?php echo htmlQuotes($_POST["name"])?>" disabled="disabled"/> 
     62                        <fieldset> 
     63                                <legend>Log In</legend> 
     64                                <p> 
     65                                        <label for="username">name</label><br /> 
     66                                        <input name="name" type="text" id="username" size="25" maxlength="64" value="<?php echo htmlQuotes($_POST["name"])?>" disabled="disabled"/> 
     67                                </p> 
     68                                 
     69                                <p> 
     70                                        <label for="password">password</label><br /> 
     71                                        <input name="password" type="password" id="password" size="25" maxlength="24" disabled="disabled"/> 
     72                                </p> 
     73                                 
     74                        </fieldset> 
     75                        <p id="buttonP"><button class="Buttons" type="submit" id="loginButton" disabled="disabled">Log In</button></p> 
     76                </form>          
     77                <p id="moreinfoButtonP"><button id="moreinfoButton" type="button" class="graphicButtons buttonDown"><span>more info</span></button></p> 
     78                <div id="moreinfo" > 
     79                        <div class="box"> 
     80                        <h2><a href="http://www.phpbms.org" title="phpBMS"><span class="alt">phpBMS</span></a></h2> 
     81                        <h3>Business Management Web Application</h3> 
     82                        <p class="tiny"> 
     83                                <a href="requirements.php">browser requirements</a> | 
     84                                <a href="info.php">program info</a> 
    7185                        </p> 
    72                          
    73                         <p> 
    74                                 <label for="password">password</label><br /> 
    75                                 <input name="password" type="password" id="password" size="25" maxlength="24" disabled="disabled"/> 
    76                         </p> 
    77                          
    78                         <p><button class="Buttons" type="submit" id="loginButton" disabled="disabled">Log In</button></p> 
    79                 </form> 
    80          
    81                 <p class="tiny" id="moreinfo"> 
    82                         <a href="requirements.php">browser requirements</a> | 
    83                         <a href="info.php">program info</a> 
    84                 </p> 
     86                        </div> 
     87                </div> 
    8588        </div> 
    86         <?php if($_SESSION["demo_enabled"]=="true"){?> 
     89 
     90                 
     91        <?php if(DEMO_ENABLED=="true"){?> 
    8792        <div id="demobox" class="bodyline"> 
    8893                <h2>Demonstration Mode</h2> 
     
    106111                </dl> 
    107112        </div> 
    108         <?php } ?> 
    109 </body> 
    110 </html> 
     113        <?php } include("footer.php")?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.