Current time: 06-29-2024, 03:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
Upgrade RC 5 - 6
Author Message
Sacred Offline
Junior Member
*

Posts: 44
Joined: May 2007
Reputation: 0
Post: #7
RE: Upgrade RC 5 - 6
gOOvER Wrote:Schau mal in die Datei. Könnte sein, das eine Variable nicht ersetzt wurde.

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();
        }
    }
    
    function encrypt_db_password($db_pass){
        global $ispcp_db_pass_key, $ispcp_db_pass_iv;
        
        if (extension_loaded('mcrypt') || @dl('mcrypt.' . PHP_SHLIB_SUFFIX)) {
            $td = @mcrypt_module_open (MCRYPT_BLOWFISH, '', 'cbc', '');
            // Create key
            $key = $ispcp_db_pass_key;
            // Create the IV and determine the keysize length
            $iv = $ispcp_db_pass_iv;
            
            //compatibility with used perl pads
            $block_size=@mcrypt_enc_get_block_size($td);
            $strlen=strlen($db_pass);
    
            $pads=$block_size-$strlen % $block_size;
    
            for ($i=0; $i<$pads;$i++){
                $db_pass.=" ";
            }
            // Intialize encryption
            @mcrypt_generic_init ($td, $key, $iv);
            //Encrypt string
            $encrypted = @mcrypt_generic ($td, $db_pass);
            @mcrypt_generic_deinit($td);
            @mcrypt_module_close($td);
    
            $text = @base64_encode("$encrypted");
            $text=trim($text);
            return $text;
        } else {
            //system_message("ERROR: The php-extension 'mcrypt' not loaded!");
            die("ERROR: The php-extension 'mcrypt' not loaded!");
        }
    }
    
    ?>

Sieht für mich eigentlich ok aus und ich finde aufs verrecken nicht wo er hier was haben soll.
Oder Fals du die Config meinst:

Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control Panel
# Copyright (c) 2006-2008 by isp Control Panel
# http://isp-control.net
#

#
# Misc config variables
#

BuildDate = 20080806

Version = 1.0.0 RC6 OMEGA

CodeName = Priamos

DEFAULT_ADMIN_ADDRESS =

SERVER_HOSTNAME = xxx.com

BASE_SERVER_IP = xxx.xxx.xxx.xxx

BASE_SERVER_VHOST = xxx.com

MR_LOCK_FILE = /var/run/ispcp.lock

#
# File system variables
#

CMD_AWK = /usr/bin/awk

CMD_BZCAT = /bin/bzcat

CMD_BZIP = /bin/bzip2

CMD_CHOWN = /bin/chown

CMD_CAT = /bin/cat

CMD_CHMOD = /bin/chmod

CMD_CP = /bin/cp

CMD_DIFF = /usr/bin/diff

CMD_DU = /usr/bin/du

CMD_ECHO = /bin/echo

CMD_EGREP = /bin/egrep

CMD_GZCAT = /bin/zcat

CMD_GZIP = /bin/gzip

CMD_GREP = /bin/grep

CMD_GROUPADD = /usr/sbin/groupadd

CMD_GROUPDEL = /usr/sbin/groupdel

CMD_HOSTNAME = /bin/hostname

CMD_IFCONFIG = /sbin/ifconfig

CMD_IPTABLES = /sbin/iptables

CMD_LN = /bin/ln

CMD_MYSQL = /usr/bin/mysql

CMD_MV = /bin/mv

CMD_PS = /bin/ps

CMD_RM = /bin/rm

CMD_SED = /bin/sed

CMD_SHELL = /bin/bash

CMD_TAR = /bin/tar

CMD_TOUCH = /usr/bin/touch

CMD_USERADD = /usr/sbin/useradd

CMD_USERDEL = /usr/sbin/userdel

CMD_WC = /usr/bin/wc

PEAR_DIR = /usr/share/php

#
# SQL backend variables
#

# Don't change this one
DATABASE_TYPE = mysql

DATABASE_HOST = localhost

DATABASE_NAME = ispcp

DATABASE_PASSWORD = xxx

DATABASE_USER = root

DATABASE_DIR = /var/lib/mysql

