Rock the Script (Don’t Rock the Script Baby)

closeThis post was published 13 years 4 months 7 days ago. A number of changes have been made to the site since then, so please contact me if anything is broken or seems wrong.

While I’ve never fancied myself a particularly good programmer, I must admit I feel I’ve outdone myself with the (almost complete) new version of a website I maintain. I’ve reprogrammed the entire thing in PHP, cutting down file storage needs on the server as header information is included dynamically from separate files when the pages load. It’s a new kind of template system that requires only a simple snippet of code in the actual page. And the page titles are automated, too, with a variable being passed to the header (where the title tags are) on each load.
But the best part has to be having a login system whose credentials can’t be accessed from “View source”. And hidden cookie settings that control everything, including which navigation to show (members’ or non-members’). And pages that are part of the members’ section, and aren’t public, display a “Please log in” message when a user who is not logged in visits them. Plus, the URI of the current denied page is included as a GET parameter in the URI of the login page, so users can be directed right back to where they came from. Plus some custom messages implemented via more GET parameters and we are in business. The only problem is, I haven’t figured out how to run __utmSetVar() on login, but I’ll work on that soon (my previous new site would have used it to keep track of who logged in). Maybe an if statement in the footer…


I am an avid technology and software user, in addition to being reasonably well-versed in CSS, JavaScript, HTML, PHP, Python, and (though it still scares me) Perl. Aside from my technological tendencies, I am also a theatre technician, sound designer, violinist, singer, and actor.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail (or subscribe without commenting)

Comments are subject to moderation, and are licensed for display in perpetuity once posted. Learn more.