-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherror_simple.php
More file actions
49 lines (45 loc) · 1.63 KB
/
error_simple.php
File metadata and controls
49 lines (45 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @version $Header$
* @package kernel
* @subpackage functions
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<style type="text/css">
body {margin:4em;font-family:monospace;line-height:2em;background:#fff}
fieldset {border:0px solid #fff;margin:0;padding:0}
legend {display:none;margin:0;padding:0;line-height:0}
label {display:block;clear:both}
input[type='submit'] {margin-left:4em;font-family:monospace}
hr {border:1px solid #ddd;border-width:1px 0 0 0;background:#fff;height:1px;line-height:1px;margin:1em 0}
</style>
</head>
<body>
<?php
if (isset($_REQUEST['error']) and !is_null($_REQUEST['error'])) {
if( $gBitSystem->isFeatureActive( 'site_closed' )){
echo $_REQUEST['error'];
} else {
echo strip_tags($_REQUEST['error']);
}
} else {
echo 'There was an unspecified error. Please go back and try again.';
}
?>
<hr />
<form id="loginbox" action="<?php echo USERS_PKG_URL ?>validate.php" method="post">
<fieldset>
<legend>Login</legend>
<label for="user">User: <input id="user" name="user" size="20" type="text" /></label>
<label for="pass">Pass: <input id="pass" name="pass" size="20" type="password" /></label>
<input type="submit" name="login" value="Login" />
</fieldset>
</form>
</body>
</html>