globaldir submission blocking
parent
d2be106d13
commit
94e6820e85
BIN
testdrive.tgz
BIN
testdrive.tgz
Binary file not shown.
|
@ -15,6 +15,7 @@ function testdrive_install() {
|
|||
register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
register_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||
|
||||
}
|
||||
|
||||
|
@ -24,9 +25,14 @@ function testdrive_uninstall() {
|
|||
unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
unregister_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||
|
||||
}
|
||||
|
||||
function testdrive_globaldir_update($a,&$b) {
|
||||
$b['url'] = '';
|
||||
}
|
||||
|
||||
function testdrive_register_account($a,$b) {
|
||||
|
||||
$uid = $b;
|
||||
|
|
Loading…
Reference in New Issue