CMS
Version 3.9
login.inc
Go to the documentation of this file.
1
<?php
2
/**************************************************************
3
4
Copyright (c) 2010 Sonjara, Inc
5
6
Permission is hereby granted, free of charge, to any person
7
obtaining a copy of this software and associated documentation
8
files (the "Software"), to deal in the Software without
9
restriction, including without limitation the rights to use,
10
copy, modify, merge, publish, distribute, sublicense, and/or sell
11
copies of the Software, and to permit persons to whom the
12
Software is furnished to do so, subject to the following
13
conditions:
14
15
The above copyright notice and this permission notice shall be
16
included in all copies or substantial portions of the Software.
17
18
Except as contained in this notice, the name(s) of the above
19
copyright holders shall not be used in advertising or otherwise
20
to promote the sale, use or other dealings in this Software
21
without prior written authorization.
22
23
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30
OTHER DEALINGS IN THE SOFTWARE.
31
32
*****************************************************************/
33
34
/*
35
* Title: /login
36
*
37
* Description: Validates the SiteUser login.
38
*
39
* author: Andy Green for Sonjara, Inc.
40
*
41
* date: 2008
42
*
43
***************************************************************/
44
45
Fakoli::using
(
"login"
);
46
47
48
// Login form goes here
49
?>
50
<form name=
'form1'
method=
'POST'
action
=
''
>
51
<table
id
=
"login"
>
52
<?
53
if
(
LoginManager::$error
)
54
{
55
?>
56
<tr>
57
<td
colspan
=
"2"
><span
class
=
'error'
><?echo
LoginManager::$error
?></span></td>
58
</tr>
59
<?
60
}
61
?>
62
<tr>
63
<td><label
for
=
"username"
>Username:</label></td>
64
<td><input name=
"username"
type=
"text"
value=
"<?=$username?>"
/></td>
65
</tr>
66
<tr>
67
<td><label
for
=
"password"
>Password:</label></td>
68
<td><input name=
"password"
type=
"password"
value=
"<?=$password?>"
/></td>
69
</tr>
70
<tr>
71
<td
colspan
=
"2"
style
=
"text-align: right"
>
72
<a href=
"/password_help?username=<?=$username?>&redirect=<?=$redirect?>"
>Forgotten Password?</a>
73
</td>
74
</tr>
75
<tr>
76
<td
colspan
=
"2"
style
=
"text-align: right"
>
77
<input name=
"Login"
type=
"submit"
value=
" Login "
class
=
"button"
/>
78
</td>
79
</tr>
80
</table>
81
</form>
style
$helpTree style
Definition:
tree.inc:46
action
$form action
Definition:
edit.inc:67
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
LoginManager\$error
static $error
Definition:
login.inc:96
colspan
$topicList colspan
Definition:
group_form.inc:54
code
cms.sonjara.com
cms
components
login
modules
login.inc
Generated on Tue Mar 23 2021 15:36:13 for CMS by
1.9.1