I 'm trying to Add cookie mod but ideasnot work for me .(so Are Other Mods)
i get Error "
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./html.pl line 999, near "print"
here is my login script
sub html_login_form {
# --------------------------------------------------------
# The login screen.
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Login.</title>
</head>
<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie
print qq| ----------this is 999
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 align=center valign=top>
<tr><td bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Login</b>
</td></tr>
<tr><td>
<p><center><$font_title>
<b>Log On</b></font></center><br>
<$font>Welcome! You need to have an active account to access $html_title. For
the demo, you can use userid/passwords: 'admin/admin', 'author/author', 'guest/guest'.<BR>|;
if ($auth_signup) {
print qq|
If you do not yet have an account, you may <a href="$db_script_url?db=$db_setup&signup_form=1">sign up for one here.</a><BR>|;
}
print qq| If you have forgotten your password, you may <a href="$db_script_url?db=$db_setup&lookup_form=1">receive another password here.</a>
<p>
<form action="$db_script_url" method="POST" name="form1" OnSubmit="return IsValid()">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
<table border=0>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>User ID:</b></FONT></td>
<td><input type="TEXT" name="userid"></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>Password:</b></FONT></td>
<td><input type="PASSWORD" name="pw"></td></tr>
<tr><td colspan=2><b>Remember username and password for future logins?</b>
<INPUT type="checkbox" name="auth_remember_login">
</td></tr>
</table>
<center>
<input type="SUBMIT" name="login" value="Logon">
<INPUT TYPE="SUBMIT" NAME="logoff" VALUE="Cancel">
</center>
</form></p></font>
</td></tr>
</table>
</center>
</body>
</html>
|;
}
Thanks
i get Error "
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./html.pl line 999, near "print"
here is my login script
sub html_login_form {
# --------------------------------------------------------
# The login screen.
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Login.</title>
</head>
<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie
print qq| ----------this is 999
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 align=center valign=top>
<tr><td bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Login</b>
</td></tr>
<tr><td>
<p><center><$font_title>
<b>Log On</b></font></center><br>
<$font>Welcome! You need to have an active account to access $html_title. For
the demo, you can use userid/passwords: 'admin/admin', 'author/author', 'guest/guest'.<BR>|;
if ($auth_signup) {
print qq|
If you do not yet have an account, you may <a href="$db_script_url?db=$db_setup&signup_form=1">sign up for one here.</a><BR>|;
}
print qq| If you have forgotten your password, you may <a href="$db_script_url?db=$db_setup&lookup_form=1">receive another password here.</a>
<p>
<form action="$db_script_url" method="POST" name="form1" OnSubmit="return IsValid()">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
<table border=0>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>User ID:</b></FONT></td>
<td><input type="TEXT" name="userid"></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>Password:</b></FONT></td>
<td><input type="PASSWORD" name="pw"></td></tr>
<tr><td colspan=2><b>Remember username and password for future logins?</b>
<INPUT type="checkbox" name="auth_remember_login">
</td></tr>
</table>
<center>
<input type="SUBMIT" name="login" value="Logon">
<INPUT TYPE="SUBMIT" NAME="logoff" VALUE="Cancel">
</center>
</form></p></font>
</td></tr>
</table>
</center>
</body>
</html>
|;
}
Thanks