-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsigin.php
executable file
·143 lines (122 loc) · 4.97 KB
/
sigin.php
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
if (!isset($_SESSION)) session_start();
include( "includes/config/config.php" );
include( "admin/bootstrap.php" );
//include_once $_SERVER['DOCUMENT_ROOT'] . $_SESSION['path'] . '/login/globals.php';
//include( "includes/Sql/sql.class.php" );
$action = array();
$text = array();
if($_SESSION['result'] == 'error' ){
array_push($text, $_SESSION['msg']);
}
$action['errors'] = $text;
unset($_SESSION['result']);
//session_destroy();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?=TITLE_INDEX;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="">
<meta name="keywords" content="">
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery.curvycorners.min.js"></script>
<link type="text/css" href="stylesheet/stylesheet.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/jquery-ui-1.8.4.custom.min.js"></script>
<link href="scripts/jqueryui/css/redmond/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/thickbox.js"></script>
<link href="scripts/thickbox.css" rel="stylesheet" type="text/css" />
<script src="scripts/jquery.tools.min.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheet/overlay-apple.css"/>
</head>
<!-- overlayed element -->
<div class="apple_overlay" id="overlay">
<!-- the external content is loaded inside this tag -->
<div class="contentWrap"></div>
</div>
<!-- make all links with the 'rel' attribute open overlays -->
<script>
$(function() {
// if the function argument is given to overlay,
// it is assumed to be the onBeforeLoad event listener
$("a[rel]").overlay({
mask: '#000',
effect: 'apple',
onBeforeLoad: function() {
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
// load the page specified in the trigger
wrap.load(this.getTrigger().attr("href"));
}
});
});
</script>
<!-- overlayed element - end -->
<!-- header -->
<?php
require("_header.inc.php");
include_once UTIL . '/validators.php';
if ( isset( $_SESSION['IDCUSTOMER'] ) and !empty( $_SESSION['IDCUSTOMER'] ))
{
GenericSql::Redirect($sec=2, $file="menu");
echo "Redirecting to menu..";
}
?>
<!-- header -->
<body>
<div style="height:0px; overflow:hidden;"></div>
<table width="999" border="0" cellpadding="0" cellspacing="0" align="center" id="table990" class="table bg">
<tr>
<td width="638" id="left_column" valign="top">
<div class="container">
<div class="hero-unit">
<h2><?=H2_CUSTOMER_LOGIN;?></h2>
<?php echo LBL_CUSTOMER_LOGIN_MESSAGE; ?>
</div>
<table class="cadastro-cliente" border=0>
<tr>
<td>
<form name="login" method="post" action="login/src/actions/login.php">
<?php echo show_errors($action); ?>
<?php if ($_SESSION['results'] == "success") {
echo "<div>" . $_SESSION['msg'] . "</div>";
unset($_SESSION['msg']);
unset($_SESSION['success']);
}
?>
<div>
<label for="username"><?=LBL_USERNAME;?></label> <br/>
<input type="text" name="username" id="username"/>
</div>
<div>
<label for="password"><?=LBL_PASSWORD;?></label> <br/>
<input type="password" name="password" id="password" />
</div>
<div>
<br/>
<input type="submit" value="Login" class="large green button" name="Submit" />
<?php echo $link = ' <a href="javascript:void(0);" onclick="tb_show(\'Show Data\', \'recovery?item_id=&item_pos=&KeepThis=true&TB_iframe=true&height=286&width=980\', false);">' . H2_CUSTOMER_LOGIN_RECOVERY . ' </a>'; ?>
<a href="recovery" rel="#overlay"></a>
</div>
</form>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr><td colspan=3> </td></tr>
<tr>
<td colspan=3>
<div style="background-color:#dcdcdc; height:1px; overflow:hidden; margin-top:20px; margin-bottom:10px;" class="table bg"></div>
</td>
</tr>
<tr><td colspan=3> </td></tr>
<tr><td colspan=3> </td></tr>
</table>
<!-- footer -->
<?php require("_footer.inc.php"); ?>
<!-- footer -->
</body>
</html>