Ankündigung

Einklappen
Keine Ankündigung bisher.

Problem mit Installation !!!

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Problem mit Installation !!!

    Hallo an alle!

    HAbe ein kleines problem mit meiner Skript Installation....
    es kommt folgende Fehlermeldung:

    Parse error: syntax error, unexpected ';' in index.php on line 26

    CODE:

    <?php


    class TimeCalculator
    {

    public $start_time;
    public $caption;

    public function TimeCalculator( $caption )
    {
    $this->start_time = microtime( );
    $this->caption = $caption;
    }

    public function getElapsedTime( )
    {
    $end_time = microtime( );
    $elapsed_time = round( $this->getFloatTime( $end_time ) - $this->getFloatTime( $this->start_time ), 3 );
    echo "<b>{$this->caption}</b> was executed in <b>{$elapsed_time}</b> seconds <br>\r\n";
    }

    public function getFloatTime( $time_str )
    {
    list( $usec, $sec ) = explode( " ", $time_str );
    return ( double ) + ( double );
    }

    }

    error_reporting( E_ALL );
    define( "PATH_TO_SYSTEM_CLASS", "system/core/System.php" );
    require_once( PATH_TO_SYSTEM_CLASS );
    ( "system/user-config/DefaultSettings.php" );
    ( "system/user-config/LocalSettings.php" );
    require_once( "admin/lang/".( "LOCALE" ).".php" );
    if ( is_null( ( "SITE_URL" ) ) )
    {
    header( "Location: install.php" );
    exit( );
    }
    else if ( is_readable( "install.php" ) )
    {
    echo "<p>Your installation is temporarily disabled because the install.php file in the root of your installation is still readable.<br> To proceed, please remove the file or change its mode to make it non-readable for the Apache server process and refresh this page.</p>";
    exit( );
    }
    ( );
    ( );
    header( "Content-type:text/html;charset=utf-8" );
    if ( ( ) )
    {
    $uri = ( );
    $page_config = ( $uri );
    if ( $page_config->PageExists( ) )
    {
    $page_content = ( $page_config );
    echo $page_content;
    }
    else
    {
    if ( $page_config->isADirecotryRequestedWithoutASlashAtTheEnd( ) )
    {
    header( $_SERVER['SERVER_PROTOCOL']." 301 Moved Permanently" );
    header( "Location: {$_SERVER['REQUEST_URI']}/" );
    echo "The requested resource is located under a different URL: {$_SERVER['REQUEST_URI']}/";
    }
    else
    {
    if ( ( $uri ) )
    {
    $parent_uri = ( $uri );
    $page_config = ( $parent_uri );
    $passed_parameters_via_uri = substr( $uri, strlen( $parent_uri ) );
    $_REQUEST['passed_parameters_via_uri'] = $passed_parameters_via_uri;
    $page_content = ( $page_config );
    echo $page_content;
    }
    else
    {
    header( $_SERVER['SERVER_PROTOCOL']." 404 Not Found" );
    echo "404 Not Found";
    }
    }
    }
    }
    else
    {
    header( $_SERVER['SERVER_PROTOCOL']." 403 Forbidden" );
    echo "The software is not configured to respond to requests of the following host: {$_SERVER['HTTP_HOST']}\n";
    }
    ?>

    (ich habe php5 auf dem server eingestellt!)
    Wenn mir jemand aus dem Schlamassel helfen könnte währe ich ihm sehr dankbar!


    Vielen dank!

  • #2
    da ist in zeile 26 ein ; zuviel, denke ich mal

    Kommentar


    • #3
      habe es weggemacht und dann kommt fehler in line 27

      Kommentar


      • #4
        Setzte deinen Quelltext bitte in die Code-Tags des Forums und markerei zeile 26 für uns. Und rück den Quellcode ordentlich ein - sonst sucht man sich ja 'nen Wolf.

        was sollen Zeilen wie diese:
        Code:
        ( "system/user-config/DefaultSettings.php" );
        deine Methodennamen sind echt ulkig "isADirecotryRequestedWithoutASlashAtTheEnd" ymmd


        UND BITTE: lass doch das mit dem Crossposten sein. Muss doch echt nicht sein, dass sich jetzt die Leute hier und auf webmasterpark durch deinen Quellcode wühlen....
        [URL="https://www.quizshow.io/"]Create your own quiz show.[/URL]

        Kommentar

        Lädt...
        X