| 
 RC6 Update Problem mit config - djalex -  08-13-2008 08:05 AM
 
 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
 
 
 RE: RC6 Update Problem mit config - FeG -  08-13-2008 06:34 PM
 
 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.
 
 
 RE: RC6 Update Problem mit config - gOOvER -  08-13-2008 06:49 PM
 
 Php4 wird mit erscheinen von RC6 nicht mehr unterstützt. Du solltest, sofern das noch nicht geschehen ist, alles auf PHP5 umstellen.
   
 
 
 |