Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rohan
You last visited: Today at 18:19

  • Please register to post and access all features, it's quick, easy and FREE!

 

Login5.php Fix or Not check this!

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 30
Received Thanks: 0
Login5.php Fix or Not check this!

You must register and activate your account in order to view images.

im not sure to this...



maxsalvatore is offline  
Old   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 643
Received Thanks: 201
That's normal. To end this you can add the command error_reporting(0);

about this command:



PHP Code:
<?php
error_reporting
(0);
include_once  
'include/dbconn.php'  ;

$id     = ( isset( $_GET['id'] )     ) ? $_GET['id']     : $_POST['id']     ;
$pw     = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver    = ( isset( $_GET['ver'] )    ) ? $_GET['ver']    : $_POST['ver']    ;
$test   = ( isset( $_GET['test'] )   ) ? $_GET['test']   : $_POST['test']   ;
$code   = ( isset( $_GET['code'] )   ) ? $_GET['code']   : $_POST['code']   ;
$pcode  = ( isset( $_GET['pcode'] )  ) ? $_GET['pcode']  : $_POST['pcode']  ;
$ip     $_SERVER['REMOTE_ADDR']                                           ;
$nation $_GET['nation']                                                   ;



# calling sqlsrv stored procedure
$tsql "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id    = -1                  ;
$sess_id    str_repeat(' ',36)  ;
$run_ver        str_repeat(' ',20)  ;
$bill_no        = -1                  ;
$grade            = -1                  ;
$ret        = -1                  ;


$tsql_params = array(
  
$id                                   ,
  
md5($pw)                              ,
  
$nation                               ,
  
$ver                                  ,
  
$test                                 ,
  
$ip                                   ,
  
$code                                 ,
  array(&
$user_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$sess_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$run_ver ,  SQLSRV_PARAM_OUT ) ,
  array(&
$bill_no ,  SQLSRV_PARAM_OUT ) ,
  array(&
$grade   ,  SQLSRV_PARAM_OUT ) ,
  array(&
$ret     ,  SQLSRV_PARAM_OUT )
);

$res  sqlsrv_query($oConn,$tsql,$tsql_params);
if (
$res === false ){
     die( 
print_rsqlsrv_errors(), true));
}

HttpResponse::setData(  join'|',  array($sess_id,$user_id,$run_ver,$grade,$code) )  );
HttpResponse::send();
?>


oziel235 is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Jul 2016
Posts: 30
Received Thanks: 0
Quote:
Originally Posted by oziel235 View Post
That's normal. To end this you can add the command error_reporting(0);

about this command:



PHP Code:
<?php
error_reporting
(0);
include_once  
'include/dbconn.php'  ;

$id     = ( isset( $_GET['id'] )     ) ? $_GET['id']     : $_POST['id']     ;
$pw     = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver    = ( isset( $_GET['ver'] )    ) ? $_GET['ver']    : $_POST['ver']    ;
$test   = ( isset( $_GET['test'] )   ) ? $_GET['test']   : $_POST['test']   ;
$code   = ( isset( $_GET['code'] )   ) ? $_GET['code']   : $_POST['code']   ;
$pcode  = ( isset( $_GET['pcode'] )  ) ? $_GET['pcode']  : $_POST['pcode']  ;
$ip     $_SERVER['REMOTE_ADDR']                                           ;
$nation $_GET['nation']                                                   ;



# calling sqlsrv stored procedure
$tsql "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id    = -1                  ;
$sess_id    str_repeat(' ',36)  ;
$run_verstr_repeat(' ',20)  ;
$bill_no= -1                  ;
$grade= -1                  ;
$ret        = -1                  ;


$tsql_params = array(
  
$id                                   ,
  
md5($pw)                              ,
  
$nation                               ,
  
$ver                                  ,
  
$test                                 ,
  
$ip                                   ,
  
$code                                 ,
  array(&
$user_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$sess_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$run_ver ,  SQLSRV_PARAM_OUT ) ,
  array(&
$bill_no ,  SQLSRV_PARAM_OUT ) ,
  array(&
$grade   ,  SQLSRV_PARAM_OUT ) ,
  array(&
$ret     ,  SQLSRV_PARAM_OUT )
);

