Current time: 11-27-2024, 12:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
RC6 Update Problem mit config
Author Message
djalex Offline


Posts: 1
Joined: Jun 2008
Reputation: 0
Post: #1
RC6 Update Problem mit config
Hi,

hab ein Problem nach dem Update auf das RC6 vom RC5:

kriege nach der installation einen fehler:
Code:
Parse error: syntax error, unexpected '{' in /var/www/ispcp/gui/include/ispcp-config.php on line 31

die config sieht so aus: ( nach setup )
Code:
<?php
/**
* ispCP ω (OMEGA) a Virtual Hosting Control System
*
* @copyright     2001-2006 by moleSoftware GmbH
* @copyright     2006-2008 by ispCP | http://isp-control.net
* @version     SVN: $ID$
* @link         http://isp-control.net
* @author         ispCP Team
*
* @license
*   This program is free software; you can redistribute it and/or modify it under
*   the terms of the MPL General Public License as published by the Free Software
*   Foundation; either version 1.1 of the License, or (at your option) any later
*   version.
*   You should have received a copy of the MPL Mozilla Public License along with
*   this program; if not, write to the Open Source Initiative (OSI)
*   http://opensource.org | osi@opensource.org
*/

require_once(INCLUDEPATH . '/class.config.php');

if (@file_exists('/usr/local/etc/ispcp/ispcp.conf')) {
    $cfgfile = '/usr/local/etc/ispcp/ispcp.conf';
}
else {
    $cfgfile = '/etc/ispcp/ispcp.conf';
}

// Load config variables from file
try {
    Config::load($cfgfile);
} catch (Exception $e) {
    die('<div style="text-align: center; color: red; font-weight: strong;">' . $e->getMessage() . '<br />Please contact your system administrator</div>');
}


function decrypt_db_password ($db_pass) {
    global $ispcp_db_pass_key, $ispcp_db_pass_iv;

    if ($db_pass == '')
        return '';

    if (extension_loaded('mcrypt') || @dl('mcrypt.' . PHP_SHLIB_SUFFIX)) {
        $text = @base64_decode($db_pass . "\n");
        // Open the cipher
        $td = @mcrypt_module_open ('blowfish', '', 'cbc', '');
        // Create key
        $key = $ispcp_db_pass_key;
        // Create the IV and determine the keysize length
        $iv = $ispcp_db_pass_iv;

        // Intialize encryption
        @mcrypt_generic_init ($td, $key, $iv);
        // Decrypt encrypted string
        $decrypted = @mdecrypt_generic ($td, $text);
        @mcrypt_module_close ($td);

        // Show string
        return trim($decrypted);
    } else {
        system_message("ERROR: The php-extension 'mcrypt' not loaded!");
        die();
    }
}

?>

Danke schonmal im Voraus ... wäre gut wenns schnell ginge

Gruß
Alex
08-13-2008 08:05 AM
Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #2
RE: RC6 Update Problem mit config
Hi,

meine spontane Idee dazu, da die Klammerschachtelung eigentlich okay ist, wäre, ob du das ganze zufällig unter PHP4 laufen lässt, wo es noch kein try-catch gibt?

Aber wie gesagt, spontane Idee, habs nicht näher geprüft..

Gruß
FeG

Edit: Okay, doch mal kurz geprüft. Es liegt offenbar an PHP4, zumindest gibt PHP4 genau diese Fehlermeldung aus, wenn man einen try-catch Block einsetzt.
(This post was last modified: 08-13-2008 06:36 PM by FeG.)
08-13-2008 06:34 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #3
RE: RC6 Update Problem mit config
Php4 wird mit erscheinen von RC6 nicht mehr unterstützt. Du solltest, sofern das noch nicht geschehen ist, alles auf PHP5 umstellen. Smile
08-13-2008 06:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)