CMD_MYSQLDUMP = /usr/bin/mysqldump

DATABASE_UTF8 = yes

#
# Main variables
#

CONF_DIR = /etc/ispcp

LOG_DIR = /var/log/ispcp

PHP_STARTER_DIR = /var/www/fcgi

ROOT_DIR = /var/www/ispcp

ROOT_USER = root

ROOT_GROUP = root

GUI_ROOT_DIR = /var/www/ispcp/gui

APACHE_WWW_DIR = /var/www/virtual

SCOREBOARDS_DIR = /var/www/scoreboards

# Select Zipping Algorithm for Backups
# Supported: gzip, bzip2
ZIP = bzip2

#
# PHP FastCGI data
#

PHP4_FASTCGI_BIN = /usr/bin/php4-cgi

PHP5_FASTCGI_BIN = /usr/bin/php5-cgi

PHP_VERSION = 4

#
# ProFTPd data
#

FTPD_CONF_FILE = /etc/proftpd/proftpd.conf

#
# BIND data
#

BIND_CONF_FILE = /etc/bind/named.conf

BIND_DB_DIR = /var/cache/bind

SECONDARY_DNS =

#
# AWSTATS data
#

AWSTATS_ACTIVE = yes

# could be 'dynamic' = 0 or 'static' = 1
AWSTATS_MODE = 0

AWSTATS_CACHE_DIR = /var/cache/awstats

AWSTATS_CONFIG_DIR = /etc/awstats

AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin

AWSTATS_WEB_DIR = /usr/share/awstats

AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats

#
# APACHE data
#

APACHE_NAME = apache2

APACHE_RESTART_TRY = 3

APACHE_CONF_DIR = /etc/apache2

APACHE_CMD = /usr/sbin/apache2

APACHE_LOG_DIR = /var/log/apache2

APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup

APACHE_USERS_LOG_DIR = /var/log/apache2/users

APACHE_MODS_DIR = /etc/apache2/mods-available

APACHE_SITES_DIR = /etc/apache2/sites-available

APACHE_CUSTOM_SITES_CONFIG_DIR = /etc/apache2/ispcp

APACHE_SUEXEC_USER_PREF = vu

APACHE_SUEXEC_MIN_GID = 2000

APACHE_SUEXEC_MIN_UID = 2000

APACHE_USER = www-data

APACHE_GROUP = www-data

#
# Postfix MTA Data
#

POSTFIX_CONF_FILE = /etc/postfix/main.cf

POSTFIX_MASTER_CONF_FILE = /etc/postfix/master.cf

MTA_LOCAL_MAIL_DIR = /var/mail

MTA_VIRTUAL_MAIL_DIR = /var/mail/virtual

MTA_LOCAL_ALIAS_HASH = /etc/aliases

MTA_VIRTUAL_CONF_DIR = /etc/postfix/ispcp

MTA_VIRTUAL_ALIAS_HASH = /etc/postfix/ispcp/aliases

MTA_VIRTUAL_DMN_HASH = /etc/postfix/ispcp/domains

MTA_VIRTUAL_MAILBOX_HASH = /etc/postfix/ispcp/mailboxes

MTA_TRANSPORT_HASH = /etc/postfix/ispcp/transport

MTA_SENDER_ACCESS_HASH = /etc/postfix/ispcp/sender-access

MTA_MAILBOX_MIN_UID = 1000

MTA_MAILBOX_UID = 1000

MTA_MAILBOX_UID_NAME = vmail

MTA_MAILBOX_GID = 8

MTA_MAILBOX_GID_NAME = mail

MTA_SASLDB_FILE = /var/spool/postfix/etc/sasldb2

ETC_SASLDB_FILE = /etc/sasldb2

CMD_SASLDB_LISTUSERS2 = /usr/sbin/sasldblistusers2

CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2

CMD_POSTMAP = /usr/sbin/postmap

CMD_NEWALIASES = /usr/bin/newaliases

#
# Courier data
#

AUTHLIB_CONF_DIR = /etc/courier

CMD_MAKEUSERDB = /usr/sbin/makeuserdb

#
# Crontab delayed tasks
#

BACKUP_HOUR = 23

BACKUP_MINUTE = 40

