I need to prevent a script from loading in my header when a popup is displayed. The popup script runs when the misc.php script is run.
Code:
define('THIS_SCRIPT', 'misc');
define('CSRF_PROTECTION', true);
if (in_array($_GET['do'], array('whoposted', 'buddylist', 'getsmilies')))
{
define('NOPMPOPUP', 1);
}
Would the code to prevent the script from loading be -
Code:
<vb:if condition(!(THIS_SCRIPT=='misc' & NOPMPOPUP))
JAVASCRIPT_CODE
</vb:if>
Mark