If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / what is this code used for

what is this code used for

Started by linjuming on 3 Jul 2012, 4:01 AM · Views: 1,115

Results 1 to 4 of 4
3 Jul 2012, 4:01 AM
#1
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

what is this code used for

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

it display in many php files

3 Jul 2012, 7:47 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: what is this code used for

It means that you need to be logged on as the server admin before the page can be displayed.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

3 Jul 2012, 7:55 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: what is this code used for

linjuming:

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

it display in many php files

It prevents illegal access to your admin area...

Don't fuss over it...

20 years a Zencart User

3 Jul 2012, 9:19 AM
#4
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

Re: what is this code used for

thank you very much