Update core.php

Add if (!defined('IN_INDEX') { exit('No access without index..'); }