PHP rocks.
i’m making a thing right now where, instead of having to edit any files whatsoever when adding a new skin to the mars s.t.s., the system itself will figure out the new names and files and directories and take care of (hopefully) absolutely everything for you, behind the scenes.
how it works:
it reads the contents of the CSS directory, strips off the extension (the whole thing… BOTH extensions! – i end the dynamic CSS files with .css.php), and lists the remaining strings in an array, which can then be looped until the proper HTML code is spun out. and v.v.soon i will rename all the CSS files so that they’ll have underscores that i can strip out and replace with spaces… so that on the viewable surface, the proper names of the skins will actually look pretty. i.e., ‘touristbureau’ becomes ‘tourist_bureau’ becomes ‘tourist bureau’.
so all you’ll have to do is drop the new files into the proper directories and go! all new images, CSS files, and any new backend code will be automatically “detected” and -get this!- actually fookin’ actuated on-the-fly!
so far, it’s coming along nicely… what little bit of code i’ve got so far works a charm. am v.excited and optimistic about this part.
still haven’t actually bothered to MAKE the new skins, but after this, it will be a real breeze anyhow.
