XPT Account Management System

Admin

Tổng tư lệnh
Staff member
What is this ?
- PHP script made by thaikhoa@sonnb XPT Administrator . Help you easier to management your Server

What does this do?

For User:
1. Register account , change password
2. Edit skill , distribute skill and static
3. Create charactar
4. Rename or delete char

For GM:
5. Edit char level
6. Edit User Rank
7. Edit Gold

How to install ?
DOWNLOAD AND INSTALL PHP BINARY FROM http://www.php.net/downloads.php

CLICK NEXT, NEXT, NEXT, SELECT ISS CGI AND NEXT THEN CLICK INSTALL

USE ODBC

edit : config.php to match your server config

Enjoy
 

Attachments

tr1pl3x1

New Member
Trả lời: XPT Account Management System

can make picture what we have to edit and what we have to put on ODBC ? hmm what i have to edit in cònig.ip only sqlexpress other name ?
 

Admin

Tổng tư lệnh
Staff member
Ðề: XPT Account Management System

can make picture what we have to edit and what we have to put on ODBC ? hmm what i have to edit in cònig.ip only sqlexpress other name ?
thats all to make this scripts work .
 

tr1pl3x1

New Member
Trả lời: XPT Account Management System

hmm but how can i put it in odbc i nêd pic o_O plz^^



when i tryed without odbc it said .. XPT: Account manager
-------------------------

Please have a look to the config.php file.


and what i have to do with php binary???? hmm i put the mângment in inetpup wwwrooot
 

Admin

Tổng tư lệnh
Staff member
Ðề: XPT Account Management System

show my post how to install session . Dont need config ODBC . Pls read read
 

tr1pl3x1

New Member
Trả lời: XPT Account Management System

USE ODBC u wrote.... i dunno what u mean and why it come

XPT: Account manager
-------------------------

Please have a look to the config.php file.

plz come msn
 

hoangnz

New Member
Ðề: XPT Account Management System

admin co thể làm file video hướng dẫn về cái này được không?Cái này khó quá mà chả có hướng dẫn tỉ mỉ...Nếu mà tớ muốn edit skill and tier rank up quest băng GUI hay cái controler User có được hkoong và nếu được admin có thể chỉ giúp..cảm ơn nhiều
 

Admin

Tổng tư lệnh
Staff member
Chẳng có gì mà phải hướng dẫn = video cả . Cứ cài php vô rồi sửa file config.php là chạy

@tr1pl3x1: Why must care? whats the error which did you get?
 

Xaldin

New Member
Ðề: XPT Account Management System

i kno that i get an error.

one second. lol i have moved away from asp's to php's.

i will post the text that it tells me

Fatal error: Call to undefined function: odbc_connect() in /home/www/darkpristontale.freehostia.com/XPTAcc/index.php on line 108

it baffles me
 

Admin

Tổng tư lệnh
Staff member
i kno that i get an error.

one second. lol i have moved away from asp's to php's.

i will post the text that it tells me

Fatal error: Call to undefined function: odbc_connect() in /home/www/darkpristontale.freehostia.com/XPTAcc/index.php on line 108

it baffles me
did you config ODBC . You must have ODBC named c8master
 

hoangnz

New Member
Ðề: XPT Account Management System

Minh download về và cài PHP install PHP vô C:\Inetpub\ và install XPT account Manager vô C:\Inetpub\wwwroot\... file config mình chỉnh thế này
<?
define("XPT","1");

/*----------------------------------------------------------------------
(c)2007 THAIKHOA - XTREMEVNPT TEAM (JUST BE SOLO ^_^)
USED FOR NON-COMMERCIAL AND FAN OF PRISTONTALE SERVER
CONTACT ME IF YOU HAVE SOME PROBLEMS
EMAIL: thaikhoa@gmail.com
XTREMEVN PT
GAME IP: 210.245.33.245
WEB: http://210.245.33.245:8080
THANK YOU FOR USING MY XPT SCRIPTS!
THANK L3zToXz FOR GOOD IDEAS AND THE XP FILE!

DOWNLOAD AND INSTALL PHP BINARY FROM http://www.php.net/downloads.php
CLICK NEXT, NEXT, NEXT, SELECT ISS CGI AND NEXT THEN CLICK INSTALL
USE ODBC
----------------------------------------------------------------------*/

// version;
$version="XPT: Account manager/ version 1.23";

include_once "class.func.php";
$func=new func;

// PRISTON TALE SERVER ROOT
$rootDir = "C:\PTServer";

// PRISTON TALE DATASERVER
// EVERYONE PERMISSION
$dirUserData = $rootDir."DataServer/userdata/";
$dirUserInfo = $rootDir."DataServer/userinfo/";
$dirUserDelete = $rootDir."DataServer/deleted/";

