*/ error_reporting( E_ALL ); /** * The examples needed files list */ include_once dirname(__FILE__).'/config.php'; /** * The examples definitions */ include_once 'sections.php'; /** * The examples manager class patExampleGen */ include_once 'patExampleGen.php'; /** * Custom functions for the current examples collection */ include_once 'customFunctions.php'; // set up the examples generator with the section data $exampleGen =& new patExampleGen; $exampleGen->addCustomNav( dirname( __FILE__ ) . '/locale.php' ); $exampleGen->setAppName( $appName ); $exampleGen->setAppDescription( $appDesc ); $exampleGen->setAppForumId( $appForumId ); $exampleGen->setSections( $sections ); $exampleGen->setTabs( $tabs ); // keep language settings $extra = array( 'lang' => 'C' ); if( isset( $_GET['lang'] ) ) { $extra['lang'] = $_GET['lang']; } else { $_GET['lang'] = $extra['lang']; } $exampleGen->setExtraGet( $extra ); // turn on error handling if not explicitly turned off if( !isset( $errorHandling ) || $errorHandling != 'off' ) { /** * patErrorManager class */ require_once $neededFiles['patErrorManager']; patErrorManager::setErrorHandling( E_ALL, 'callback', array( $exampleGen, 'displayError' ) ); } ?>