XGProyect / XG-Proyect-v3.x.x

XG Proyect is an OGame clone open-source web application framework designed for creating game clones, particularly those inspired by the popular game OGame, set in a vast and captivating space-themed universe.
https://xgproyect.org
GNU General Public License v3.0
149 stars 101 forks source link

Issue with Admin Planet Edit #566

Open Bigtieger opened 1 year ago

Bigtieger commented 1 year ago

All i know is that the defaults path are inconsistent and i've got the Game working with the following tweaks. Maybe there is a better way.

I had to change a few default Paths in the constants.php to get the Game working:

// SYSTEM ROOT, IGNORING PUBLIC define('SYSTEM_ROOT', PROTOCOL . '/');

// GAME URL define('GAMEURL', PROTOCOL . $_SERVER['HTTP_HOST'] . '/');

// ADMIN PATHS define('ADM_URL', PROTOCOL . '/');

define('PUBLIC_PATH', '' . DIRECTORY_SEPARATOR);

-->

https://github.com/XGProyect/XG-Proyect-v3.x.x/blob/d1d9dc7ed498c4417f41b955871d4b67e0bb39d7/app/Http/Controllers/Adm/UsersController.php#L884

opendir(XGP_ROOT . 'public'. DEFAULT_SKINPATH . 'planets');