how edit this in pc outside vmware to function?
login5.php
<?php
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'] ;
//$id = $_POST['id'] ;
//$pw = $_POST['passwd'] ;
//$ip = $_SERVER['REMOTE_ADDR'] ;
if ( $id == "" ) die('-1|-2|-1');
if ( $nation == "" ) die('-1|-3|-1');
// too lazy to do regexp for version, imma skip it -> die('-1|-4|-1');
if ( $pcode == "" ) die('-1|-5|-1');
if ( $nation == "" ) die('-1|-3|-1');
# 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();
?>
in my thought this is the problem in error 3002
i dont have know Knowledge in php thats why i cant connect in db of mssql.. im noob
just to want have local server for my friend and comp.shop player .. anyone could help me?? thank
you in advance!
Quote:
Originally Posted by ultimate-pinoy
how edit this in pc outside vmware to function?
login5.php
<?php
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'] ;
//$id = $_POST['id'] ;
//$pw = $_POST['passwd'] ;
//$ip = $_SERVER['REMOTE_ADDR'] ;
if ( $id == "" ) die('-1|-2|-1');
if ( $nation == "" ) die('-1|-3|-1');
// too lazy to do regexp for version, imma skip it -> die('-1|-4|-1');
if ( $pcode == "" ) die('-1|-5|-1');
if ( $nation == "" ) die('-1|-3|-1');
# 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();
?>
in my thought this is the problem in error 3002
i dont have know Knowledge in php thats why i cant connect in db of mssql.. im noob
just to want have local server for my friend and comp.shop player .. anyone could help me?? thank
you in advance!
|
and if no one know(maybe but they dont want to help) about this can anyone upload asp version of rohanauth???