Official Soldat Forums
Misc => Forum News and Support => Topic started by: bja888 on June 10, 2006, 04:01:54 pm
-
Has anyone else noticed that this entire forums is on one single page? Click to any page, its a ll a querystring on the same index.php. This must be a nightmare to do advanced configurations on. I understand how the active topics script might be a pain to fix. It would probably take weeks to pinpoint a problem if it arises.
-
index.php has "require_once()"'s to other scripts on the server for the different pages it needs to display. It also checks if a user is banned, checks a user's permissions, etc. It's not just some massive script that does everything in the forum.
e.g.:
index.php:
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
-
Wow. Just, wow.... :P
Frogboy is right. The index page just links to external libraries. These external libraries do most of the data-crunching. Ever notice that the executables for the majority of games are really small, but they have tons of external files? Same concept.
-
Aware of using smaller components I am. Though not strictly bound to it. I my self prefer amassing smaller components to piece together a larger one.
It seems like your putting all your eggs in one basket though.
Edit: Just wait. I'll come up with good reason not to...
-
bja888, your argument here is entirely unreasonable. Are you going to accuse me of having U13 run all on one page too (everything there shows up like it is on index.php too)?
-
Even my site has everything run off index.php.....
-
I'll come up with a good reason.... just let me think about it.
-
Yeah even my shitty website runs scripts externally from index.php
-
some websites dont require use of php so they have multiple .html or whatever files. but for forums it works great because to edit something you just edit a library, not the actual file that displays stuff. so if you were to mess up a forums library, correct me if i am wrong, only the functions used by that library would be shit. well anyways i am confusing myself now, but basically just having one file for a main thing runs fine. its like having soldat have 10 different executebals and they all send data to each other, why would u do that when you could just have one and do the same thing...but soldat has dll's it reads from, much like a forums index.php....hope this helps :S