<?php /* Plugin Name: Development Output Buffer Plugin URI: Description: Version: 0.1 Copyright: Savonix Corporation Author: Albert Lash License: LGPL */ $development_console = 0; Nexista_Error::addObserver('display', 'Nexista_generalError'); /** * Error... * * @param object $e error object * * @return null */ function Nexista_generalError($e) { if ($e->getCode() == NX_ERROR_FATAL || $e->getCode() == NX_ERROR_WARNING) { $use_xslt_cache = "yes"; if ($use_xslt_cache != "yes" || !class_exists('xsltCache')) { $exceptionXsl = new XsltProcessor(); } else { $exceptionXsl = new xsltCache(); } $xsl = new DomDocument(); $my_xsl_file = NX_PATH_BASE . 'extensions/nexista_error/s/xsl/exception.xsl';
unset($development_console); } else { // this could be slow, might want to have a setting to turn on / off foreach ($x_array as $value) { if (eregi($value, $_GET['nid'])) { unset($development_console); } } } } /* END EXCLUSIONS */ if ($development_console === true) { Nexista_Init::registerOutputHandler('nexista_devBuffer'); } if (!function_exists('nexista_buildererror')) { Nexista_Error::addObserver('display', 'Nexista_builderError'); /** * Error... * * @param object $e error object * * @return null */ function Nexista_builderError($e) { if ($e->getCode() == NX_ERROR_FATAL || $e->getCode() == NX_ERROR_WARNING) { $use_xslt_cache = 'yes'; if ($use_xslt_cache != 'yes' || !class_exists('xsltCache')) { $exceptionXsl = new XsltProcessor(); } else { $exceptionXsl = new xsltCache();
} } if (!empty($x_array)) { // this could be slow, might want to have a setting to turn on / off foreach ($x_array as $value) { if (eregi($value, $_GET['nid'])) { unset($tidy_it); } } } /* END EXCLUSIONS */ if ($tidy_it === true) { Nexista_Init::registerOutputHandler('tidy_output'); } if (!function_exists('tidy_output')) { Nexista_Error::addObserver('display', 'tidy_output'); /** * Error... * * @param object $e error object * * @return null */ function Nexista_builderError($e) { if ($e->getCode() == NX_ERROR_FATAL || $e->getCode() == NX_ERROR_WARNING) { $use_xslt_cache = 'yes'; if ($use_xslt_cache != 'yes' || !class_exists('xsltCache')) { $exceptionXsl = new XsltProcessor(); } else { $exceptionXsl = new xsltCache();