![]() |
vB4 DEFINE check btw. PHP Widget and non-vB PHP file I'm trying to create a protected download link in the widget by placing this code: PHP Code: if (!defined('TESTCHECK')) { echo 'This file can only be called via vB CMS, and not directly'; exit(); } in a non-vB file. I tried to place PHP Code: define("TESTCHECK", true); in the Widget in various places, but every time I get: Quote: This file can only be called via vB CMS, and not directly How to organize this standard 'No direct script access allowed' check (between vB Widget and a PHP file)? Can that be done? Thanks. |
| الساعة الآن 10:41 AM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir