A PHP login/register system for uMMORPG, compatible with both MySQL and SQLite databases.
Hi, I'm noynac! Feel free to create an issue if your having problems. This is meant to be a basic example website to build off of. Though you are free to use it as is, if you'd like.
- A web server, the most popular ones are Nginx and Apache.
- PHP 7.x
- SQLite3
- MySQL (if you're not using SQLite)
- Ensure you have PDO drivers installed and enabled.
- Clone repository with
git clone https://github.com/noynac/uMMORPG_Website.git, then put the files in your main web directory. - Open the file
config.phplocated in the/includesfolder. - Edit the configuration to fit your needs.
- If you're using Remote SQL with MySQL, remember to allow your web server IP to access the MySQL server.
- If you're using SQLite, you'll need to CHMOD your database and folder permissions to allow the server to write to it.
As many of the settings from config.php are quite self explanatory, I won't include all of them here. If you have any questions about something not listed here, or need help changing something not listed in the configuration, then feel free to message me on Discord.
| Name | Description | Options |
|---|---|---|
| database_type | Select the database type for your project. | SQlite, MySQL |
| has_ssl | Adds an additional header and enables secure flag for sessions. Requires SSL |
true, false |
| password_salt | Can be found in NetworkManagerMMO.cs on line 210. Default is "at_least_16_byte". hash=Utils.PBKDF2Hash(loginPassword,"at_least_16_byte"+loginAccount); |
Can be any string. |
| alphanumeric_names | Only allows alphanumeric account names if true. If false, strip tags and slashes. | true, false |
| project_name | Changes the navigation bar text as well as sets the server header and session name. |
Can be any string. |
- Add character search page
- Add view character page w/ stats
- Add email option with email verification