Welcome Guest, Not a member yet? Register   Sign In
is BASECLASS needed
#1

[eluser]ecigraeme[/eluser]
Hi all, im new to CI.

I have just downloaded version 1.7.0. I haven't used any previous versions.

I was going through this security tut from the wiki

Capsize Designs: Getting Started With CodeIgniter: Part 4 - Security
http://capsizedesigns.com/blog/2008/06/g...-security/

It says
When you download a fresh CI package, and check out the default controller (welcome.php), notice how it says something like this at the top of the page:

if (!defined('BASEPATH')) exit('No direct script access allowed');

In my fresh download welcome.php does not have this line.

Do I still need it or is it not needed in the latest CI version.

Thanks

Graeme
#2

[eluser]Phil Sturgeon[/eluser]
If you want to add it in, copy and paste that line to the top of your welcome.php.

CI will run without BASEPATH being defined and it really doesn't add that much security anyway.
#3

[eluser]ecigraeme[/eluser]
OK, thanks for your reply pyromaniac.




Theme © iAndrew 2016 - Forum software by © MyBB