BACKUP_ISPCP = yes

BACKUP_DOMAINS = yes

BACKUP_ROOT_DIR = /var/www/ispcp/engine/backup

CMD_CRONTAB = /usr/bin/crontab

#
# Service manager
#

# Either no or path to the amavis-daemon (usually: /etc/init.d/amavis)
CMD_AMAVIS = no

CMD_AUTHD = /etc/init.d/courier-authdaemon

CMD_FTPD = /etc/init.d/proftpd

CMD_HTTPD = /usr/sbin/apache2ctl

CMD_IMAP = /etc/init.d/courier-imap

CMD_IMAP_SSL = /etc/init.d/courier-imap-ssl

CMD_MTA = /etc/init.d/postfix

CMD_NAMED = /etc/init.d/bind9

CMD_POP = /etc/init.d/courier-pop

CMD_POP_SSL = /etc/init.d/courier-pop-ssl

CMD_ISPCPD = /etc/init.d/ispcp_daemon

CMD_ISPCPN = /etc/init.d/ispcp_network

#
# Virtual traffic manager
#

CMD_PFLOGSUM = /usr/sbin/maillogconvert.pl

TRAFF_LOG_DIR = /var/log

FTP_TRAFF_LOG = /proftpd/ftp_traff.log

MAIL_TRAFF_LOG = mail.log

TRAFF_ROOT_DIR = /var/www/ispcp/engine/traffic

TOOLS_ROOT_DIR = /var/www/ispcp/engine/tools

QUOTA_ROOT_DIR = /var/www/ispcp/engine/quota

#
# AMaViS data
#

MAIL_LOG_INC_AMAVIS = 0

#
# GUI config
#

USER_INITIAL_THEME = omega_original

FTP_USERNAME_SEPARATOR = @

FTP_HOMEDIR = /var/www/virtual

IPS_LOGO_PATH = ../themes/user_logos

ISPCP_SUPPORT_SYSTEM_PATH = ticket_system.php

ISPCP_SUPPORT_SYSTEM_TARGET =

MYSQL_PREFIX = yes

# '' for MYSQL_PREFIX = no,
# 'infront' or 'behind' for MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE = infront

WEBMAIL_PATH = ../tools/webmail/

WEBMAIL_TARGET = _blank

PMA_PATH = ../tools/pma/

PMA_TARGET = _blank

FILEMANAGER_PATH = ../tools/filemanager/

FILEMANAGER_TARGET = _blank

DATE_FORMAT = d.m.Y

RKHUNTER_LOG = /var/log/rkhunter.log

CHKROOTKIT_LOG = /var/log/chkrootkit.log

# Here you can set an additional anti-rootkit tool log file
OTHER_ROOTKIT_LOG =

#
# htaccess management
#

HTACCESS_USERS_FILE_NAME = .htpasswd

HTACCESS_GROUPS_FILE_NAME = .htgroup

HTPASSWD_CMD = /usr/bin/htpasswd2

#
# backup management
#

BACKUP_FILE_DIR = /var/www/ispcp/backups

#
# Developer Mode
#

DEBUG = 0
(This post was last modified: 09-17-2008 10:10 PM by Sacred.)
09-17-2008 10:06 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Upgrade RC 5 - 6 - Sacred - 09-17-2008, 08:45 PM
RE: Upgrade RC 5 - 6 - BeNe - 09-17-2008, 09:18 PM
RE: Upgrade RC 5 - 6 - Sacred - 09-17-2008, 09:34 PM
RE: Upgrade RC 5 - 6 - BeNe - 09-17-2008, 09:40 PM
RE: Upgrade RC 5 - 6 - Sacred - 09-17-2008, 09:49 PM
RE: Upgrade RC 5 - 6 - gOOvER - 09-17-2008, 10:01 PM
RE: Upgrade RC 5 - 6 - Sacred - 09-17-2008 10:06 PM
RE: Upgrade RC 5 - 6 - Sacred - 10-18-2008, 07:19 PM
RE: Upgrade RC 5 - 6 - ZooL - 10-18-2008, 08:29 PM
RE: Upgrade RC 5 - 6 - Sacred - 10-18-2008, 09:18 PM

Forum Jump:


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