|
You last visited: Today at 15:01
Advertisement
Login5.php Fix or Not check this!
Discussion on Login5.php Fix or Not check this! within the Rohan forum part of the MMORPGs category.
01/18/2017, 10:17
|
#1
|
elite*gold: 0
Join Date: Jul 2016
Posts: 41
Received Thanks: 1
|
Login5.php Fix or Not check this!
im not sure to this...
|
|
|
01/18/2017, 21:33
|
#2
|
elite*gold: 0
Join Date: May 2009
Posts: 696
Received Thanks: 245
|
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_r( sqlsrv_errors(), true)); } HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) ); HttpResponse::send(); ?>
|
|
|
01/19/2017, 00:16
|
#3
|
elite*gold: 0
Join Date: Jul 2016
Posts: 41
Received Thanks: 1
|
Quote:
Originally Posted by oziel235
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_r( sqlsrv_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
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_r( sqlsrv_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_r( sqlsrv_errors(), true)); } $ret = -202; HttpResponse::setData( $ret ); HttpResponse::send(); ?>
|
|
|
Similar Threads
|
Flyff.a check b check[ SonGoku sammlung aller Fragen]
08/07/2012 - Flyff Private Server - 4 Replies
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 manupulieren kann... soo nun mache ich sie in programm und starte alle Server aber gehe ich ingam ekann ich immernoch range asal machen und Client crasht nichtmal...
2 Frage noch antihack er wird bei mir Ingam enicht angezeigt was hat den Chaos Files für eine Headmark weis es einer?
|
[WTT]No CRC check and gg bypass for dekaron eu and no crc check for 2moons
10/18/2008 - Dekaron Trading - 1 Replies
Look at the title:rolleyes: I wanna trade it for 50mill on dekaron eu.
just add me to msn for proofs
[email protected]
|
All times are GMT +2. The time now is 15:01.
|
|