$res  sqlsrv_query($oConn,$tsql,$tsql_params);
if (
$res === false ){
     die( 
print_rsqlsrv_errors(), true));
}

HttpResponse::setData(  join'|',  array($sess_id,$user_id,$run_ver,$grade,$code) )  );
HttpResponse::send();
?>
Okey thank u. Finally i fix it. Tnxfor infos.

Sent from my Y511-U00 using Tapatalk

Quote:
Originally Posted by oziel235 View Post
That's normal. To end this you can add the command error_reporting(0);

about this command:



PHP Code:
<?php
error_reporting
(0);
include_once  
'include/dbconn.php'  ;

$id     = ( isset( $_GET['id'] )     ) ? $_GET['id']     : $_POST['id']     ;
$pw     = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver    = ( isset( $_GET['ver'] )    ) ? $_GET['ver']    : $_POST['ver']    ;
$test   = ( isset( $_GET['test'] )   ) ? $_GET['test']   : $_POST['test']   ;
$code   = ( isset( $_GET['code'] )   ) ? $_GET['code']   : $_POST['code']   ;
$pcode  = ( isset( $_GET['pcode'] )  ) ? $_GET['pcode']  : $_POST['pcode']  ;
$ip     $_SERVER['REMOTE_ADDR']                                           ;
$nation $_GET['nation']                                                   ;



# calling sqlsrv stored procedure
$tsql "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id    = -1                  ;
$sess_id    str_repeat(' ',36)  ;
$run_ver        str_repeat(' ',20)  ;
$bill_no        = -1                  ;
$grade            = -1                  ;
$ret        = -1                  ;


$tsql_params = array(
  
$id                                   ,
  
md5($pw)                              ,
  
$nation                               ,
  
$ver                                  ,
  
$test                                 ,
  
$ip                                   ,
  
$code                                 ,
  array(&
$user_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$sess_id ,  SQLSRV_PARAM_OUT ) ,
  array(&
$run_ver ,  SQLSRV_PARAM_OUT ) ,
  array(&
$bill_no ,  SQLSRV_PARAM_OUT ) ,
  array(&
$grade   ,  SQLSRV_PARAM_OUT ) ,
  array(&
$ret     ,  SQLSRV_PARAM_OUT )
);

$res  sqlsrv_query($oConn,$tsql,$tsql_params);
if (
$res === false ){
     die( 
print_rsqlsrv_errors(), true));
}

HttpResponse::setData(  join'|',  array($sess_id,$user_id,$run_ver,$grade,$code) )  );
HttpResponse::send();
?>


and the SendCode3.php like this? it is correct

Output on web: -202

Input:
PHP Code:
<?php
include_once  'include/dbconn.php'  ;

$id = ( isset( $_GET['id'] )     ) ? $_GET['id']     : $_POST['id']     ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ip $_SERVER['REMOTE_ADDR']                                  ;


# calling sqlsrv stored procedure
$tsql "{call [dbo].[ROHAN3_SendCode](?,?,?,?)}";
$ret  = -1                                      ;

$tsql_params = array(
  
$id                                   ,
  
md5($pw)                              ,
  
$ip                                   ,
  array(&
$ret     ,  SQLSRV_PARAM_OUT )
);

$res  sqlsrv_query($oConn,$tsql,$tsql_params);
if (
$res === false ){
     die( 
print_rsqlsrv_errors(), true));
}
$ret = -202;
HttpResponse::setData$ret );
HttpResponse::send();
?>
maxsalvatore is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Flyff.a check b check[ SonGoku sammlung aller Fragen]
Hey Leute nun ich use die Chaos Files als Test einfahc mal so... nun ist da dieser Flyff.b check oder a.check damit keiner die datasubs...
4 Replies - Flyff PServer - Discussions / Questions
[WTT]No CRC check and gg bypass for dekaron eu and no crc check for 2moons
Look at the title:rolleyes: I wanna trade it for 50mill on dekaron eu. just add me to msn for proofs [email protected]
1 Replies - Dekaron Trading



All times are GMT +2. The time now is 18:19.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.