[Release] OpenMu Web Clone [Update 0.6]

щото нямаш дл в сървъра махни leadership от update-a
 
Ще помоля някой от разбирачите да прегледа сайта
 
Last edited:
добре защо не мога да адвам command има Leadership и пак не става ?
 
при мен не бачкат 3 неща пробвах с това в началото да заместя теглих упдейтнатия web пак същото ето моите проблеми не ми работят модулите Ranking top players online.. ето снимки
1.ImageShack® - Online Photo and Video Hosting - > Rankinga
2.ImageShack® - Online Photo and Video Hosting -> Top Players
3.ImageShack® - Online Photo and Video Hosting -> Online
Това сложи ли в Query Analyze ?
Code:
alter table character add GrResets int not null default 0
 
мМмМ доста добър уеб (sun)
 
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\includes\connect.php on line 6

how fix it?
 
Edit the Config file (chuchkle)
 
problem..

Loading php_gd2.dll Failed!
Please Enable php_gd2.dll In Your Php.ini

I enable php_g2.dll everywhere...
 
Last edited:
Има сериозен проблем с всички openmu web.Кат отидеш на ресет пишеш независимо какъв герой и своето ацц и пасс и рескаш който си искаш . Това оправяне има ли???????
 
да, просто трябва да се сложи 1 проверка дали написаният герой принадлежи на написаният акаунт
 
да, просто трябва да се сложи 1 проверка дали написаният герой принадлежи на написаният акаунт


Както каза pafa7a ето ти кода който прави проверка ти вече си го нагаждай както искаш :)

PHP:
<?
include "config.php";
if(isset($_POST['submit']))
{
$acc = secure($_POST['account']);
$char = secure($_POST['character']);
$pass = secure($_POST['password']);

$query2=(mssql_num_rows(mssql_query("SELECT * from MEMB_INFO where memb___id='$acc' and memb__pwd='$pass'")));

if($query2 <= 0)
{
echo "Greshen Account ili Parola"; $error = 1;
}
$query = mssql_query("SELECT * FROM Character Where Name='$char' AND AccountID='$acc'");
$proverka= mssql_num_rows($query);
$geroi = mssql_fetch_array(mssql_query("SELECT * from Character where Name='$char'"));
if($proverka <= 0)
{
echo "nqma takuv geroi v akaunta"; $error = 1;
}
if($error != 1)
{
echo " Character: $char <br> Level:$geroi[cLevel]";
}
}

?>
<form method="POST">
Account: <input type='text' name='account'>
<br>
Character: <input type='text' name='character'>
<br>
password:<input type='password' name='password'>
<input type='submit' name='submit' value='Enter'>
</form>
 
Намери това в includes/modules.class.php :
PHP:
$querychar = mssql_query("Select * from Character where Name='$character'");
замени с :
PHP:
$querychar = mssql_query("Select * from Character where Name='$character' and AccountID='$account'");

после където са ти if elseif... добави този elseif:

PHP:
elseif(mssql_num_rows($charcheck) != 1) { echo"<font color='red'>This character is not in this account or does not exist! Please go back and try again!</font><br>"; $error=1; }

това е... :)
 
има следния проблем ... като дам за Lost Password
пиша акаунта пиша е-мейл-а и като напиша въпроса и отговора излиза грешка че този въпрос и отговор ги няма в DB
благодаря :)

edit: разгледах lostpassword.php файла и намерих само това
Code:
<?php
if(isset($_POST['submit'])) { lost_password(); }
?>

никъде няма код за проверка на полетата fpas_ques и fpas_answ в MEMB_INFO таблицата

не му разбирам на тва php ама все си мисля че трябва да има такава проверка и после код за извеждане на паролата някъде :)
 
Last edited:
Code:
<?php
if(isset($_POST['submit'])) { lost_password(); }
?>
това означава, че когато се изпълни формата зарежда функцията 'lost_password' . Всички функции се намират в Includes/modules.class.php
 
  • Like
Reactions: swindler and KR373N
благодарско ... значи да търся проблема в ония файл...

