[Help] Online Time Modul дава Акаунт и Парола са грешни

Holder

New Member
Joined
Dec 27, 2010
Messages
434
Reaction score
43
Така, значи искам да сложа този модул на 97д99и на даркмастера релииса DarksTeam MuServer 97d99i Beta 38 - Marry, Quest System & Sky Event! - DarksTeam Forum
Когато напиша акаунт и парола пише, че са грешни. Проверих всяка една таблица, която я има в функцията и си е на мястото, единствената таблица, която не намирам в MuOnline е MEMB_CREDITS... в дб-то на даркмастера просто я няма а проблема нз дали от там идва, защото доколкото разбирам функцията пише, че търси :
Code:
$querypass = mssql_query("Select memb___id,memb__pwd,memb_name,bloc_code,vip From MEMB_INFO where memb___id='$account' and memb__pwd='$password'");
А това си е там.. нз, някакви идеи ?

Това е самият модул:
Code:
<?
/* 
   MFS Team Web 0.5
   by Diablo
   http://*********************/
*/
?>
<?php
if(isset($_POST['submit'])) { online_hours(); }
include ("config.php");
global $resethours;
global $wincredits;
?>
Trade you Online Hours for CREDITS ! 
<br>
Receive <?php echo $wincredits; ?> credits per hour !<br> <?php echo $resethours; ?>H Online = <?php echo $wincredits; ?> Credits !<br>
<table border=0 cellspacing=5 cellpadding=0>
<td width='250'>
<form name="" method="post" action="">
<table width="100%" border="0" cellspacing="1" cellpadding="1">

<tr> 
<td width="70">Login ID :</td>
<td>
<input name="login" type="text" id="login" maxlength="10">
</td>
</tr>
<tr> 
<td width="70">Password :</td>
<td><input name="password" type="password" id="password" maxlength="16">
</td>
</tr>
<tr> 
<td width="70">&nbsp;</td>

</tr>
<tr>
<tr> 
<td width="100" align="right"><input type="submit" class=button name="submit" value="Submit"></td>
<td><input type="reset" class=button name="Submit2" value="Reset"></td>
</tr>
</table>

</form>
</div>
</td>
</table>

Това е функцията му :
Code:
// Exchange Online Time normal
function online_hours()
{
global $resethours;
global $wincredits;

$character = clean_var($_POST['character']);
$account = clean_var($_POST['login']);
$password = clean_var($_POST['password']);

$query = mssql_query("Select memb___id,OnlineHours,ConnectTM,DisConnectTM from MEMB_STAT where memb___id='$account'");
$row = mssql_fetch_row($query);

$querypass = mssql_query("Select memb___id,memb__pwd,memb_name,bloc_code,vip From MEMB_INFO where memb___id='$account' and memb__pwd='$password'");
$char = mssql_fetch_row($querypass);

$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$onlinecheck = mssql_num_rows($queryonline);

if($account != $char[0]) { echo"<font color='red'>Your Account is incorrect!</font><br><br>"; $error=1; }
if($password != $char[1]) { echo"<font color='red'>Your Password is incorrect!</font><br><br>"; $error=1;}
else
{
if($error != 1) {

$onhourss = $char[3];
$creditshourss = $row[1] * $wincredits;

if($row[1] <= 0) { echo"Account $account must have<font color=red> minimum $resethours Online hour in game</font> !</font><br><br>"; $error=2;}
if($onlinecheck  >= 1) { echo"<font color='red'>Account $account is online!<br> Please LogOff First!</font><br><br>"; $error=2;}

else
{
if($error != 2)
{
echo"All the hours  spent in game were removed and you earned <font color='orange'>$creditshourss </font><font color='green'>credits !</font><br><br>";
$a = mssql_query("DELETE FROM MEMB_STAT Where memb___id='$account'");
$b = mssql_query("Update MEMB_CREDITS set credits = credits+$creditshourss WHERE memb___id='$account'");
}
}
}
}
}[code]