Welcome, TeddyBare.
First, if you find vB2 fine, you will be amzed by vB3.
Anyway, back on topic. Regarding switch, it works on vBulletin as it does on any other PHP script.
Personally I only find switch superior when dealing with lots of options, i.e:
PHP Code:
switch ($dowhat) {
case 'delete':
deleteme();
break;
case 'update':
updatehim();
break;
case 'add':
inserthem();
break;
case 'list':
default:
listus();
break;
}
But when dealing with a simple if-elseif-else statement, I find the latter better.
Either way, use whatever you like, no one will shoot you.
(By the way, if you look in the Admin CP files of vBulletin, you will find that most of it is structured like this:
PHP Code:
if ($action == 'modify') {
// Lots and lots of code here
}
if ($action == 'add') {
// Lots and lots of code here
}
if ($action == 'edit') {
// Lots and lots of code here
}
// And so on...
Theoretically, switch can be implemented, but it's not, (probably) because it's easier to read with if's, since there are large portions of code for each $action.)
As for a automatic hacking tool, I wrote vbHacker, it hacks your files and templates, and runs queries. Check out my profile for the link, or visit some of my hacks which utilize it.