Zippy
Razor Creator
This code was originally part of UOGamers: Rebirth (a UOGamers/RunUO shard active in 2005-2006). [Or sometimes known as "the great Zippy code dump of 2011"]
The attached file contains most of the pieces necessary to create a working MySQL account system where the game server and PHP code share a central database for account management. Changes made via the web are available instantly inside the game server.
Features include the ability for users to manage their own IP address mask/filter blocks. Also accounts are created via the web server and confirmed via e-mail before logins are allowed. Also has "forgot password".
How to set up the SQL server: The last time I did this was in 2005. At that time, once could download MyODBC which would allow a "Data Service Name (DSN)" to be set up through the Winodws control pannel which would associate a name (like "runuo-db") with a MySQL server IP address + password + database configuration.
The RunUO Code is not complete. This is the "Accounts" folder portion of the code, which is a semi-drop in replacement. This code will probably need to be modified or extended to support RunUO 2.0+ and some portions of code outside of here (like the Admin Gump) may also need modification. I think some of the things the Admin Gump does with looping through accounts can be extremely slow when those operations hit the database.... and so some of that AdminGump code might need to be refactored or disabled.
The PHP is from a different time in internet security. In all likelihood it does contain some type of SQL injection vulnerability. I don't recommend using this code as-is on a public website/RunUO server. Not only is it old, but it is now publicly viewable and people are sure to find issues with it.
The Way Forward: people have expressed interest in this code, so I am hoping they will improve it and release a working version for the benefit of all. Do not contact me directly about this code, I can't help you. I will try to watch this thread for questions, but I might not. You should consider yourselves on your own in trying to get this working.
(See Also: http://www.runuo.com/community/threads/uogamers-rebirth-complete-server-pre-t2a-era-2-1-svn.485832/ )
The attached file contains most of the pieces necessary to create a working MySQL account system where the game server and PHP code share a central database for account management. Changes made via the web are available instantly inside the game server.
Features include the ability for users to manage their own IP address mask/filter blocks. Also accounts are created via the web server and confirmed via e-mail before logins are allowed. Also has "forgot password".
How to set up the SQL server: The last time I did this was in 2005. At that time, once could download MyODBC which would allow a "Data Service Name (DSN)" to be set up through the Winodws control pannel which would associate a name (like "runuo-db") with a MySQL server IP address + password + database configuration.
The RunUO Code is not complete. This is the "Accounts" folder portion of the code, which is a semi-drop in replacement. This code will probably need to be modified or extended to support RunUO 2.0+ and some portions of code outside of here (like the Admin Gump) may also need modification. I think some of the things the Admin Gump does with looping through accounts can be extremely slow when those operations hit the database.... and so some of that AdminGump code might need to be refactored or disabled.
The PHP is from a different time in internet security. In all likelihood it does contain some type of SQL injection vulnerability. I don't recommend using this code as-is on a public website/RunUO server. Not only is it old, but it is now publicly viewable and people are sure to find issues with it.
The Way Forward: people have expressed interest in this code, so I am hoping they will improve it and release a working version for the benefit of all. Do not contact me directly about this code, I can't help you. I will try to watch this thread for questions, but I might not. You should consider yourselves on your own in trying to get this working.
(See Also: http://www.runuo.com/community/threads/uogamers-rebirth-complete-server-pre-t2a-era-2-1-svn.485832/ )