[Guide] Starting your LOCAL rohan private server

08/06/2013 21:23 moemet#736
@Angelboss

If you're using xammp-apache as webserver then you shud make sure that all those 3 .php work .. Try my method i post before. go to your browser and try this
Code:
on address type :

127.0.0.1:httpport/rohanauth/sendcode3.asp?id=urid&passwd=urpass 

if respond = -202 then bypass succeed
Back then when i tried using xammp-apache (1.8.2-0)as webserver.. i got 2 problems :
1. Making .asp work in apache is not easy
2. Those 3 .php require httpresponse class support .. which is not included in that current php ver.
08/07/2013 13:54 flyghter#737
Hi guys what i id i have to chenge on SQL ?

// Title text
$title = "Registration Page";

// Copyright text
$copy = "Copyright © 2013 by RitoYuuki ";

// Change XXXX to your computer name
$connection_string = "DRIVER={SQL Server};SERVER=192.168.0.175;DATABASE=RohanUser";

// Change to your SQLEXPRESS username and password
$user = "sa";
$pass = "wild3108";

// DONT EDIT THIS
include_once "class.func.php";
$func=new func;
08/07/2013 14:10 moemet#738
Quote:
Originally Posted by flyghter View Post
Hi guys what i id i have to chenge on SQL ?

// Title text
$title = "Registration Page";

// Copyright text
$copy = "Copyright © 2013 by RitoYuuki ";

// Change XXXX to your computer name
$connection_string = "DRIVER={SQL Server};SERVER=192.168.0.175;DATABASE=RohanUser";

// Change to your SQLEXPRESS username and password
$user = "sa"; <-----
$pass = "wild3108"; <----

// DONT EDIT THIS
include_once "class.func.php";
$func=new func;
I still dont get your question..but if it's about regist*.php then you shud change that 192.168.0.175 <- to your SQL ip (normally it will localloop unless you host SQL at diff point ) and SQL login&password (sa&wild*)
08/07/2013 14:11 kennethz008#739
// Change to your SQLEXPRESS username and password
$user = "sa";
$pass = "your db pass";
08/07/2013 14:53 AngelBoss#740
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
08/07/2013 15:10 kennethz008#741
Quote:
Originally Posted by AngelBoss View Post
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
Whats the problem with 64bit? Im using window 7 ultimate sp1 64bit and im running my local server w/o any problem:confused:
08/07/2013 15:52 moemet#742
Quote:
Originally Posted by AngelBoss View Post
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
You can check this site .. since some people encounter same problem with 64

Code:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/0e18b438-09c8-43c9-93fd-b3401545bd8c/php54-and-sqlsrv-problem

part of chat :
"You have 64-bit PHP installed, which will not be able to load the SQLSRV extension, which is built as 32-bit."
Hopefully help.. i guess running server outside vmware not as easy as it stated in first page..but that's fun of doing this puzzle :D
08/08/2013 15:45 ultimate-pinoy#743
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 View Post
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???
08/08/2013 16:23 moemet#744
@ultimate-pinoy

Are you talking about gateserver error 3002... or are you talking about login5 script ? coz as far as i know the only script that need edited is serverlist5.php ... change the format into your ip. And if you're looking asp version of this login5 then you need to change xammp-apache with another webserver.

In order to run server outside vmware you need to make sure then these 4 files work.
1. dbtserver.exe
2. logserver.exe
3. map*.exe
4. aiserver.exe

Plus 3 working script for webserver either in asp or php.
08/09/2013 04:24 ultimate-pinoy#745
can anyone pls upload your working php script,that will work outside vmware..
08/09/2013 12:40 ermawati#746
HELP ALL, What Can I Do..

[Only registered and activated users can see links. Click Here To Register...]
08/10/2013 08:32 itdhos#747
tech me please in TeamViewer ...
08/11/2013 12:51 Nakamz#748
can anyone help me ? I need rohan databasse
08/11/2013 13:10 eberic1#749
Is RitoYuuki scammer ?
08/18/2013 03:25 ermawati#750
Any Solution?

Quote:
[Only registered and activated users can see links. Click Here To Register...]