XPT Account Management System

Discussion in 'Offline Priston Tale' started by Admin, Mar 31, 2007.

  1. Admin

    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
     

    Attached Files:

  2. tr1pl3x1

    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 ?
     
  3. Admin

    Admin Tổng tư lệnh Staff Member

    Ðề: XPT Account Management System

    thats all to make this scripts work .
     
  4. tr1pl3x1

    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
     
  5. Admin

    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
     
  6. tr1pl3x1

    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
     
  7. hoangnz

    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
     
  8. Admin

    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?
     
  9. Xaldin

    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
     
  10. Admin

    Admin Tổng tư lệnh Staff Member

    did you config ODBC . You must have ODBC named c8master
     
  11. Xaldin

    Xaldin New Member

    Ðề: XPT Account Management System

    o

    xD i used to but i renamed it
     
  12. Xaldin

    Xaldin New Member

    Ðề: XPT Account Management System

    EDIT:

    i do have one named c8master.

    thats odd
     
  13. hoangnz

    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
     
  14. Admin

    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é .
     
  15. x5452

    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ứ
     
  16. hoahong22

    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
     
  17. Admin

    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
     
  18. codename

    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)
     
  19. hoangnz

    hoangnz New Member

    Ðề: XPT Account Management System

    ừ chả hiểu sao install PHP rùi...copy toan bo cai acc manager vào cai wwwroot xong rùi vô cái http://127.0.0.1//index.php ma lỗi một đống chả hiểu sao nữa
     
  20. Admin

    Admin Tổng tư lệnh Staff Member

    Can you see the comment line?
    Code:
    // CHANGE SERVER TO YOUR COMPUTER NAME
    
     
    thanh0225 likes this.

Share This Page