Location: PHPKode > scripts > PHP Newsletter > admin/lib/exception_member_debug.inc
<?php

////////////////////////////////////
// PHP Newsletter v3.6.0            
// (C) 2006-2013 Alexander Yanitsky 
// Website: http://janicky.com      
// E-mail: hide@address.com         
// Skype: janickiy                  
///////////////////////////////////

if(DEBUG == 1)
{
	echo "<html><head>";
	echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">";
	echo "</head><body>";
	echo "<p>An error has occurred - an attempt to access a non-existent class member.{$exc->getMessage()}.</p>";
	echo "<p>Error in file {$exc->getFile()} at line {$exc->getLine()}.</p>";
	echo "</body></html>";
	exit();
}
else
{
	header('HTTP/1.1 500 Internal Server Error');
	header("Location: error.php");
	exit();
}

?>
Return current item: PHP Newsletter