if (file_exists($CWD.'/blockscript/detector.php')) { $bs_detector_path = $CWD.'/blockscript/'; }
ob_start(); include($bs_detector_path.'detector.php'); $includedphp = ob_get_contents(); ob_end_clean();
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="blockscript" active="1"> <title>BlockScript vBulletin Integration</title> <description>BlockScript vBulletin Integration</description> <version>1.0</version> <url>http://www.blockscript.com/</url> <versioncheckurl /> <dependencies /> <codes /> <templates /> <plugins> <plugin active="1" executionorder="1"> <title>BlockScript vBulletin Integration</title> <hookname>init_startup</hookname> <phpcode><![CDATA[if (is_member_of($vbulletin->userinfo, array(1,2,3,4,8,17,19,20,26,15,22,16,14,18,21))) { if (file_exists($CWD.'/blockscript/detector.php')) { $bs_detector_path = $CWD.'/blockscript/'; } if (file_exists(CWD.'/blockscript/detector.php')) { include_once(CWD.'/blockscript/detector.php'); } elseif (file_exists(CWD.'/../blockscript/detector.php')) { include_once(CWD.'/../blockscript/detector.php'); } else { include_once(CWD.'/../../blockscript/detector.php'); } ob_start(); include($bs_detector_path.'detector.php'); $includedphp = ob_get_contents(); ob_end_clean(); }]]> </phpcode> </plugin> </plugins> <phrases /> <options /> <helptopics /> <cronentries /> <faqentries /> </product>