Quote:
Originally Posted by Jennifer2010
I just realized today that the code isn't working
It doensn't return any errors but the code isn't executing for any of the usergroups in the array. If anyone has any ideas I'd greatly appreciate it.
Thank you!
|
Try setting the include file a var:
Code:
if (file_exists($CWD.'/blockscript/detector.php')) {
$bs_detector_path = $CWD.'/blockscript/';
}
Then add this to the bottom of your PHP Code:
Code:
ob_start();
include($bs_detector_path.'detector.php');
$includedphp = ob_get_contents();
ob_end_clean();
Use the global_start hook, instead of init_startup
Unless you are using an external (to VB) file, $CWD should be the root VB folder, so you should not need to check it several times.