replace all code till
PHP Code:
case "nozaudeta_parole": {
with this
PHP Code:
<?php
if (defined('IN_PMBT'))die ("You can't include this file");
define('IN_PMBT', true);
require_once("include/config.php");
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
echo "<html>\n";
echo "<head>\n";
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<script type="text/javascript" language="JavaScript" src="bbcode.js"></script>';
echo '<!--[if lt IE 7]><script defer type="text/javascript" src="pngfix.js"></script><![endif]-->';
echo "<title>".$sitename."</title>\n";
if (is_readable("themes/$theme/favicon.ico")) {
echo '<link REL="shortcut icon" HREF="themes/!!!CHANGE ME!!!/favicon.ico" TYPE="image/x-icon">';
}
$reason = "";
if (is_banned($user, $reason)) {
echo '<meta http-equiv="refresh" content="0;url=ban.php?reson=';echo".urlencode($reason)."">\n";die();
}
if (is_readable("themes/$theme/style.css")) {
echo '<link rel="StyleSheet" href="themes/!!!CHANGE ME!!!/style.css" type="text/css"><script type="text/javascript" src="global.js"></script>';
}
$logintop = '<center><img src="themes/!!!CHANGE ME!!!/pics/logosmall.png"></center>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="headerMenuRow1" width="100%" colspan="2" nowrap>Not registred ? <a href="login.php?op=jauns_lietotajs">signup</a><br><a href="login.php?op=nozaudeta_parole">Lost password ?</a>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top">
<table width="410" cellpadding="0" cellspacing="0" style="margin:0px auto"><tr><td></td></tr></table>
<table cellpadding="0" cellspacing="1" width="410" class="gridTable" style="margin:0px auto">';
$loginbottom = '</table></td></tr><td class="gridFooter2" width="100%"></td></table>';
echo"</head><body>";
switch ($op) {
case "ienakt": {
echo "$logintop";
echo '<form method="POST" action="user.php';
echo ".$returnto.";
echo' ><input type="hidden" name="op" value="login" />
<tr>
<td class="gridRow1" nowrap>Nick</td>
<td width="100%" class="gridRow1"><input class="textarea" type="text" name="username" size="34" /></td>
</tr>
<tr>
<td class="gridRow1" nowrap>Pass</td>
<td width="100%" class="gridRow1">
<input class="textarea" type="password" name="password" size="34" />
</td>
</tr>
<tr>
<td class="gridFooter" colspan="2">
<center><input class="button" type="submit" value="Login" /></center>
</td>
</tr>
</form>';
echo "$loginbottom";
break;
}
and report if that works for you
and change all
!!!CHANGE ME!!! to name of ur theme