Changeset 428

Show
Ignore:
Timestamp:
03/19/07 14:53:51 (2 years ago)
Author:
rats
Message:

- GUI:

  • serveral fixes with permissions
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r418 r428  
    1111|               * gui: disable stats-alias in client menu         | 
    1212\_________________________________________________________________/ 
     13 
     142007-03-18 Benedikt Heintel 
     15        - GUI: 
     16                * serveral fixes with permissions 
    1317 
    14182007-03-18 Benedikt Heintel 
  • trunk/engine/vhcs2-als-mngr

    r425 r428  
    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 
  • trunk/engine/vhcs2-dmn-mngr

    r425 r428  
    269269    # 
    270270 
    271     $rs = sys_command("cp -p $sys_cfg $backup_cfg"); 
     271    $rs = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); 
    272272 
    273273    return $rs if ($rs != 0); 
     
    465465    # 
    466466 
    467     $rs = sys_command("cp -p $sys_cfg $backup_cfg"); 
     467    $rs = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); 
    468468 
    469469    return $rs if ($rs != 0); 
     
    13701370        $sys .= $working; 
    13711371 
    1372     } else { # Some error that should not be happend ! Exitting... 
     1372    } else { # Some error that should not be happend ! Exiting... 
    13731373 
    13741374        return $rs; 
     
    13801380    # 
    13811381 
    1382     ($rs, $rdata) = sys_command("cp -p $sys_cfg $backup_cfg"); 
     1382    ($rs, $rdata) = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); 
    13831383 
    13841384    return $rs if ($rs != 0); 
     
    16881688        $sys .= $working; 
    16891689 
    1690     } else { # Some error that should not be happend ! Exitting... 
     1690    } else { # Some error that should not be happend ! Exiting... 
    16911691 
    16921692        return $rs; 
     
    16981698    # 
    16991699 
    1700     ($rs, $rdata) = sys_command("cp -p $sys_cfg $backup_cfg"); 
     1700    ($rs, $rdata) = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); 
    17011701 
    17021702    return $rs if ($rs != 0); 
     
    19581958 
    19591959                        return $rs if ($rs != 0); 
     1960 
     1961                        $rs = sys_command("$main::cfg{'CMD_CP'} -p $root_dir/gui/errordocs/error_top.jpg $www_dir/$dmn_name/errors/401"); 
     1962                        return $rs if ($rs != 0); 
     1963 
     1964                        $rs = setfmode("$root_dir/gui/errordocs/error_top.jpg", $sys_user, httpd_gid, 0640); 
     1965                        return $rs if ($rs != 0); 
    19601966                } 
    19611967 
     
    19711977 
    19721978                        return $rs if ($rs != 0); 
     1979 
     1980                        $rs = sys_command("$main::cfg{'CMD_CP'} -p $root_dir/gui/errordocs/error_top.jpg $www_dir/$dmn_name/errors/403"); 
     1981                        return $rs if ($rs != 0); 
     1982 
     1983                        $rs = setfmode("$root_dir/gui/errordocs/error_top.jpg", $sys_user, httpd_gid, 0640); 
     1984                        return $rs if ($rs != 0); 
    19731985                } 
    19741986 
     
    19841996 
    19851997                        return $rs if ($rs != 0); 
     1998 
     1999                        $rs = sys_command("$main::cfg{'CMD_CP'} -p $root_dir/gui/errordocs/error_top.jpg $www_dir/$dmn_name/errors/404"); 
     2000                        return $rs if ($rs != 0); 
     2001 
     2002                        $rs = setfmode("$root_dir/gui/errordocs/error_top.jpg", $sys_user, httpd_gid, 0640); 
     2003                        return $rs if ($rs != 0); 
    19862004                } 
    19872005 
     
    19972015 
    19982016                        return $rs if ($rs != 0); 
     2017 
     2018                        $rs = sys_command("$main::cfg{'CMD_CP'} -p $root_dir/gui/errordocs/error_top.jpg $www_dir/$dmn_name/errors/500"); 
     2019                        return $rs if ($rs != 0); 
     2020 
     2021                        $rs = setfmode("$root_dir/gui/errordocs/error_top.jpg", $sys_user, httpd_gid, 0640); 
     2022                        return $rs if ($rs != 0); 
    19992023                } 
    20002024        } 
     
    20132037 
    20142038                $index_tpl =~ s/{DOMAIN_NAME}/$dmn_name/gi; 
     2039                $index_tpl =~ s/{BASE_SERVER_VHOST}/$main::cfg{'BASE_SERVER_VHOST'}/gi; 
    20152040 
    20162041                ($rs, $rdata) = store_file( 
     
    34783503    } 
    34793504 
    3480         # check wether AWStats is enabled 
    3481         if ($awstats_dir ne 'no') { 
     3505    # check wether AWStats is enabled 
     3506    if ($awstats_dir ne 'no') { 
    34823507        $rs = dmn_add_awstats_data($dmn_data); 
    3483  
    3484                 return $rs if ($rs != 0); 
    3485         } 
     3508        return $rs if ($rs != 0); 
     3509    } 
    34863510 
    34873511 
     
    34983522    return $rs if ($rs != 0); 
    34993523 
    3500  
    3501 #    $rs = dmn_add_crontab_data($dmn_data); 
    3502  
    3503 #    return $rs if ($rs != 0); 
    3504  
    35053524    push_el(\@main::el, 'dmn_add_data()', 'Ending...'); 
    35063525 
     
    35443563 
    35453564        # check wether AWStats is enabled 
    3546  
    35473565        if ($awstats_dir ne 'no') { 
    35483566        $rs = dmn_change_awstats_data($dmn_data); 
    3549  
    35503567                return $rs if ($rs != 0); 
    35513568        } 
     
    35993616    return $rs if ($rs != 0); 
    36003617 
    3601  
    3602 #     $rs = dmn_del_crontab_data($dmn_data); 
    3603 # 
    3604 #     return $rs if ($rs != 0); 
    3605  
    36063618    push_el(\@main::el, 'dmn_del_data()', 'Ending...'); 
    36073619 
     
    36573669    shift(@bk_files); 
    36583670 
    3659     shift(@bk_files); 
     3671    #shift(@bk_files); 
    36603672 
    36613673    return 0 if (scalar(@bk_files) == 0); 
  • trunk/engine/vhcs2-sub-mngr

    r418 r428  
    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 
  • trunk/engine/vhcs2_common_code.pl

    r285 r428  
    33# VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    5 # Copyright (c) 2006-2007 by ispCP | http://isp-control.net 
     5# http://www.molesoftware.com 
     6# Copyright (c) 2006-2007 by isp Control Panel 
     7# http://isp-control.net 
    68# 
    79# 
     
    2426# 
    2527# 
    26 ######################################################################## 
     28# The VHCS ω Home Page is at: 
     29
     30#    http://isp-control.net 
     31
    2732 
    2833BEGIN { 
  • trunk/gui/domain_default_page/index.html

    r372 r428  
    66<head> 
    77<title>Homepage of {DOMAIN_NAME}</title> 
    8 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
     8<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    99<link href="/vhcs2/themes/omega_original/css/vhcs.css" rel="stylesheet" type="text/css"> 
    1010<script type="text/javascript" src="/vhcs2/themes/omega_original/css/vhcs.js"></script> 
     
    1717      <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    1818        <tr> 
    19           <td width="179" height="75"><img src="/vhcs2/themes/omega_original/images/domain_default/top_left.jpg" width="179" height="75"></td> 
    20           <td width="801" height="75"><img src="/vhcs2/themes/omega_original/images/domain_default/top_left_bg.jpg" width="801" height="75"></td> 
    21           <td background="/vhcs2/themes/omega_original/images/domain_default/top_bg.jpg">&nbsp;</td> 
    22           <td width="73" height="75"><img src="/vhcs2/themes/omega_original/images/domain_default/top_right.jpg" width="73" height="75"></td> 
     19          <td width="179" height="75"><img src="./top_left.jpg" width="179" height="75"></td> 
     20          <td width="801" height="75"><img src="./top_left_bg.jpg" width="801" height="75"></td> 
     21          <td background="/top_bg.jpg">&nbsp;</td> 
     22          <td width="73" height="75"><img src="./top_right.jpg" width="73" height="75"></td> 
    2323        </tr> 
    2424      </table> 
     
    5656  <tr> 
    5757    <td>&nbsp;</td> 
    58     <td>If you are the Administrator of this domain, please login <a href="/vhcs2/" class="link">here</a>.</td> 
     58    <td>If you are the Administrator of this domain, please login <a href="{BASE_SERVER_VHOST}" class="link">here</a>.</td> 
    5959    <td>&nbsp;</td> 
    6060  </tr> 
     
    8787  </tr> 
    8888</table> 
    89            
     89 
    9090    </td> 
    9191  </tr> 
  • trunk/gui/errordocs/index.php

    r418 r428  
    44  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    55  <link href="/vhcs2/themes/omega_original/css/vhcs.css" rel="stylesheet" type="text/css"> 
    6   <script type="text/javascript" src="/vhcs2/themes/omega_original/css/vhcs.js"></script> 
    76  <meta name="robots" content="noindex"> 
    87  <meta name="robots" content="nofollow"> 
     
    1716        <table width="453" border="0" align="center" cellpadding="0" cellspacing="0"> 
    1817         <tr> 
    19           <td width="453" height="69" background="/vhcs2/themes/omega_original/images/login/login_top.jpg">&nbsp;</td> 
     18          <td width="453" height="69" background="./error_top.jpg">&nbsp;</td> 
    2019         </tr> 
    2120         <tr>