XF 1.5 cookiewall script

Hi all,

I switched from vBulletin to Xenforo last month. On vBulletin I had a cookie wall script which was loaded from global.php.
I'd like to use the same script on Xenforo now but I do not know where to put the code to set the cookie.
Is there an equivalent global.php file in Xenforo I can use to paste the code in?