// ADMIN ACCOUNT
// FULLY CONTROL CHARACTER
// EDIT LEVEL / GOLD / MOVE CHAR / RENAME CHAR / CHANGE CLASS / RANK UP TIER / SHOW USER PASSWORD
$adminList=array();
$adminList[]="hoangnz";
$adminList[]="clan";
$adminList[]="caohuong18";

// MOD ACCOUNT
// MOVE CHAR / RENAME CHAR / CHANGE CLASS / CREATE / RECOVER / DELTETE
$modList=array();
$modList[]="link";

// NORMAL USER
// CREATE / RECOVER / DELTETE / EDIT SKILL,STATE POINTS / CREATE, CHANGE PW ACCOUNT / RECOVER HAIR


// CHANGE HUNG
$connection_string ="server='HUNG\SQLEXPRESS';DATABASE=accountdb';

// CHANGE SQLEXPRESS USER AND PASSWORD
$user = 'hoangnz';
$pass = 'hoang1';
?>
và sau đó mình log in vô web http://127.0.0.1/index.php
thì hiên ra lỗi trang web chỉ có logo dưới phần log in trang web mình thấy cả code
$_POST[username], "PW"=>$_POST[password], ); for($i=0;$i0) { session_register("usercode"); $farr = odbc_fetch_array($q); $_SESSION["ID"]=$farr[userid]; echo "LOGIN SUCCEED!"; } else echo "CONNECTION FAILED!"; } echo "
BACK"; } ?>
phần sign up acc trong web hiên cả ra code cũng vậy
$_POST[username], "PW"=>$_POST[password], ); for($i=0;$iis_valid_string($_POST[username]) && !$func->is_valid_string($_POST[password])) { $usernameP=$_POST[username]; $query = "SELECT * FROM [accountdb].[dbo].[".( strtoupper($usernameP[0]) ) ."GameUser] WHERE [userid]='$usernameP'"; $q = odbc_exec($connection, $query); $qt = odbc_do($connection, $query); $i = 0; while(odbc_fetch_row($qt)) $i++; if($i>0) echo"USERNAME $_POST[username] HAVE ALREADY TAKEN!"; else { $query = "INSERT INTO [accountdb].[dbo].[".( strtoupper($usernameP[0]) ) ."GameUser] ([userid],[Passwd],[RegistDay],[DisuseDay],[inuse],[Grade],[EventChk],[SelectChk],[BlockChk],[SpecialChk],[Credit],[DelChk],[Channel]) values('" . $_POST[username] . "','" . $_POST[password] . "','12-12-2004','12-12-2012','0','U','0','0','0','0','0','0','" . $_SERVER['REMOTE_IP'] . "')"; $q = odbc_exec($connection, $query); if($q) echo"USERNAME $_POST[username] HAVE BEEN REGISTERED!"; } } else echo"PLEASE RE-ENTER USENAME AND PASSWORD, REMOVE ALL SPECIAL CHARACTER!"; } echo "
BACK"; } ?>


Chả biết mình làm sai chỗ nào vì mình không rành về PHP lắm
 

Admin

Tổng tư lệnh
Staff member
Cài đặt PHP chưa được , Cần gì cài vô wwwroot . Coi lại cách cài đặt PHP nhé .
 

x5452

Có chuyện gì vậy ^^
Staff member
sao lại share vậy ?, ko hiểu gì cả, tưởng để bản quyền chứ
 
H

hoahong22

Guest
Ðề: XPT Account Management System

tư lệnh sao không điều chỉnh thành tiếng việt đi để tiếng anh khó đọc quá ty tư lệnh nhiều
 

Admin

Tổng tư lệnh
Staff member
Dễ đọc mà , có vài từ thôi , tại có cả người ta người tây tiếng anh cho nó dễ . :D
 

codename

New Member
Ðề: XPT Account Management System

$connection_string = 'DRIVER={SQL Server};SERVER=NHATANH\SQLEXPRESS;DATABASE=accountdb';'
DRIVER={SQL Server} <-- What need to put in this field? I got the same error as Hoangnz (i 'd chosen IIS CGI when setting up the PHP)
 

Admin

Tổng tư lệnh
Staff member
$connection_string = 'DRIVER={SQL Server};SERVER=NHATANH\SQLEXPRESS;DATABASE=account db';'
DRIVER={SQL Server} <-- What need to put in this field? I got the same error as Hoangnz (i 'd chosen IIS CGI when setting up the PHP)
Can you see the comment line?
Code:
// CHANGE SERVER TO YOUR COMPUTER NAME
 
Top