Hallo, ich bin neu hier im Forum und wollte zuerst m2p ausprobieren. ich habe das immage auf Sd-ard gebrannt und das webinterface startete auch. nachdemm ich mir verschiedene Dinge angesehen hatte bekam ich beim Start über http://max2play/ nur folgende angezeigt:
loadViewHeader(); // search for Controller and View by Name in URL if (! isset($_GET[‘page’]) || strpos($_GET[‘page’], ‘plugin’) === FALSE) { $pagename = preg_replace(‘=[^0-9a-zA-Z\.]=’, ”, isset($_GET[‘page’]) ? $_GET[‘page’] : ”); if ($pagename == ”) { // get Default Plugin for first Page foreach ($service->plugins[‘plugin’] as $plugin) { if (isset($plugin[‘default’]) && $plugin[‘default’] == 1) { include_once (APPLICATION_PATH . $plugin[‘path’]); break; } } } } else { // get Plugin by Config… check for Images or other Content if(preg_match(‘=\.(png|jpg|gif|pdf)$=’, $_GET[‘page’])){ // just Output Content $file = APPLICATION_PATH . ‘/’ . $_GET[‘page’]; ob_clean(); $size = getimagesize($file); header(‘Content-Type: ‘.$size[‘mime’]); header(‘Content-Length: ‘.filesize($file)); readfile($file); exit; }else{ include_once (APPLICATION_PATH . ‘/’ . $_GET[‘page’]); } } $service->loadViewFooter(); ob_flush();