|
| |
1 |
|
<?php |
|
| |
2 |
|
$pathtoimage = $pathtoroot . $admin."/images"; |
|
| |
3 |
|
|
|
| |
4 |
|
if (function_exists("admin_language")) |
|
| |
5 |
|
{ |
|
| |
6 |
|
$login_text = admin_language("la_Login"); |
|
| |
7 |
|
$login_button = admin_language("la_Login"); |
|
| |
8 |
|
$username_text = admin_language("la_Text_Login"); |
|
| |
9 |
|
$password_title = admin_language("la_prompt_Password"); |
|
| |
10 |
|
$cancel_button = admin_language("la_Cancel"); |
|
| |
11 |
|
} |
|
| |
12 |
|
else |
|
| |
13 |
|
{ |
|
| |
14 |
|
$login_text = "Login"; |
|
| |
15 |
|
$login_button = "Login"; |
|
| |
16 |
|
$username_text = "Username"; |
|
| |
17 |
|
$password_title = "Password"; |
|
| |
18 |
|
$cancel_button = "Cancel"; |
|
| |
19 |
|
} |
|
| |
20 |
|
|
|
| |
21 |
|
|
|
| |
22 |
|
if( !function_exists('GetVar') ) |
|
| |
23 |
|
{ |
|
| |
24 |
|
function GetVar($name) |
|
| |
25 |
|
{ |
|
| |
26 |
|
return isset($_REQUEST[$name]) ? $_REQUEST[$name] : false; |
|
| |
27 |
|
} |
|
| |
28 |
|
} |
|
| |
29 |
|
|
|
| |
30 |
|
|
|
| |
31 |
|
|
|
| |
32 |
|
if ( GetVar('expired') == 1 && GetVar('logout') != 1) { |
|
| |
33 |
|
if (function_exists("admin_language")) { |
|
| |
34 |
|
$login_error = admin_language("la_text_sess_expired"); |
|
| |
35 |
|
} |
|
| |
36 |
|
else { |
|
| |
37 |
|
$login_error = "Session Expired"; |
|
| |
38 |
|
} |
|
| |
39 |
|
} |
|
| |
40 |
|
if( function_exists('GetRegionalOption') ) |
|
| |
41 |
|
{ |
|
| |
42 |
|
$charset = GetRegionalOption('Charset'); |
|
| |
43 |
|
} |
|
| |
44 |
|
else |
|
| |
45 |
|
{ |
|
| |
46 |
|
$charset == 'iso-8859-1'; |
|
| |
47 |
|
} |
|
| |
48 |
|
print<<<END |
|
| |
49 |
|
|
|
| |
50 |
|
<html> |
|
| |
51 |
|
<head> |
|
| |
52 |
|
<script language="JavaScript"> |
|
| |
53 |
|
function redirect() |
|
| |
54 |
|
{ |
|
| |
55 |
|
window.name = 'redirect'; |
|
| |
56 |
|
var i = 0; |
|
| |
57 |
|
|
|
| |
58 |
|
while (i < 10) |
|
| |
59 |
|
{ |
|
| |
60 |
|
if (window.parent.name == 'main_frame') break; |
|
| |
61 |
|
a_parent = window.parent; |
|
| |
62 |
|
i++; |
|
| |
63 |
|
} |
|
| |
64 |
|
page = a_parent.location.href + '?expired=1'; |
|
| |
65 |
|
if (i < 10) |
|
| |
66 |
|
{ |
|
| |
67 |
|
setTimeout('a_parent.location.href=page',100); |
|
| |
68 |
|
} |
|
| |
69 |
|
} |
|
| |
70 |
|
</script> |
|
| |
71 |
|
<title>In-Portal :: Administration Panel</title> |
|
| |
72 |
|
<meta http-equiv="Content-Type" content="text/html; charset=$charset"> |
|
| |
73 |
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
|
| |
74 |
|
<link rel="stylesheet" href="include/style.css" type="text/css"> |
|
| |
75 |
|
<META http-equiv="Pragma" content="no-cache"> |
|
| |
76 |
|
</head> |
|
| |
77 |
|
|
|
| |
78 |
|
<body bgcolor="#FFFFFF" text="#000000" onLoad="document.form1.login.focus();"> |
|
| |
79 |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"> |
|
| |
80 |
|
<tr> |
|
| |
81 |
|
<td valign="middle" align="center"> |
|
| |
82 |
|
<div align="center"> |
|
| |
83 |
|
<img title="In-portal" src="images/globe.gif" width="84" height="91" border="0"> |
|
| |
84 |
|
<img title="In-portal" src="images/logo.gif" width="150" height="91" border="0"><br> |
|
| |
85 |
|
|
|
| |
86 |
|
<form name="form1" method="post" action="index.php" target="_top"> |
|
| |
87 |
|
<table border="0" cellpadding="2" cellspacing="0" class="tableborder_full" width="222" height="30"> |
|
| |
88 |
|
<tr> |
|
| |
89 |
|
<td align="right" valign="top" class="tablenav" width ="220" nowrap height=30 background="images/tabnav_left.jpg"> |
|
| |
90 |
|
<span style="float: left;"> |
|
| |
91 |
|
<img src="icons/icon24_lock_login.gif" width="16" height="22" alt="" border="0" align="absmiddle"> $login_text |
|
| |
92 |
|
</span> |
|
| |
93 |
|
<a href="help/manual.pdf"><img src="images/blue_bar_help.gif" border="0"></a> |
|
| |
94 |
|
</td> |
|
| |
95 |
|
</tr> |
|
| |
96 |
|
<tr> |
|
| |
97 |
|
<td colspan="2" bgcolor="#F0F0F0"> |
|
| |
98 |
|
<table cellpadding="4" cellspacing="0" border="0"> |
|
| |
99 |
|
<tr bgcolor="#F0F0F0"> |
|
| |
100 |
|
<td class="text">$username_text</td> |
|
| |
101 |
|
<td><input type="text" name="login" class="text"></td> |
|
| |
102 |
|
</tr> |
|
| |
103 |
|
<tr bgcolor="#F0F0F0"> |
|
| |
104 |
|
<td class="text">$password_title</td> |
|
| |
105 |
|
<td><input type="password" name="password" class="text"></td> |
|
| |
106 |
|
</tr> |
|
| |
107 |
|
<tr bgcolor="#F0F0F0"> |
|
| |
108 |
|
<td colspan="2"> |
|
| |
109 |
|
<div align="left"> |
|
| |
110 |
|
<input type="submit" name="submit" value="$login_button" class="button"> |
|
| |
111 |
|
<input type="reset" name="Cancel" value="$cancel_button" class="button"> |
|
| |
112 |
|
<input type=hidden name="adminlogin" value="1" /> |
|
| |
113 |
|
</div> |
|
| |
114 |
|
</td> |
|
| |
115 |
|
</tr> |
|
| |
116 |
|
</table> |
|
| |
117 |
|
</td> |
|
| |
118 |
|
</tr> |
|
| |
119 |
|
</table> |
|
| |
120 |
|
</form> |
|
| |
121 |
|
|
|
| |
122 |
|
<br> |
|
| |
123 |
|
<p class="error"> |
|
| |
124 |
|
$login_error</p> |
|
| |
125 |
|
</td> |
|
| |
126 |
|
</tr> |
|
| |
127 |
|
</table> |
|
| |
128 |
|
<script> |
|
| |
129 |
|
var a_parent = window.parent; |
|
| |
130 |
|
redirect(); |
|
| |
131 |
|
</script> |
|
| |
132 |
|
</body> |
|
| |
133 |
|
</html> |
|
| |
134 |
|
END; |
|
| |
135 |
|
exit(); |
|
| |
136 |
|
?> |