phpBMS

root/branches/brian-oo/index.php

Revision 265, 4.8 KB (checked in by brieb, 5 years ago)

Implemented new install/update system (should be able to install).
Fixed various OO field upgrade bugs.

  • Property svn:keywords set to LastChangedBy LastChangedDate LastChangedRevision
Line 
1<?php 
2/*
3 $Rev$ | $LastChangedBy$
4 $LastChangedDate$
5 +-------------------------------------------------------------------------+
6 | Copyright (c) 2004 - 2007, Kreotek LLC                                  |
7 | All rights reserved.                                                    |
8 +-------------------------------------------------------------------------+
9 |                                                                         |
10 | Redistribution and use in source and binary forms, with or without      |
11 | modification, are permitted provided that the following conditions are  |
12 | met:                                                                    |
13 |                                                                         |
14 | - Redistributions of source code must retain the above copyright        |
15 |   notice, this list of conditions and the following disclaimer.         |
16 |                                                                         |
17 | - Redistributions in binary form must reproduce the above copyright     |
18 |   notice, this list of conditions and the following disclaimer in the   |
19 |   documentation and/or other materials provided with the distribution.  |
20 |                                                                         |
21 | - Neither the name of Kreotek LLC nor the names of its contributore may |
22 |   be used to endorse or promote products derived from this software     |
23 |   without specific prior written permission.                            |
24 |                                                                         |
25 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     |
26 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       |
27 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
28 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
29 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
30 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
31 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
32 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
33 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
34 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
35 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
36 |                                                                         |
37 +-------------------------------------------------------------------------+
38*/
39        require_once("include/session.php");
40        require_once("include/login_include.php");
41       
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       
53        <div id="loginbox" class="bodyline" >
54                <h1><span><?php echo APPLICATION_NAME;?></span></h1>
55                <?php if ($failed) {?><div class="standout" id="failed"><?php echo $failed?></div><?php } ?>
56                <noscript>
57                        <p class="standout" align="center">JavaScript is disabled.</p>
58                        <p> Please check browser requirements.</p>
59                </noscript>
60               
61                <form name="form1" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>">
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>
85                        </p>
86                        </div>
87                </div>
88        </div>
89
90               
91        <?php if(DEMO_ENABLED=="true"){?>
92        <div id="demobox" class="bodyline">
93                <h2>Demonstration Mode</h2>
94                <p>
95                        Use the following user credentials to log into phpBMS. Each user
96                        highlights a different security access level.
97                </p>
98                <dl>
99                        <dt>Shipping Personnel</dt>
100                        <dd>
101                                username: shipping<br />
102                                password: shipping
103</dd>
104                        <dt>Sales Personnel</dt>
105                        <dd>username: sales<br />
106                        password: sales</dd>
107                        <dt>Sales Manager</dt>
108                        <dd>username: salesmanager<br />
109                                password: salesmanager
110                     </dd>
111                </dl>
112        </div>
113        <?php } include("footer.php")?>
Note: See TracBrowser for help on using the browser.
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.