I'm confused here. How is anyone getting this working in it's current form? I'm running WP 2.0 and it wasn't working. I looked through the code and found these lines:
Code:
$install = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && isset($_GET['activate']));
$uninstall = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && isset($_GET['deactivate']));
I actually don't know how that's even working for anyone, because the links to activate the plugin are in the format ?action=activate. So, there's no activate GET variable as far as I can tell. I change those lines to this and it's working fine for me:
Code:
$install = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && $_GET['action'] == 'activate');
$uninstall = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && $_GET['action'] == 'deactivate');
Maybe it requires register_globals on? In which case, that's a no-no, as it encourages insecure programming practices. Just want to make sure everything's secure for everyone