The PHP files were used for getting stuff from the database, being more specific, monster names, levels, etc.
I had 5 PHP pages that were used as the main monster list (bont.php, sufok.php, brak.php, amak.php, neutro.php), all of them were the same, but with different appearance because I couldn’t figure out how to implement different themes on the same page properly with only CSS. On these pages you could also filter the monsters by whatever you’d like it. The reason for the names is because each theme is supposed to represent a different nation in the game, with the last one being just a collage of different monsters with no specific theme.
I had a main “reading” PHP page (monstro.php) that would use the ID of the monster in the database to get another PHP file that would contain this monster’s details (the numbered php files in the folder “monstros”, almost 400 of them).
Every monster has a PHP script that stores its information (HP, Spells, etc). This one is what I meant when I said it probably doesn’t need to be a PHP script, javascript would work just fine.
In addition to that, there’s another PHP script that gathers data from another database in the site, containing items that the monsters drop. There are like 8 of these because some monsters in the game have specific drop rules, so they have an exception PHP (these files are: itemdata.php, itemdatastele.php, itemdatatorre.php, itemdatapresa.php, itemdataogrest.php, itemdata215.php, count.php and agua.php).
Also on item displaying, the folder recipedata contains a lot of strangely named PHP files, they all contain just 1 big string each, with info about specific items. Also probably unnecessary to make a PHP file for this, but it’s the solution I found at the time.
Every “damage number” listed on the monster’s spells are base values, they all are links that take you to a calculator page (calduladora.php) to see the in-game value.
This calculator works on a PHP script too, it works on GET and it’s definitely not needed, it’s just that when I made it, I didn’t know how to use javascript yet.
The last PHP script is conn.php, and it’s just to connect to the database.
I apologize for lying, however it was due to ignorance on my part, and not trying to hide any information. I think these are all the PHP scripts in my site, the ones I know about at least.