I have this code and it works in PHP 5.2
if (realpath ( __FILE__ ) == realpath ( (isset ( $_SERVER ['PATH_TRANSLATED'] ) ? $_SERVER ['PATH_TRANSLATED'] : $_SERVER ['ORIG_PATH_TRANSLATED']) )) {
$path_parts = pathinfo ( __FILE__ );
trigger_error ( 'Direct call of file' . $path_parts ['basename'], E_USER_ERROR );
}
but in 5.3.3 i have error:
PHP Notice: Undefined index: ORIG_PATH_TRANSLATED in /var/www/user/data/www/site/plugins/system/u24_je_plg_lytebox.php on line 16
How should it be changed? Thanks!