Contao Check funktioniert nicht --> Parse Error[gelößt]
Hallo Leute,
ich habe den aktuellen Contao Check (contao-check-60a60fa) und möchte diesen auf 1und1 ausführen.
Ich bekomme folgende Fehlermeldung:
PHP-Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/13/d28102206/htdocs/contao/check/index.php on line 27
Es läuft php 5.5.x .
Paket: 1&1 Homepage Business aus dem Jahre 2001.
Ziel ist es, Contao 3.5.0 zu installieren.
Über ´nen kleien Tipp würde ich mich freuen.
Gruß
tschero
Contao 3.5.2 // Contao Check Problem
Hallo Leute,
ich habe contao 3.5.2 installiert. Hat alles funktioniert.
Aber beim Contao Check kam erst leere Seite, nach einfügen von:
AddType x-mapp-php6 .php
AddHandler x-mapp-php6 .php
in htaccess kommt jetzt:
*/ class Router { /** * Dispatch a request and send the response * * @throws RuntimeException If the command name is invalid */ public static function dispatch() { // Default command $file = 'controller/index.php'; $class = 'Index'; $command = filter_var($_GET['c'], FILTER_SANITIZE_STRING); // Check the command (thanks to Arnaud Buchoux) if (static::isInsecurePath($command)) { throw new RuntimeException("Invalid command $command"); } // Custom command if ($command != '' && file_exists("controller/$command.php")) { $file = "controller/$command.php"; $class = str_replace(' ', '', ucwords(str_replace('-', ' ', $command))); } include $file; $controller = new $class(); $controller->run(); } /** * Insecure path potentially containing directory traversal * * @param string $path The file path * * @return boolean True if the file path is insecure */ public static function isInsecurePath($path) { // Normalize backslashes $path = str_replace('\\', '/', $path); $path = preg_replace('#//+#', '/', $path); // Equals .. if ($path == '..') { return true; } // Begins with ./ if (substr($path, 0, 2) == './') { return true; } // Begins with ../ if (substr($path, 0, 3) == '../') { return true; } // Ends with /. if (substr($path, -2) == '/.') { return true; } // Ends with /.. if (substr($path, -3) == '/..') { return true; } // Contains /../ if (strpos($path, '/../') !== false) { return true; } return false; } } Router::dispatch();
Kann mir jemand einen Tipp geben?
Gruß
Letko