php registration

Page 1 of 2 12 LastLast
Results 1 to 25 of 46
  1. #1
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts

    php registration

    i've managed to write php registration script...
    Most problem is to rewrite l2pass procs...
    I will post it in the evening (time: +3 msk)
    You will have 2 rewrite it to fit your need, coz it's a kind of module for my cms
    And it's really simple by now.. just account and pass


  2. #2
    Elite Member Calynx is offline
    Member +Rank
    Jun 2004 Join Date
    167Posts
    nice hope it will work out well

  3. #3
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    Here...
    http://dhhq.narod.ru/phpreg.rar
    You must enable mssql in your php.ini... on win32 it's

    Code:
    extension=php_mssql.dll
    p.s. As i said there is just user:pass form, it's very simple and you can use it to make your own... I'll probably make a better one later. Just don't have time for this at the moment.

  4. #4
    Elite Member Calynx is offline
    Member +Rank
    Jun 2004 Join Date
    167Posts
    thanks a bunch, this should help me out a great deal

  5. #5
    Elite Member chikebum is offline
    Member +Rank
    May 2004 Join Date
    138Posts
    links broken...mirror pls :)...

  6. #6
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    it's not broken... just click link in yellow bar... it's a kind of ad or dunno how to call it... It's always appears with direct links...

  7. #7
    Elite Member Calynx is offline
    Member +Rank
    Jun 2004 Join Date
    167Posts
    i'm using it right now, it works fine

  8. #8
    Member xion is offline
    MemberRank
    May 2003 Join Date
    ...Location
    46Posts
    Fatal error: Call to undefined function: mssql_connect() in /home/xxx/public_html/reg.php on line 50

    please help

  9. #9
    Newbie Delta-][ is offline
    MemberRank
    Oct 2004 Join Date
    The NetherlandsLocation
    5Posts
    Quote Originally Posted by xion
    Fatal error: Call to undefined function: mssql_connect() in /home/xxx/public_html/reg.php on line 50

    please help
    check rstrst's post about the php.ini
    You haven't enabled the php_mssql.dll extension yet.

  10. #10
    Member koreanam is offline
    MemberRank
    Oct 2004 Join Date
    KoreaLocation
    34Posts
    so good!!

  11. #11
    Member angelofanarchy is offline
    MemberRank
    Nov 2004 Join Date
    46Posts
    Code:
    Notice: Undefined variable: account in c:\inetpub\wwwroot\reg\reg.php on line 13
    
    Notice: Undefined variable: l2password in c:\inetpub\wwwroot\reg\reg.php on line 14

    howto fix?

  12. #12
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    Your php setup needs all vars to be defined... It's a security feature and is not default setup... Look at php.net docs on how to define vars and make reqired changes to my code...
    Code:
    global $account;
    global $l2password;
    But it will probably ask to define all vars
    Last edited by rstrst; 04-11-04 at 02:16 PM.

  13. #13
    Newbie DreadWolf is offline
    MemberRank
    Sep 2004 Join Date
    12Posts
    Thanks for the hard work in writing the encryption function and SQL queries. I made my own version of the code that is integrated into my forums. It's nice to see people contributing to the community, also I am not ASP savvy at all and may have taken me a while to find all the little nuances of getting the registration to work.

  14. #14
    Member angelofanarchy is offline
    MemberRank
    Nov 2004 Join Date
    46Posts
    Code:
    Fatal error: Call to undefined function: mssql_connect() in c:\inetpub\wwwroot\reg\reg.php on line 52
    Any clues to wats going on....?

    I dont know if i setup the MSSQL db correctly since its my first time round and Hick's guide wasn't very specific when it can to that part =/



    ^^

  15. #15
    Newbie PhysalisGP is offline
    MemberRank
    Sep 2004 Join Date
    Baton Rouge, LALocation
    13Posts
    I'm not really sure what's wrong. It connects to the database, opens it, and then freezes.

    In the code it's the part where it creates the ssn and encrypts the password.


    "

    Trying to register account:"account" with password:"pass"

    DB Connection established:

    DataBase opened:

    "

    If someone could tell me why it'd be much appreciated.

  16. #16
    Newbie Thalagyrt is offline
    MemberRank
    Nov 2004 Join Date
    Miami, FLLocation
    18Posts
    I've done some work based on this script, it's avaliable at ftp://ftp.betaforce.com:2140/char.php if anyone wants to play around with it. There's a few bugs that I've fixed in my live version that aren't in that version, and I'll be uploading it soon, but basically the features it has: add account, change password, get characters for account, get a list of online characters (sorted however you want), get list of GMs including online/offline status, amongst other things. I'll post the updated one soon... Many thanks to rstrst for the l2pass file. :)

  17. #17
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    angelofanarchy: edit php.ini to make mssql module work
    PhysalisGP: any errors??

  18. #18
    Newbie PhysalisGP is offline
    MemberRank
    Sep 2004 Join Date
    Baton Rouge, LALocation
    13Posts
    Quote Originally Posted by rstrst
    angelofanarchy: edit php.ini to make mssql module work
    PhysalisGP: any errors??
    No errors, it just stops right there.

  19. #19
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    does it stops loading the page??? if browser continues to load and freezes to continue, then i dunno, coz there is no cycles it can freeze in.
    if browser stops, then there is some errors, but php setup is not to show them... enable error reporting in php.ini

  20. #20
    Newbie angelovdeath is offline
    MemberRank
    Mar 2004 Join Date
    -Location
    2Posts
    Quote Originally Posted by xion
    Fatal error: Call to undefined function: mssql_connect() in /home/xxx/public_html/reg.php on line 50

    please help
    This does happen when you enable the lib mssql in php.ini, but when using it with apache ( not sure about iis ) you need to recompile your apache with php -with mssql. I had the same problem with this along time ago what I did was to get a new version of php configure it ( and make sure you have the dll for mssql most releases come standard with it ) and install it with apache.

    Take Care

  21. #21
    Newbie Sinsfulsoulz is offline
    MemberRank
    Nov 2004 Join Date
    Daytona Beach,Location
    23Posts
    Hmm This script doesnt seem to work for me. Im running the aybss web server and php is enabled.
    It returns this line on error $con = mssql_connect ("127.0.0.1", "user", "password") Line 52.
    Id really like to get this working because im good and sick of Asp. Anyway im sort of stuck here. Is this line correct? if not any help id really be thankfull for any help.

    Also Thanks for makeing a Php reg page
    Asp is a nightmare that ill be thankfull to live without.
    Last edited by Sinsfulsoulz; 10-11-04 at 06:12 AM.

  22. #22
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    Sinsfulsoulz: php doesn't care of web server... Edit php.ini and enable mssql extension....
    plz i can't repeat it for everyone

  23. #23
    Newbie Ice-T-WTF is offline
    MemberRank
    Nov 2004 Join Date
    9Posts
    if you have enabled the mssql.dll extention but it still dosnt work, you also need to add this in find the line that says "; Directory in which the loadable extensions (modules) reside."
    and change the directory to were your php moduel dlls actualy are.. Example

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "C:\PHP\extensions"

    then this should fix the phps

  24. #24
    Newbie Sinsfulsoulz is offline
    MemberRank
    Nov 2004 Join Date
    Daytona Beach,Location
    23Posts
    Hmm ive done all that ...

  25. #25
    Sorcerer Supreme rstrst is offline
    Member +Rank
    Oct 2004 Join Date
    Russia, MoscowLocation
    320Posts
    post exact error plz... maybe you run mssql on different port? (not defalt one)
    or something wrong with your ip, login and pass



Page 1 of 2 12 LastLast

Advertisement