Archive:Account Portal: Difference between revisions

From OuroDev
Aleena (talk | contribs)
mNo edit summary
No edit summary
Line 4: Line 4:


Obtain the source code from Github (https://github.com/auroris/City-of-Heroes-Account-Portal)
Obtain the source code from Github (https://github.com/auroris/City-of-Heroes-Account-Portal)
== Note ==
Version 1.0 has a possible SQL injection exploit. Make sure to use the newest version or try out version 2.0


==Instructions==
==Instructions==

Revision as of 12:18, 1 May 2019

Error creating thumbnail: File missing

A PHP application to allow users to create their own accounts and change their passwords.

Obtain the source code from Github (https://github.com/auroris/City-of-Heroes-Account-Portal)

Note

Version 1.0 has a possible SQL injection exploit. Make sure to use the newest version or try out version 2.0

Instructions

  1. Install XAMPP for Windows (https://www.apachefriends.org/index.html). You only need the Apache module, unless you're doing other stuff with your server too.
  2. Install the Microsoft PHP drivers for SQL Server (https://www.microsoft.com/en-us/download/details.aspx?id=57916). If you installed XAMPP into the default location, then the place you want to unpack the PHP drivers is C:\xampp\php\ext
  3. Modify your C:\xampp\php.ini and include the sqlsrv extension in your Dynamic Extensions section. XAMPP PHP is version 7.3, thread-safe. See below for specific settings.
  4. Restart Apache
  5. You will definitely want to modify index.php; you don't want your users creating an account and then attempting to log into my server.
  6. I recommend you also set up HTTPS on your Apache server, I used Win-Acme (https://github.com/PKISharp/win-acme). The instructions for Apache is https://github.com/PKISharp/win-acme/wiki/Apache-2.4-basic-usage.

Have fun :)

PHP.ini Settings

extension=php_sqlsrv_73_ts_x64 
extension=php_pdo_sqlsrv_73_ts_x64