I just got a request recently to add some features to a PostNuke module I developed for a client about 2 years ago — my first PHP project ever… I was kindof dreading the whole process. But low and behold… I’m finding things like:
// HLG - REMOVING UNNECC FUNCTIONS
// include ‘modules/’.$modinfo['directory'].’/pnincludes/swtypes.php’;
// include ‘modules/’.$modinfo['directory'].’/pnincludes/manufacturers.php’;
// include ‘modules/’.$modinfo['directory'].’/pnincludes/software.php’;
// include ‘modules/’.$modinfo['directory'].’/pnincludes/swtypes.php’;
// include ‘modules/’.$modinfo['directory'].’/pnincludes/manufacturers.php’;
// include ‘modules/’.$modinfo['directory'].’/pnincludes/software.php’;
Holy Cow! I commented the daylights out of this project. Yay for me.


Yeah, I’m finding some of my early code like that.
Really basic stuff though. Like for loops. EG:
//For i is zero, i is less than the rows in the datatable, iterate through the rows
for(int i=0;i