Changeset 441

Show
Ignore:
Timestamp:
03/27/07 00:13:36 (2 years ago)
Author:
rats
Message:

- ENGINE:

  • restructured: vhcs2.conf
  • changed: logical structure for MYSQL_PREFIX (YES = prefix; no = no prefix)

- GUI:

  • deleted: images for old error pages: not longer supported

- SETUP:

  • changed: Uninstaller
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r440 r441  
    1111\_________________________________________________________________/ 
    1212 
    13 2007-03-21 Benedikt Heintel 
     132007-03-25 Benedikt Heintel 
     14        - ENGINE: 
     15                * restructured: vhcs2.conf 
     16                * changed: logical structure for MYSQL_PREFIX (YES = prefix; no = no prefix) 
     17        - GUI: 
     18                * deleted: images for old error pages: not longer supported 
     19        - SETUP: 
     20                * changed: Uninstaller 
     21 
     222007-03-25 Benedikt Heintel 
    1423        - ENGINE: 
    1524                * fixed bug #125: edited a lot of permissions 
  • trunk/configs/vhcs2.conf

    r432 r441  
    1  
    2 
    3 # Misc config variables; 
     1
     2# VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     3# Copyright (c) 2006-2007 by isp Control Panel 
     4# http://isp-control.net 
     5
     6 
     7
     8# Misc config variables 
    49# 
    510 
    611BuildDate = 20070319 
    712 
    8 # DFtpDir = /var/www/virtual/ 
    9  
    10 # FtpShell = /bin/bash 
    11  
    12 Version = 2.4.8 OMEGA 
     13Version = 2.4.8 
    1314 
    1415VersionH = 2.4 Rhea 
    1516 
    16 LOGIN_TIME_OUT = 20 
    17  
    1817DEFAULT_ADMIN_ADDRESS = 
    1918 
     
    2625MR_LOCK_FILE = /tmp/vhcs2.lock 
    2726 
     27# 
     28# File system variables 
     29# 
     30 
     31CMD_AWK = /usr/bin/awk 
     32 
     33CMD_CHOWN = /bin/chown 
     34 
     35CMD_CAT = /bin/cat 
     36 
     37CMD_CP = /bin/cp 
     38 
     39CMD_DIFF = /usr/bin/diff 
     40 
     41CMD_DU = /usr/bin/du 
     42 
     43CMD_ECHO = /bin/echo 
     44 
    2845CMD_HOSTNAME = /bin/hostname 
    2946 
    3047CMD_IFCONFIG = /sbin/ifconfig 
    3148 
     49CMD_IPTABLES = /sbin/iptables 
     50 
     51CMD_GREP = /bin/grep 
     52 
     53CMD_GROUPADD = /usr/sbin/groupadd 
     54 
     55CMD_GROUPDEL = /usr/sbin/groupdel 
     56 
     57CMD_LN = /bin/ln 
     58 
     59CMD_MYSQL = /usr/bin/mysql 
     60 
     61CMD_MV = /bin/mv 
     62 
     63CMD_PS = /bin/ps 
     64 
     65CMD_RM = /bin/rm 
     66 
     67CMD_TAR = /bin/tar 
     68 
    3269CMD_USERADD = /usr/sbin/useradd 
    3370 
    3471CMD_USERDEL = /usr/sbin/userdel 
    3572 
    36 CMD_GROUPADD = /usr/sbin/groupadd 
    37  
    38 CMD_GROUPDEL = /usr/sbin/groupdel 
    39  
    40 CMD_MYSQL = /usr/bin/mysql 
     73CMD_WC = /usr/bin/wc 
     74 
     75PEAR_DIR = /usr/share/php 
     76 
     77
     78# SQL backend variables 
     79
     80 
     81DATABASE_TYPE = mysql 
     82 
     83DATABASE_HOST = localhost 
     84 
     85DATABASE_NAME = vhcs2 
     86 
     87DATABASE_PASSWORD = 
     88 
     89DATABASE_USER = root 
     90 
     91DATABASE_DIR = /var/lib/mysql 
     92 
     93
     94# Main variables 
     95
     96 
     97CONF_DIR = /etc/vhcs2 
     98 
     99LOG_DIR = /var/log/vhcs2 
     100 
     101PHP_STARTER_DIR = /var/www/fcgi 
     102 
     103ROOT_DIR = /var/www/vhcs2 
     104 
     105GUI_ROOT_DIR = /var/www/vhcs2/gui 
     106 
     107APACHE_WWW_DIR = /var/www/virtual 
     108 
     109
     110# PHP FastCGI data 
     111
     112 
     113PHP4_FASTCGI_BIN = /usr/bin/php4-cgi 
     114 
     115PHP5_FASTCGI_BIN = /usr/bin/php5-cgi 
     116 
     117
     118# ProFTPd data 
     119
    41120 
    42121FTPD_CONF_FILE = /etc/proftpd.conf 
    43122 
    44 CMD_CHOWN = /bin/chown 
    45  
    46 
    47 # SQL backend variables; 
    48 
    49  
    50 DATABASE_TYPE = mysql 
    51  
    52 DATABASE_HOST = localhost 
    53  
    54 DATABASE_NAME = vhcs2 
    55  
    56 DATABASE_PASSWORD = 
    57  
    58 DATABASE_USER = root 
    59  
    60 DATABASE_DIR = /var/lib/mysql 
    61  
    62 
    63 # Main situation variables; 
    64 
    65  
    66 ROOT_DIR = /var/www/vhcs2 
    67  
    68 CONF_DIR = /etc/vhcs2 
    69  
    70 LOG_DIR = /var/log/vhcs2 
    71  
    72 PHP_STARTER_DIR = /var/www/fcgi 
    73  
    74 
    75 # PHP FastCgi BIN 
    76 
    77  
    78 PHP4_FASTCGI_BIN = /usr/bin/php4-cgi 
    79  
    80 PHP5_FASTCGI_BIN = /usr/bin/php5-cgi 
    81  
    82 
    83 # BIND data. 
     123
     124# BIND data 
    84125# 
    85126 
     
    91132 
    92133# 
    93 # AWSTATS data. 
     134# AWSTATS data 
    94135# 
    95136# Either no or path to the awstats configs dir (mostly: /etc/awstats) 
    96137AWSTATS_DIR = no 
    97138 
     139AWSTSTS_ROOT_DIR = /var/www/vhcs2/engine/awstats 
     140 
    98141AWSTATS_WEB_DIR = /var/www/awstats 
    99142 
    100 AWSTSTS_ROOT_DIR = /var/www/vhcs2/engine/awstats 
    101  
    102 
    103 # APACHE data. 
    104 
    105  
    106 
    107 # APACHE config data. 
    108 
     143
     144# APACHE data 
     145
     146 
     147 
     148APACHE_NAME = apache2 
     149 
     150APACHE_RESTART_TRY = 3 
     151 
     152APACHE_CONF_DIR = /etc/apache2 
    109153 
    110154APACHE_CMD = /usr/sbin/apache2 
    111155 
    112 APACHE_NAME = apache2 
    113  
    114 APACHE_RESTART_TRY = 3 
    115  
    116 APACHE_WWW_DIR = /var/www/virtual 
    117  
    118156APACHE_LOG_DIR = /var/log/apache2 
    119157 
     158APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup 
     159 
    120160APACHE_USERS_LOG_DIR = /var/log/apache2/users 
    121161 
    122 APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup 
     162APACHE_MODS_DIR = /etc/apache2/mods-available 
    123163 
    124164APACHE_SITES_DIR = /etc/apache2/sites-available 
    125165 
    126 APACHE_CONF_DIR = /etc/apache2 
    127  
    128 GUI_ROOT_DIR = /var/www/vhcs2/gui 
    129  
    130 PEAR_DIR = /usr/share/php 
    131  
    132 CMD_PS = /bin/ps 
    133  
    134 CMD_WC = /usr/bin/wc 
     166APACHE_SUEXEC_USER_PREF = vu 
     167 
     168APACHE_SUEXEC_MIN_GID = 2000 
    135169 
    136170APACHE_SUEXEC_MIN_UID = 2000 
    137171 
    138 APACHE_SUEXEC_MIN_GID = 2000 
    139  
    140 APACHE_SUEXEC_USER_PREF = vu 
    141  
    142 # 
    143 # APACHE directory data. 
    144 # 
    145  
    146172APACHE_USER = www-data 
    147173 
     
    149175 
    150176# 
    151 # Postfix MTA Data. 
     177# Postfix MTA Data 
    152178# 
    153179 
     
    198224CMD_NEWALIASES = /usr/bin/newaliases 
    199225 
    200 CMD_ECHO = /bin/echo 
    201  
    202 CMD_LN = /bin/ln 
    203  
    204 
    205 # Courier IMAP/POP3 Data. 
     226
     227# Courier IMAP/POP3 data 
    206228# 
    207229 
     
    213235 
    214236# 
    215 # Crontab delayed tasks. 
     237# Crontab delayed tasks 
    216238# 
    217239 
     
    225247 
    226248# 
    227 # Backup tasks manager. 
    228 
    229  
    230 CMD_TAR = /bin/tar 
    231  
    232 CMD_MV = /bin/mv 
    233  
    234 CMD_RM = /bin/rm 
    235  
    236 CMD_DU = /usr/bin/du 
    237  
    238 
    239 # Service manager. 
    240 
    241  
    242 CMD_NAMED = /etc/init.d/bind9 
    243  
    244 CMD_MTA = /etc/init.d/postfix 
    245  
    246 CMD_HTTPD = /usr/sbin/apache2ctl 
    247  
    248 CMD_AUTHD = /etc/init.d/courier-authdaemon 
    249  
    250 CMD_IMAP = /etc/init.d/courier-imap 
    251  
    252 CMD_POP = /etc/init.d/courier-pop 
     249# Service manager 
     250
    253251 
    254252# Either no or path to the amavis-daemon (mostly: /etc/init.d/amavis) 
    255253CMD_AMAVIS = no 
    256254 
     255CMD_AUTHD = /etc/init.d/courier-authdaemon 
     256 
    257257CMD_FTPD = /etc/init.d/proftpd 
    258258 
     259CMD_HTTPD = /usr/sbin/apache2ctl 
     260 
     261CMD_IMAP = /etc/init.d/courier-imap 
     262 
     263CMD_IMAP_SSL = /etc/init.d/courier-imap-ssl 
     264 
     265CMD_MTA = /etc/init.d/postfix 
     266 
     267CMD_NAMED = /etc/init.d/bind9 
     268 
     269CMD_POP = /etc/init.d/courier-pop 
     270 
     271CMD_POP_SSL = /etc/init.d/courier-pop-ssl 
     272 
    259273CMD_VHCS2D = /etc/init.d/vhcs2_daemon 
    260274 
     
    262276 
    263277# 
    264 # Server traffic manager. 
    265 
    266  
    267 CMD_IPTABLES = /sbin/iptables 
    268  
    269 
    270 # Virtual traffic manager. 
    271 
    272  
    273 CMD_CP = /bin/cp 
    274  
    275 CMD_DIFF = /usr/bin/diff 
    276  
    277 CMD_GREP = /bin/grep 
    278  
    279 CMD_CAT = /bin/cat 
    280  
    281 CMD_AWK = /usr/bin/awk 
     278# Virtual traffic manager 
     279
    282280 
    283281CMD_PFLOGSUM = /usr/sbin/maillogconvert.pl 
     
    289287MAIL_TRAFF_LOG = mail.log 
    290288 
     289PREV_TRAFF_LOG_MAX_SIZE = 10485760 
     290 
     291TRAFF_ROOT_DIR = /var/www/vhcs2/engine/traffic 
     292 
     293TOOLS_ROOT_DIR = /var/www/vhcs2/engine/tools 
     294 
     295QUOTA_ROOT_DIR = /var/www/vhcs2/engine/quota 
     296 
     297# 
     298# AMaViS data 
     299# 
     300 
    291301MAIL_LOG_INC_AMAVIS = 0 
    292302 
    293 PREV_TRAFF_LOG_MAX_SIZE = 10485760 
    294  
    295 QUOTA_ROOT_DIR = /var/www/vhcs2/engine/quota 
    296  
    297 TRAFF_ROOT_DIR = /var/www/vhcs2/engine/traffic 
    298  
    299 TOOLS_ROOT_DIR = /var/www/vhcs2/engine/tools 
    300  
     303
     304# GUI config 
    301305# 
    302306 
    303307USER_INITIAL_THEME = omega_original 
    304308 
    305 USER_INITIAL_THEME_COLOR = blue 
    306  
    307 USER_LAYOUT_ID = 1 
    308  
    309309VHCS_LICENSE = VHCS<sup>&reg;</sup>2.4.8 OMEGA<br />build: 2007-03-19<br />Rhea 
    310310 
    311 MINIMAL_FTP_UID = 2000 
    312  
    313 MINIMAL_FTP_GID = 2000 
    314  
    315311FTP_USERNAME_SEPARATOR = @ 
    316312 
     
    325321VHCS_SUPPORT_SYSTEM_TARGET = 
    326322 
    327 MYSQL_PREFIX = yes 
    328  
    329 # '' for MYSQL_PREFIX = yes, infront or behind for MYSQL_PREFIX = no 
     323MYSQL_PREFIX = no 
     324 
     325# '' for MYSQL_PREFIX = no, 
     326# 'infront' or 'behind' for MYSQL_PREFIX = yes 
    330327MYSQL_PREFIX_TYPE = 
    331328 
     
    345342 
    346343# 
    347 # htaccess management (21.04.2005). 
     344# htaccess management 
    348345# 
    349346 
     
    355352 
    356353# 
    357 # backup management (16.05.2005). 
     354# backup management 
    358355# 
    359356 
  • trunk/engine/setup/vhcs2-uninstall

    r418 r441  
    11#!/usr/bin/perl 
    22 
    3 # VHCS(tm) - Virtual Hosting Control System 
     3# VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    3131# 
    3232 
    33  
    34  
    3533use FindBin; 
    3634use lib "$FindBin::Bin/.."; 
     
    3836 
    3937use strict; 
    40  
    4138use warnings; 
    4239 
     
    5148    my $welcome_message = <<MSG; 
    5249 
    53     Welcome in VHCS2 '$main::cfg{'VersionH'}' Uninstall Program. 
    54  
    55     This program will uninstall VHCS system from your server. 
    56     All domain users and their accounts will be removed. 
     50    Welcome in VHCS OMEGA '$main::cfg{'VersionH'}' Uninstall Program. 
     51 
     52    This program will uninstall VHCS OMEGA system from your server. 
     53 
     54    /!\ WARNING: All domain users and their accounts will be removed.  /!\ 
    5755 
    5856    Please press 'Enter' to continue. 
     
    6159    print STDOUT $welcome_message; 
    6260 
    63     $rdata = readline(\*STDIN); chop($rdata); 
     61    $rdata = readline(\*STDIN); 
     62        chop($rdata); 
    6463 
    6564    push_el(\@main::el, 'welcome_note()', 'Ending...'); 
     
    115114    Congratulations ! 
    116115 
    117     VHCS2 '$main::cfg{'VersionH'}' uninstall completed successfully ! 
    118  
    119     Thank you for using our product ! 
     116    VHCS OMEGA '$main::cfg{'VersionH'}' uninstall completed successfully ! 
     117 
     118    Thank you for using VHCS OMEGA product ! 
    120119 
    121120MSG 
     
    190189    my ($fuid, $fgid) = ($main::cfg{'MTA_MAILBOX_UID_NAME'}, $main::cfg{'MTA_MAILBOX_GID_NAME'}); 
    191190 
     191    my ($muid, $mgid) = ($main::cfg{'APACHE_SUEXEC_MIN_UID'}, $main::cfg{'APACHE_SUEXEC_MIN_GID'}); 
     192 
    192193    my ($uid, $gid) = (undef, undef); 
    193194 
     
    197198    my @gdata = (); 
    198199 
    199  
    200  
     200    # 
     201        # MTA Mailbox User 
     202    # 
    201203    @udata = getpwnam($fuid); 
     204    @gdata = getgrnam($fuid); 
    202205 
    203206    if (scalar(@udata) != 0) { # we have not this one user data; 
     
    211214    } 
    212215 
    213     @gdata = getgrnam($fuid); 
    214  
    215216    if (scalar(@gdata) != 0) { # we have not this one group data; 
    216217 
     
    223224    } 
    224225 
     226    # 
     227    # PHP Master 
     228    # 
     229    @udata = getpwnam($muid); 
     230    @gdata = getgrnam($muid); 
     231 
     232    if (scalar(@udata) != 0) { # we have not this one user data; 
     233 
     234        my $cmd = "$main::cfg{'CMD_USERDEL'} $muid"; 
     235 
     236        $rs = sys_command($cmd); 
     237 
     238        return $rs if ($rs != 0); 
     239 
     240    } 
     241 
     242    if (scalar(@gdata) != 0) { # we have not this one group data; 
     243 
     244        my $cmd = "$main::cfg{'CMD_GROUPDEL'} $muid"; 
     245 
     246        $rs = sys_command($cmd); 
     247 
     248        return $rs if ($rs != 0); 
     249 
     250    } 
     251 
    225252    push_el(\@main::el, 'uninstall_system_users()', 'Ending...'); 
    226253 
     
    256283 
    257284    $rs = del_dir($main::cfg{'LOG_DIR'}); 
     285 
     286    return $rs if ($rs != 0); 
     287 
     288    $rs = del_dir($main::cfg{'PHP_STARTER_DIR'}); 
    258289 
    259290    return $rs if ($rs != 0); 
     
    406437        return $rs if ($rs != 0); 
    407438 
    408  
    409439    } 
    410440 
     
    433463    sys_command_rs("$main::cfg{'CMD_HTTPD'} stop &> /tmp/vhcs2-uninstall-services.log"); 
    434464 
     465    sys_command_rs("a2dissite vhcs2.conf &> /tmp/vhcs2-uninstall-services.log"); 
     466 
    435467    $rs = del_file($main::cfg{'APACHE_SITES_DIR'}/vhcs2.conf); 
    436468 
    437469    return $rs if ($rs != 0); 
    438470 
     471    sys_command_rs("a2dissite master.conf &> /tmp/vhcs2-uninstall-services.log"); 
     472 
    439473    $rs = del_file($main::cfg{'APACHE_SITES_DIR'}/master.conf); 
    440474 
    441475    return $rs if ($rs != 0); 
    442476 
     477    sys_command_rs("a2dismod fastcgi &> /tmp/vhcs2-uninstall-services.log"); 
     478 
     479    $rs = del_file($main::cfg{'APACHE_MODS_DIR'}/fastcgi.conf); 
     480 
     481    return $rs if ($rs != 0); 
     482 
    443483    sleep(5); 
    444484 
     
    763803} 
    764804 
     805################################################################################ 
     806##                                    MAIN                                    ## 
     807################################################################################ 
     808 
    765809my $rs = undef; 
    766810 
     
    834878 
    835879} 
    836  
  • trunk/engine/vhcs2-als-mngr

    r440 r441  
    16461646    my $www_dir = $main::cfg{'APACHE_WWW_DIR'}; 
    16471647 
     1648        my $httpd_gid = $main::cfg{'APACHE_GROUP'}; 
     1649 
    16481650    my ($sys_uid, $sys_gid) = get_dmn_suexec_user($dmn_id); 
    16491651 
     
    16601662                   "$www_dir/$als_name", 
    16611663                   $sys_user, 
    1662                    $sys_group
     1664                   $httpd_gid
    16631665                   0770 
    16641666                  ); 
     
    16871689                   "$www_dir/$als_name/logs", 
    16881690                   $sys_user, 
    1689                    $sys_group
     1691                   $httpd_gid
    16901692                   0770 
    16911693                  ); 
     
    16961698                   "$www_dir/$als_name/phptmp", 
    16971699                   $sys_user, 
    1698                    $sys_group
     1700                   $httpd_gid
    16991701                   0770 
    17001702                  ); 
     
    17051707                   "$www_dir/$als_name/backups", 
    17061708                   $sys_user, 
    1707                    $sys_group
     1709                   $httpd_gid
    17081710                   0770 
    17091711                  ); 
     
    17641766                               "\n", 
    17651767                               $sys_user, 
    1766                                $sys_group
     1768                               $httpd_gid
    17671769                               0660 
    17681770                              ); 
     
    17741776                               "\n", 
    17751777                               $sys_user, 
    1776                                $sys_group
     1778                               $httpd_gid
    17771779                               0660 
    17781780                              ); 
  • trunk/engine/vhcs2-dmn-mngr

    r440 r441  
    17551755        my $conf_dir = $main::cfg{'CONF_DIR'}; 
    17561756 
     1757        my $httpd_gid = $main::cfg{'APACHE_GROUP'}; 
     1758 
    17571759        my ($sys_uid, $sys_gid) = get_dmn_suexec_user($dmn_id); 
    17581760 
     
    18111813                                        "$www_dir/$dmn_name", 
    18121814                                        $sys_user, 
    1813                                         $sys_group
     1815                                        $httpd_gid
    18141816                                        0770 
    18151817                                        ); 
     
    18381840                                        "$www_dir/$dmn_name/logs", 
    18391841                                        $sys_user, 
    1840                                         $sys_group
     1842                                        $httpd_gid
    18411843                                        0770 
    18421844                                        ); 
     
    18471849                                        "$www_dir/$dmn_name/phptmp", 
    18481850                                        $sys_user, 
    1849                                         $sys_group
     1851                                        $httpd_gid
    18501852                                        0770 
    18511853                                        ); 
     
    18561858                                        "$www_dir/$dmn_name/backups", 
    18571859                                        $sys_user, 
    1858                                         $sys_group
     1860                                        $httpd_gid
    18591861                                        0770 
    18601862                                        ); 
     
    19151917                                                                "\n", 
    19161918                                                                $sys_user, 
    1917                                                                 $sys_group
     1919                                                                $httpd_gid
    19181920                                                                0640 
    19191921                                                                ); 
     
    19251927                                                                "\n", 
    19261928                                                                $sys_user, 
    1927                                                                 $sys_group
     1929                                                                $httpd_gid
    19281930                                                                0640 
    19291931                                                                ); 
  • trunk/gui/admin/add_reseller.php

    r323 r441  
    11<?php 
    2 //   ------------------------------------------------------------------------------- 
    3 //  |             VHCS(tm) - Virtual Hosting Control System                         | 
    4 //  |              Copyright (c) 2001-2006 by moleSoftware                                      | 
    5 //  |                   http://vhcs.net | http://www.molesoftware.com                                   | 
    6 //  |                                                                               | 
    7 //  | This program is free software; you can redistribute it and/or                 | 
    8 //  | modify it under the terms of the MPL General Public License                   | 
    9 //  | as published by the Free Software Foundation; either version 1.1              | 
    10 //  | of the License, or (at your option) any later version.                        | 
    11 //  |                                                                               | 
    12 //  | You should have received a copy of the MPL Mozilla Public License             | 
    13 //  | along with this program; if not, write to the Open Source Initiative (OSI)    | 
    14 //  | http://opensource.org | osi@opensource.org                                                                    | 
    15 //  |                                                                               | 
    16 //   ------------------------------------------------------------------------------- 
     2/** 
     3 *  VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     4 * 
     5 *  @copyright  2001-2006 by moleSoftware GmbH 
     6 *  @copyright  2006-2007 by ispCP | http://isp-control.net 
     7 *  @link               http://isp-control.net 
     8 *  @author             VHCS Team, Benedikt Heintel (2007) 
     9 * 
     10 *  @license 
     11 *  This program is free software; you can redistribute it and/or modify it under 
     12 *  the terms of the MPL General Public License as published by the Free Software 
     13 *  Foundation; either version 1.1 of the License, or (at your option) any later 
     14 *  version. 
     15 *  You should have received a copy of the MPL Mozilla Public License along with 
     16 *  this program; if not, write to the Open Source Initiative (OSI) 
     17 *  http://opensource.org | osi@opensource.org 
     18 **/ 
    1719 
    1820include '../include/vhcs-lib.php'; 
     
    239241 
    240242                        $user_def_lang = $_SESSION['user_def_lang']; 
    241                         $user_theme_color = $_SESSION['user_theme_color']; 
     243                        $user_theme_color = $_SESSION['user_theme']; 
    242244                        $user_logo = 0; 
    243245 
  • trunk/gui/admin/add_user.php

    r323 r441  
    11<?php 
    2 //   ------------------------------------------------------------------------------- 
    3 //  |             VHCS(tm) - Virtual Hosting Control System                         | 
    4 //  |              Copyright (c) 2001-2005 by moleSoftware                                      | 
    5 //  |                   http://vhcs.net | http://www.molesoftware.com                                   | 
    6 //  |                                                                               | 
    7 //  | This program is free software; you can redistribute it and/or                 | 
    8 //  | modify it under the terms of the MPL General Public License                   | 
    9 //  | as published by the Free Software Foundation; either version 1.1              | 
    10 //  | of the License, or (at your option) any later version.                        | 
    11 //  |                                                                               | 
    12 //  | You should have received a copy of the MPL Mozilla Public License             | 
    13 //  | along with this program; if not, write to the Open Source Initiative (OSI)    | 
    14 //  | http://opensource.org | osi@opensource.org                                                                    | 
    15 //  |                                                                               | 
    16 //   ------------------------------------------------------------------------------- 
    17  
    18  
     2/** 
     3 *  VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     4 * 
     5 *  @copyright  2001-2006 by moleSoftware GmbH 
     6 *  @copyright  2006-2007 by ispCP | http://isp-control.net 
     7 *  @link               http://isp-control.net 
     8 *  @author             VHCS Team, Benedikt Heintel (2007) 
     9 * 
     10 *  @license 
     11 *  This program is free software; you can redistribute it and/or modify it under 
     12 *  the terms of the MPL General Public License as published by the Free Software 
     13 *  Foundation; either version 1.1 of the License, or (at your option) any later 
     14 *  version. 
     15 *  You should have received a copy of the MPL Mozilla Public License along with 
     16 *  this program; if not, write to the Open Source Initiative (OSI) 
     17 *  http://opensource.org | osi@opensource.org 
     18 **/ 
    1919 
    2020include '../include/vhcs-lib.php'; 
     
    130130 
    131131                                $user_def_lang = $_SESSION['user_def_lang']; 
    132                                 $user_theme_color = $_SESSION['user_theme_color']; 
     132                                $user_theme_color = $_SESSION['user_theme']; 
    133133                                $user_logo = 0; 
    134134 
  • trunk/gui/client/add_sql_database.php

    r323 r441  
    11<?php 
    2 //   ------------------------------------------------------------------------------- 
    3 //  |             VHCS(tm) - Virtual Hosting Control System                         | 
    4 //  |              Copyright (c) 2001-2006 by moleSoftware                                              | 
    5 //  |     http://vhcs.net | http://www.molesoftware.com                                         | 
    6 //  |                                                                               | 
    7 //  | This program is free software; you can redistribute it and/or                 | 
    8 //  | modify it under the terms of the MPL General Public License                   | 
    9 //  | as published by the Free Software Foundation; either version 1.1              | 
    10 //  | of the License, or (at your option) any later version.                        | 
    11 //  |                                                                               | 
    12 //  | You should have received a copy of the MPL Mozilla Public License             | 
    13 //  | along with this program; if not, write to the Open Source Initiative (OSI)    | 
    14 //  | http://opensource.org | osi@opensource.org                                                | 
    15 //  |                                                                               | 
    16 //   ------------------------------------------------------------------------------- 
    17  
     2/** 
     3 *  VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     4 * 
     5 *  @copyright  2001-2006 by moleSoftware GmbH 
     6 *  @copyright  2006-2007 by ispCP | http://isp-control.net 
     7 *  @link               http://isp-control.net 
     8 *  @author             VHCS Team, Benedikt Heintel (2007) 
     9 * 
     10 *  @license 
     11 *  This program is free software; you can redistribute it and/or modify it under 
     12 *  the terms of the MPL General Public License as published by the Free Software 
     13 *  Foundation; either version 1.1 of the License, or (at your option) any later 
     14 *  version. 
     15 *  You should have received a copy of the MPL Mozilla Public License along with 
     16 *  this program; if not, write to the Open Source Initiative (OSI) 
     17 *  http://opensource.org | osi@opensource.org 
     18 **/ 
    1819 
    1920include '../include/vhcs-lib.php'; 
     
    3839{ 
    3940  global $cfg; 
    40   if ($cfg['MYSQL_PREFIX'] === 'no') { 
     41  if ($cfg['MYSQL_PREFIX'] === 'yes') { 
    4142    $tpl -> assign('MYSQL_PREFIX_YES', ''); 
    4243  } else { 
  • trunk/gui/client/index.php

    r323 r441  
    11<?php 
    2 //   ------------------------------------------------------------------------------- 
    3 //  |             VHCS(tm) - Virtual Hosting Control System                         | 
    4 //  |              Copyright (c) 2001-2006 by moleSoftware                                                      | 
    5 //  |                   http://vhcs.net | http://www.molesoftware.com                                   | 
    6 //  |                                                                               | 
    7 //  | This program is free software; you can redistribute it and/or                 | 
    8 //  | modify it under the terms of the MPL General Public License                   | 
    9 //  | as published by the Free Software Foundation; either version 1.1              | 
    10 //  | of the License, or (at your option) any later version.                        | 
    11 //  |                                                                               | 
    12 //  | You should have received a copy of the MPL Mozilla Public License             | 
    13 //  | along with this program; if not, write to the Open Source Initiative (OSI)    | 
    14 //  | http://opensource.org | osi@opensource.org                                                                    | 
    15 //  |                                                                               | 
    16 //   ------------------------------------------------------------------------------- 
     2/** 
     3 *  VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     4 * 
     5 *  @copyright  2001-2006 by moleSoftware GmbH 
     6 *  @copyright  2006-2007 by ispCP | http://isp-control.net 
     7 *  @link               http://isp-control.net 
     8 *  @author             VHCS Team, Benedikt Heintel (2007) 
     9 * 
     10 *  @license 
     11 *  This program is free software; you can redistribute it and/or modify it under 
     12 *  the terms of the MPL General Public License as published by the Free Software 
     13 *  Foundation; either version 1.1 of the License, or (at your option) any later 
     14 *  version. 
     15 *  You should have received a copy of the MPL Mozilla Public License along with 
     16 *  this program; if not, write to the Open Source Initiative (OSI) 
     17 *  http://opensource.org | osi@opensource.org 
     18 **/ 
    1719 
    1820function gen_num_limit_msg($num, $limit) { 
     
    391393} else { 
    392394 
    393                 $user_def_layout = $_SESSION['user_theme_color']; 
     395                $user_def_layout = $_SESSION['user_theme']; 
    394396 
    395397                $user_def_lang = $_SESSION['user_def_lang']; 
  • trunk/gui/client/language.php

    r323 r441  
    11<?php 
    2 //   ------------------------------------------------------------------------------- 
    3 //  |             VHCS(tm) - Virtual Hosting Control System                         | 
    4 //  |              Copyright (c) 2001-2005 by moleSoftware      | 
    5 //  |                   http://vhcs.net | http://www.molesoftware.com                                   | 
    6 //  |                                                                               | 
    7 //  | This program is free software; you can redistribute it and/or                 | 
    8 //  | modify it under the terms of the MPL General Public License                   | 
    9 //  | as published by the Free Software Foundation; either version 1.1              | 
    10 //  | of the License, or (at your option) any later version.                        | 
    11 //  |                                                                               | 
    12 //  | You should have received a copy of the MPL Mozilla Public License             | 
    13 //  | along with this program; if not, write to the Open Source Initiative (OSI)    | 
    14 //  | http://opensource.org | osi@opensource.org                                                                    | 
    15 //  |                                                                               | 
    16 //   ------------------------------------------------------------------------------- 
    17  
     2/** 
     3 *  VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     4 * 
     5 *  @copyright  2001-2006 by moleSoftware GmbH 
     6 *  @copyright  2006-2007 by ispCP | http://isp-control.net 
     7 *  @link               http://isp-control.net 
     8 *  @author             VHCS Team, Benedikt Heintel (2007) 
     9 * 
     10 *  @license 
     11 *  This program is free software; you can redistribute it and/or modify it under 
     12 *  the terms of the MPL General Public License as published by the Free Software 
     13 *  Foundation; either version 1.1 of the License, or (at your option) any later 
     14 *  version. 
     15 *  You should have received a copy of the MPL Mozilla Public License along with 
     16 *  this program; if not, write to the Open Source Initiative (OSI) 
     17 *  http://opensource.org | osi@opensource.org 
     18 **/ 
    1819 
    1920include '../include/vhcs-lib.php'; 
     
    6768} else { 
    6869 
    69                 $user_def_layout = $_SESSION['user_theme_color']; 
     70                $user_def_layout = $_SESSION['user_theme']; 
    7071 
    7172