Forum Moderators: coopster

Message Too Old, No Replies

Direct Access to this location is not allowed.

Direct Access to this location is not allowed.

         

dado

2:16 pm on Apr 6, 2008 (gmt 0)

10+ Year Member



I want to remove this line
// Dont allow direct linking

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

how to do this?
Please help me

Charter [webmasterworld.com]

[edited by: coopster at 3:54 pm (utc) on April 7, 2008]
[edit reason] removed code [/edit]

scriptmasterdel

6:28 pm on Apr 6, 2008 (gmt 0)

10+ Year Member



I assume you are including this file into another file, you should define the contstant in the file that includes the file.

e.g.


define( '_VALID_MOS', true );
include 'myfile.php'; // the affiliate file

The reason i suggest this is so that remote websites can not link to this file directly.

I hope this helps.

dado

7:50 pm on Apr 6, 2008 (gmt 0)

10+ Year Member



It doesnt work