Hey guys.
If anyone remembers this thread, still located on the front page of the FlyFF discussion section, you would see that I said I would release an ASP.NET website.
It's been a while since I've said that, but since yesterday, I've been working on it.
I used the following template as my base: http://forum.ragezone.com/f457/flyff-template-692109/
If anyone remembers this, you would see that a long time ago, I made that same site into PHP. Terrible coding. Just awful. So I decided to just bring the template back and revamp it into ASP.NET.
By the way, this website is developed to have automatic SQL injection protection (CMD.Parameters.AddWithValue = Prepared Statements).
Now, let's get down to HOW to use this.
You need to edit your SQL configuration details, Vote Link, and your FULL website address in WEB.CONFIG
The following is what it looks like:
What you need to edit is what's located in "Website", "VoteLink", and "ConnectionString".Code:<appSettings> <add key="Website" value="http://localhost:5933/FlyFFCP/"/> <add key="VoteLink" value="http://google.com/"/> <add key="ConnectionString" value="Data Source=COMPUTER-PC\SQLEXPRESS;User Id=sa;Password=PASSWORD;Initial Catalog=ACCOUNT_DBF"/> </appSettings>
The format for ConnectionString is the following:
Data Source=COMPUTER-PC\SQLEXPRESS;User Id=sa;Password=PASSWORD;Initial Catalog=ACCOUNT_DBF
Data Source = The SQL database instance name.
User Id = the username of the database.
Password = The SQL password.
Initial Catalog = The database automatically selected (DO NOT EDIT THIS).
Vote Link can pertain to anything such as GTOP, Xtreme, etc.
There is a feature disabled in the website.
The feature is the "Server Peak". Since the database I have is only the account and character databases, I didn't "activate" Server peak, because it was in beta. If you want to try it, just do the following:
Open Site.master.
Find this line:
Change it to:Code:Server status: <span id="status" runat="server"></span> | Users online: <span id="users_online" runat="server"></span><!--| Server Peak: <span id="user_peak" runat="server"></span>-->
Open Site.Master.csCode:Server status: <span id="status" runat="server"></span> | Users online: <span id="users_online" runat="server"></span> | Server Peak: <span id="user_peak" runat="server"></span>
Go to line 47
Uncomment line numbers 48-54.
Recompile/Build. Try it out.
This is obviously coded in C# (VB sucks). The "Master" template is located in "Site.Master", and the code of "Site.Master", is located in "Site.Master.cs".
Every page name speaks for itself on what's located inside of it. All features located on the website are complete.
I believe the only features that may have bugs are the "Lord, MVP, and GS winners", and the "Server Peak".
This is the first ASP.NET website that I've done completely. Who knows how it'll go. But as far as I know, it works. And it works just fine.
The following was used to test the website:
Visual Studio 2010 Ultimate
Visual Studio 2010 Ultimate's Web Server Testing
Microsoft SQL Server 2008
THE FOLLOWING IS RECOMMENDED TO RUN THIS WEBSITE
IIS
Microsoft SQL Server 2008
If you are using WAMP, XAMPP, or any other shitty webserver, I suggest you not use this website. You will only complicate things. Just switch to IIS.
If you have any issues, report them here.



Reply With Quote


