<div style="background-color: #FFFFFF; width: 100%; margin-bottom: 9px;"> <script type="text/javascript" language="javascript" src="http://www.for-me-online.de/itgcheader.ashx?brandId=4d745bf7-611c-47b6-b6cf-da2bc0c8594c&methodname=getBrandLogo"></script> </div> <?php //<a href="#" onclick="openPopup('wash'); return false">open Wash</a> <a href="#" onclick="openPopup('dose'); return false">open Dose</a> ?> <div id="canvas"> <?php include( $page['content_template'] ); ?></div> <?php//<a href="javascript:void(0);" onClick="javascript:urchinTracker('/folder/file');">Test</a>?> </body></html>
$content['page']['template'] = $this->template; // assign vars foreach ($content as $key=>$value) { $$key = $value; } ob_start(); include(PROJECT_PATH.'_templates/'.$this->template); $output = ob_get_contents(); ob_end_clean(); return $output; } } ?>
// save (loading will be done in _root.php) $this -> cache -> save($id, $output, $this->cachetime, $comparator); // output $output = $output['body']; } // kein Caching else { $output = $displayHandler->getOutput($this->getContent()); } // Process filters if (isset($this->filters[$this->mode])) foreach ($this->filters[$this->mode] as $value) { $filtername = $value[0]; $filter = new $filtername( $value[1] ); $output = $filter->get($output); } else { $controller = new GlobalController(); $controller->setup(); } // Inhalte zuweisen $this->view->setContent($this->page->get(), 'page'); $output = $this->view->get(); echo $output; } } ?>
<?php class Morrow { public function __construct() { $this->_run(); } public function errorHandler($errno, $errstr, $errfile, $errline) { // get actual error_reporting $error_reporting = error_reporting(); // request for @ error-control operator if ($error_reporting == 0) return; // return if error should not get processed if (($errno & $error_reporting) === 0) return; { trigger_error('instance "'.$instancename.'" already defined of class "'.get_class($instance).'"', E_USER_ERROR); return false; } } // create object if (is_null($args)) { $instance = new $classname; } else { if (is_null(self::$use_fallback)) self::$use_fallback = version_compare(PHP_VERSION, '5.1.3', '<'); if (self::$use_fallback) { $instance = self::createObjArray($classname, $args); } else header('Cache-Control: public, max-age=' . $filemaxage); // output content echo $output['body']; return; } /* load framework********************************************************************************************/Factory::load('morrow:morrow:internal'); ?>
$time_start = microtime(true); // include E_STRICT in error_reportingerror_reporting(E_ALL | E_STRICT); // set framework pathdefine ("FW_PATH", dirname(__FILE__).'/'); // include starterrequire(FW_PATH . "_core/_root.php"); $time_end = microtime(true);$time = $time_end - $time_start; //Factory::load('log')->set(round($time*1000, 2).' ms'); ?> <script src="/__utm.js"></script>