Current time: 11-23-2024, 08:50 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
Post Reply 


Messages In This Thread
RC6 Update Problem mit config - djalex - 08-13-2008 08:05 AM
RE: RC6 Update Problem mit config - FeG - 08-13-2008, 06:34 PM
RE: RC6 Update Problem mit config - gOOvER - 08-13-2008, 06:49 PM

Forum Jump:


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