Ergebnis 1 bis 3 von 3

Thema: Contao Check funktioniert nicht --> Parse Error[gelößt]

  1. #1
    Contao-Urgestein
    Registriert seit
    20.09.2012.
    Ort
    Lüneburger Heide
    Beiträge
    1.992
    Partner-ID
    12207
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard 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 errorsyntax errorunexpected T_STRINGexpecting 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
    Geändert von tschero (18.07.2015 um 18:56 Uhr)
    Autodidakt und HobbyWebdesigner

    www.webdesign24.biz
    Screencasts zu Contao

  2. #2
    Contao-Urgestein
    Registriert seit
    20.09.2012.
    Ort
    Lüneburger Heide
    Beiträge
    1.992
    Partner-ID
    12207
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hab´s gefunden.

    Ich hatte die .htaccess Datei mit folgendem Inhalt nicht erzeugt:

    PHP-Code:
    AddType x-mapp-php6 .php
    AddHandler x
    -mapp-php6 .php 
    Gruß
    tschero
    Autodidakt und HobbyWebdesigner

    www.webdesign24.biz
    Screencasts zu Contao

  3. #3
    Contao-Nutzer Avatar von Letko
    Registriert seit
    30.11.2011.
    Ort
    zwischen Neumarkt und Ingolstadt
    Beiträge
    82

    Standard 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

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •