E_WARNING
Invalid argument supplied for foreach()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/libraries/navigation.class.php (Line 92)
{
$this->tree[$branch][$id] =& $this->nodes[$id];
}
}
}
$nodes =& $this->nodes;
// now create the references in between
foreach ($nodes as $id => $node)
{
// add as child to parent
if (isset($nodes[$node['parent']]))
{
$nodes[$node['parent']]['children'][$id] =& $nodes[$id];
}
}
//dump($nodes);
Navigation->add()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/libraries/navigation.class.php (Line 48)
$this->add($data);
// set active page
$page = Factory::load('page');
$this->setActive($page->get('alias'));
}
else
{
// fills $nodes and $tree
$this->add($data);
}
}
public function add($data, $branch = null)
{
if (!is_null($branch)) $data = array($branch => $data);
foreach ($data as $branch => $tree)
{
// first create the flat tree
ReflectionClass->newInstanceArgs()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/factory.class.php (Line 76)
if (self::$use_fallback)
{
$instance = self::createObjArray($classname, $args);
}
else
{
// use reflection class to inject the args as single parameters (php > 5.1.3)
$reflectionObj = new ReflectionClass($classname);
$instance = $reflectionObj->newInstanceArgs($args);
}
}
return $instance;
}
// fallback for creating an object with an array as the single params
public static function createObjArray($type,$args=array())
{
$paramstr = array();
for ($i = 0; $i < count($args); $i++)
Factory::load()
/homepages/12/d336454118/htdocs/maxiflug2021/cms/_model/pagesmodel.class.php (Line 101)
$tree_temp[$node['tree_name']][$node['alias']] = $node;
$tree_alias[$node['alias']] =& $node;
}
}
$this->tree_nav = $tree_temp;
if (isset($tree_alias)) $this->tree_alias[$lang] = $tree_alias;
}
$this->navigation = Factory::load('navigation:' . $inst_name, $this->tree_nav, $nodes);
if (is_null($page)) {
$page = key(current($this->tree_nav));
} else {
$page = $page['fe_alias'];
}
// remove hidden if necessary
if($sitemap == false) {
$this->navigation->setActive($page);
$this->breadcrumb = $this->navigation->getBreadcrumb($lang);
PagesModel->getTree()
/homepages/12/d336454118/htdocs/maxiflug2021/_libs/sfs7cms.class.php (Line 100)
$try[] = $fw_path.'_core/libraries/'.$class_name.'.class.php';
$try[] = $fw_path.'_core/helpers/'.$class_name.'.class.php';
$try[] = $this->cms_path.'_model/'.$class_name.'.class.php';
$try[] = $this->cms_path.'_libs/'.$class_name.'.class.php';
foreach($try as $path) { if(is_file($path)) { include ($path); break; } }
}
protected function _getTree($lang, $page = null) {
$this->_tree = $this->pagesmodel->getTree($lang, false, false, false, $page);
return $this->_tree;
}
public function getTree($lang, $page = null) {
$tree = $this->_getTree($lang, $page);
return $tree;
}
public function getSitemap($lang, $page = null) {
$sitemap = $this->pagesmodel->getTree($lang, false, false, false, null, true);
sFs7cms->_getTree()
/homepages/12/d336454118/htdocs/maxiflug2021/_libs/sfs7cms.class.php (Line 131)
public function getPage($id, $lang){
#$show_hidden = $this->isPreviewMode() == 'preview' ? true : false;
$page = $this->pagemodel->get($id, $lang, false, false);
$this->_getTree($lang, $page);
return $page;
}
public function getPageByAlias($alias, $lang ){
$this->_getTree($lang);
$tree = $this->pagesmodel->getTreeAlias($lang, false);
if(!isset($tree[$alias])) return false;
$id = $tree[$alias]['id'];
return $this->getPage($id, $lang);
}
public function getFirstPage($lang, $tree_name = null){
$tree = $this->pagesmodel->getTree($lang, false, false, true);
if(!is_null($tree_name) && isset($tree[$tree_name])){
$nav = $tree[$tree_name];
sFs7cms->getPageByAlias()
/homepages/12/d336454118/htdocs/maxiflug2021/main/_controller/_globalcontroller.class.php (Line 119)
if($url_page !== FALSE) {
$this->url->redirect( $url_page['path'] );
}
}
}
// get page either by pid or by alias
$alias = $this->page->get('alias');
if (!is_null($pid)) $cmspage = $this->cms->getPage($pid, $lang);
else $cmspage = $this->cms->getPageByAlias($alias, $lang);
//redirect maybe
if(!empty($cmspage['redirect'])) {
$this->url->redirect( $cmspage['redirect'] );
}
// ooops page does not exist. check URL Redirect list and if ever there's no redirect use first page in tree
if (!$cmspage) {
$cmspage = $this->cms->getFirstPage($lang, 'main');
GlobalController->setup()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/morrow.class.php (Line 294)
// include page controller class
if (is_file($page_controller_file)) {
include($page_controller_file);
$controller = new PageController();
if (method_exists($controller, 'setup')) $controller->setup();
$controller->run();
if (method_exists($controller, 'teardown')) $controller->teardown();
} else {
$controller = new GlobalController();
if (method_exists($controller, 'setup')) $controller->setup();
if (method_exists($controller, 'teardown')) $controller->teardown();
}
// Inhalte zuweisen
$this->view->setContent($this->page->get(), 'page');
// if the client accepts encoding serve it
$compression_level = 0;
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip'))
$compression_level = 6;
Morrow->_run()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/morrow.class.php (Line 29)
along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////*/
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
Morrow->__construct()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/factory.class.php (Line 62)
{
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
Factory::load()
/homepages/12/d336454118/htdocs/maxiflug2021/_core/_root.php (Line 38)
echo $debug->dump($args);
}
/* the autoloader for all classes
********************************************************************************************/
include(FW_PATH.'_core/autoloader.php');
/* load framework
********************************************************************************************/
Factory::load('morrow:morrow:internal');
require()
/homepages/12/d336454118/htdocs/maxiflug2021/index.php (Line 32)
//$time_start = microtime(true);
// include E_STRICT in error_reporting
error_reporting(E_ALL | E_STRICT);
// set framework path
define ("FW_PATH", dirname(__FILE__).'/');
// include starter
require(FW_PATH . "_core/_root.php");
//$time_end = microtime(true);
//$time = $time_end - $time_start;
//Factory::load('log')->set(round($time*1000, 2).' ms');
Arguments (1)
Array
(
[0] => /homepages/12/d336454118/htdocs/maxiflug2021/_core/_root.php
)