Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 14:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PRESENTATION] New Generation Website

Discussion on [PRESENTATION] New Generation Website within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
[MXD]Takeshi's Avatar
 
elite*gold: 0
Join Date: Nov 2017
Posts: 137
Received Thanks: 148
Post [PRESENTATION] New Generation Website


Hello everyone, today I want to present you my latest website project for shaiya.

this site is not like all the others, this site is based on a php framework, the use of the latest version of php (7.2)

the php framework works with the MVC logical system


I do this thread to show everyone that currently the sites we are using are really obsolete.

currently using this framework (YII2), we can go to remove all the queries, and more, let's see...

What is Yii2?
Quote:
Yii is a high performance, component-based PHP framework for rapidly developing modern Web applications. The name Yii can be considered as the acronym for Yes It Is!. Yii 2 inherits the main spirit behind Yii for being a simple, fast and highly extensible PHP framework.



After giving you this information, I ask the alleged dev remained, what do you think?
would not it be time to change? and offer something safer?



I would like to know what you think, do you say it's time to change?
do you have any useful tips, or anything?
[MXD]Takeshi is offline  
Thanks
4 Users
Old 10/14/2018, 23:41   #2


 
Cups's Avatar
 
elite*gold: 152
Join Date: Mar 2015
Posts: 149
Received Thanks: 1,281
Next generation? Perhaps in the context of Shaiya, but in terms of web technologies this is still a few steps behind. You really don't need to make a thread about this, as this should be the standard anyway. The newer version of PHP are actually pretty great in terms of speed, but the language itself is rather lackluster and hacky. Would it not make more sense to use something like ASP.NET, seeing as we're almost required to use Windows environments anyway? You can follow the same MVC design (which I believe is the default for new projects), or if you wanted a simple API you could do something like the following:

Code:
using Microsoft.Owin.Hosting;
using Owin;
using System.Net.Http.Formatting;
using System.Web.Http;

namespace Apulune.Net.Http
{

    class GameHttpServer
    {

        public void Configuration(IAppBuilder builder)
        {

            var config = new HttpConfiguration();

            config.Formatters.Clear();
            config.Formatters.Add(new JsonMediaTypeFormatter());

            config.Routes.MapHttpRoute(
                name: "DefaultRoute",
                routeTemplate: "{controller}/{action}"
            );

            builder.UseWebApi(config);
        }

        public void Start(int port)
        {
            var address = $"http://*:{port}/";
            WebApp.Start<GameHttpServer>(url : address);
        }
    }
}
Code:
using Apulune.Game.World;
using System.Web.Http;

namespace Apulune.Net.Http.Controller
{

    public class ServerController : ApiController
    {

        [HttpGet]
        public int Users()
        {
            return GameWorld.GetOnlinePlayers();
        }
    }
}
Most web projects these days are either React / Vue / Angular apps served to the client and have the client render the website rather than the current server-side rendering, and request the required data from an API. At least, this is how I'm designing my website. The reason for this is because if we serve all of the assets to the user on the first page load, and have the client handle routing and contact an API, then we only need to load the website once and modify components depending on the application's state. This makes the website feel much more responsive and user friendly. You'd use JSON Web Tokens for accessing authorized routes. If you're concerned about SEO (as web crawlers won't render JavaScript), there are plenty of tools you can use to pre-render the app, and then serve that for robots.

I like that you're trying to make a change, and by all means, go for it. I just don't believe that PHP would be the way to go for a game like Shaiya.
Cups is offline  
Thanks
3 Users
Old 10/15/2018, 00:23   #3
 
[MXD]Takeshi's Avatar
 
elite*gold: 0
Join Date: Nov 2017
Posts: 137
Received Thanks: 148
Exclamation

Quote:
Originally Posted by Cups View Post
Next generation? Perhaps in the context of Shaiya, but in terms of web technologies this is still a few steps behind. You really don't need to make a thread about this, as this should be the standard anyway. The newer version of PHP are actually pretty great in terms of speed, but the language itself is rather lackluster and hacky. Would it not make more sense to use something like ASP.NET, seeing as we're almost required to use Windows environments anyway? You can follow the same MVC design (which I believe is the default for new projects), or if you wanted a simple API you could do something like the following:
------
Most web projects these days are either React / Vue / Angular apps served to the client and have the client render the website rather than the current server-side rendering, and request the required data from an API. At least, this is how I'm designing my website. The reason for this is because if we serve all of the assets to the user on the first page load, and have the client handle routing and contact an API, then we only need to load the website once and modify components depending on the application's state. This makes the website feel much more responsive and user friendly. You'd use JSON Web Tokens for accessing authorized routes. If you're concerned about SEO (as web crawlers won't render JavaScript), there are plenty of tools you can use to pre-render the app, and then serve that for robots.

I like that you're trying to make a change, and by all means, go for it. I just don't believe that PHP would be the way to go for a game like Shaiya.
Thanks for the honest answer, in fact I had started an admin panel using this system, for business reasons I moved on YII, I currently work on this framework.

The thread was also made to accept answers like yours, not having done so I would never know your thoughts about this.

from my last post on my old website, over 2 years, provided to SHAIYA EXCALIBUR, is currently sold by a certain "Pacifier Jr" (I really do not know who it is ...)
I had the desire to show anyone that what they go to pay is old, obsolete, without security, now even a child can throw it down...

this pushed me to finally create this thread, to inform possible buyers to be careful before buying an "unsafe" site.
There have been no inflictions that have led to fill report or anything else, but an unsafe website, implies that all data entered into the databases are not secure, for shaiya we can say that our Email is not secure, and eventually our password (many use the same for many sites)

Currently this is for information
[MXD]Takeshi is offline  
Reply

Tags
examples, framework, php, shaiya, website


Similar Threads Similar Threads
[Selling] Website coding & editing! Cann create your website or edit your website cheep!
01/17/2016 - Coders Trading - 20 Replies
Hello i'm a web developer under education. Forum createde by me!: http://luckycs.com/ My skill is the following: asp.net = 5% mvc = 35% Umbraco (CMS) = 60% javascript/jquery = 40%
SeafightNews - Website presentation
08/03/2014 - Seafight - 6 Replies
Hi :) I'm SeafightNews website's owner and I will present you this website. I'm french so sorry for my bad english.. So this website was first in french and i translated calculators for english players. There is 6 calculators : Profitability calculator
HolyNight2-New english private server NEW PRESENTATION BETTER :)
11/14/2012 - Metin2 PServer Advertising - 1 Replies
Hello we will today presents you a Holynight2 private server :) link: HolyNight2 I hope you will like it , enjoy :) Server Information's 2 Channels are online every time. Server root, and online 24/7



All times are GMT +1. The time now is 14:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.