edit:
някой да каже къде е грешката... връща грешка че въпроса и отговора не съществуват в базата данни ... а проверих таблицата там са си :) и то в точната колона fpas_ques & fpas_answ

Code:
function lost_password()
{
$account = secure($_POST['login']);
$email = secure($_POST['email']);
$question = secure($_POST['question']);
$answer = secure($_POST['answer']);

check_inject();

$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account'");
$accountcheck = mssql_num_rows($queryaccount);

$querymail = mssql_query("Select * from MEMB_INFO where mail_addr='$email' and memb___id='$account'");
$mailcheck = mssql_num_rows($querymail);

$queryquestion = mssql_query("Select * from MEMB_INFO where fpas_ques='$question' and memb__id='$account' and mail_addr='$email'");
$questioncheck = mssql_num_rows($queryquestion);

$queryanswer = mssql_query("Select * from MEMB_INFO where fpas_answ='$answer' and fpas_ques='$question' and memb__id='$account' and mail_addr='$email'");
$answercheck = mssql_num_rows($queryanswer);

if(empty($account) or empty($email) or empty($question) or empty($answer)) { echo"<font color='red'>You cannot leave any fields blank!</font><br>"; $error=1; }
elseif($accountcheck <= 0) { echo"<font color='red'>Your Login does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
else
{
if($mailcheck <= 0) { echo"<font color='red'>Your E-Mail Address does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
if($questioncheck <= 0) { echo"<font color='red'>Your Secret Question does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
if($answercheck <= 0) { echo"<font color='red'>Your Secret Answer does not exist in our database. Please go back and try again!</font><br>"; $error=1; }

if($error != 1) {

$passwordquery = mssql_query("Select memb__pwd from MEMB_INFO where memb___id='$account'");
$password = mssql_fetch_row($passwordquery);

echo"<font color='green'>Your password has been succesfully generated.Your password is:</font> $password[0] <font color='green'>Change it as fast as you can!</font><br>";

}
}
}
 
Last edited:
по кода няма грешка я сложи и формата от която попълваш да видим там всичко ли е ОК
 
аз и тук не виждам ... уж всичко е както трябва... поне според мен ...
ще прикача и снимка на таблицата ... слага ги в правилните колони в memb_info

Code:
function register()
{
global $md5;
global $servername;

$account = secure($_POST['account']);
$password = secure($_POST['password']);
$repassword = secure($_POST['repassword']);
$email = secure($_POST['email']);
$question = secure($_POST['squestion']);
$awnser = secure($_POST['sanswer']);
$code = secure($_POST['turing']);

$accounts = strlen($account);
$passwords = strlen($password);
$repasswords = strlen($repassword);
$questions = strlen($question);
$awnsers = strlen($awnser);

check_inject();

$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account'");
$accountcheck = mssql_num_rows($queryaccount);

$querymail = mssql_query("Select * from MEMB_INFO where mail_addr='$email'");
$mailcheck = mssql_num_rows($querymail);

$date = date('Y-m-d H:i:s');

if(empty($account) or empty($password) or empty($repassword) or empty($email) or empty($question) or empty($awnser) or empty($code)) { echo"<font color='red'>You cannot leave any fields blank!</font><br>"; $error=1; }
if($_SESSION['image_random_value'] != md5($code)){ echo"<font color='red'>Numbers from image do not match!</font><br>"; $error=1; }
if($accounts < 4) { echo"<font color='red'>Account must be at least 4 symbols</font><br>"; $error=1; }
if($passwords < 4 or $repasswords < 4) { echo"<font color='red'>Password must be at least 4 symbols</font><br>"; $error=1; }
if($questions < 4) { echo"<font color='red'>Secret Question must be at least 4 symbols</font><br>"; $error=1; }
if($awnsers < 4) { echo"<font color='red'>Secret Answer must be at least 4 symbols</font><br>"; $error=1; }
if($password != $repassword) { echo"<font color='red'>Passwords didn't match!</font><br>"; $error=1; }
if($accountcheck != 0) { echo"<font color='red'>Account is already in use!</font><br>"; $error=1; }
if($mail != 0) { echo"<font color='red'>Email is already in use!</font><br>"; $error=1; }

if($error != 1) {

echo"<font color='green'>Account $account has been succsesfuly created on $date!</font><br>";

if($md5 == 0) {
$a = mssql_query("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,fpas_ques,fpas_answ) VALUES ('$account','$password','$servername','1','$email','$date','$date','$date','$date','1','0','0','$question','$awnser')");
$b = mssql_query("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2010','1',1234,'$account','$account',1,'7','6','3','6','6','$date','0' )");
}
else
{
$a = mssql_query("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,fpas_ques,fpas_answ) VALUES ('$account',md5($password),'$servername','1','$email','$date','$date','$date','$date','1','0','0','$question','$awnser')");
$b = mssql_query("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2010','1',1234,'$account','$account',1,'7','6','3','6','6','$date','0' )");
}
}
}


ae8S.jpg
 
Last edited:
аз и тук не виждам ... уж всичко е както трябва... поне според мен ...
ще прикача и снимка на таблицата ... слага ги в правилните колони в memb_info

Code:
function register()
{
global $md5;
global $servername;

$account = secure($_POST['account']);
$password = secure($_POST['password']);
$repassword = secure($_POST['repassword']);
$email = secure($_POST['email']);
$question = secure($_POST['squestion']);
$awnser = secure($_POST['sanswer']);
$code = secure($_POST['turing']);

$accounts = strlen($account);
$passwords = strlen($password);
$repasswords = strlen($repassword);
$questions = strlen($question);
$awnsers = strlen($awnser);

check_inject();

$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account'");
$accountcheck = mssql_num_rows($queryaccount);

$querymail = mssql_query("Select * from MEMB_INFO where mail_addr='$email'");
$mailcheck = mssql_num_rows($querymail);

$date = date('Y-m-d H:i:s');

if(empty($account) or empty($password) or empty($repassword) or empty($email) or empty($question) or empty($awnser) or empty($code)) { echo"<font color='red'>You cannot leave any fields blank!</font><br>"; $error=1; }
if($_SESSION['image_random_value'] != md5($code)){ echo"<font color='red'>Numbers from image do not match!</font><br>"; $error=1; }
if($accounts < 4) { echo"<font color='red'>Account must be at least 4 symbols</font><br>"; $error=1; }
if($passwords < 4 or $repasswords < 4) { echo"<font color='red'>Password must be at least 4 symbols</font><br>"; $error=1; }
if($questions < 4) { echo"<font color='red'>Secret Question must be at least 4 symbols</font><br>"; $error=1; }
if($awnsers < 4) { echo"<font color='red'>Secret Answer must be at least 4 symbols</font><br>"; $error=1; }
if($password != $repassword) { echo"<font color='red'>Passwords didn't match!</font><br>"; $error=1; }
if($accountcheck != 0) { echo"<font color='red'>Account is already in use!</font><br>"; $error=1; }
if($mail != 0) { echo"<font color='red'>Email is already in use!</font><br>"; $error=1; }

if($error != 1) {

echo"<font color='green'>Account $account has been succsesfuly created on $date!</font><br>";

if($md5 == 0) {
$a = mssql_query("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,fpas_ques,fpas_answ) VALUES ('$account','$password','$servername','1','$email','$date','$date','$date','$date','1','0','0','$question','$awnser')");
$b = mssql_query("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2010','1',1234,'$account','$account',1,'7','6','3','6','6','$date','0' )");
}
else
{
$a = mssql_query("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,fpas_ques,fpas_answ) VALUES ('$account',md5($password),'$servername','1','$email','$date','$date','$date','$date','1','0','0','$question','$awnser')");
$b = mssql_query("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2010','1',1234,'$account','$account',1,'7','6','3','6','6','$date','0' )");
}
}
}


ae8S.jpg




или аз съм збъркал или просто ми даваш функцията за регистър това означава
PHP:
 function register()
дай ми за
PHP:
funcion lost_password()


дай ми от modules/lost_password.php квото имаш вътре