In Kohana's core class, there is a constant FILE_SECURITY
.
string(60) "<?php defined('SYSPATH') or die('No direct script access.');"
Now obviously if you place this at the start of your files, and if it is accessed outside of the Kohana environment, it will die()
.
But what is the purpose of this constant? We can't eval()
it because it has a leading <?php
.
Does Kohana create PHP files somewhere and uses it to prepend it to the start of the file?
eval
won't matter, the constantSYSPATH
will still be found undefined and result intodie
– Vignette