Changeset 428
- 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
| r418 |
r428 |
|
| 11 | 11 | | * gui: disable stats-alias in client menu | |
|---|
| 12 | 12 | \_________________________________________________________________/ |
|---|
| | 13 | |
|---|
| | 14 | 2007-03-18 Benedikt Heintel |
|---|
| | 15 | - GUI: |
|---|
| | 16 | * serveral fixes with permissions |
|---|
| 13 | 17 | |
|---|
| 14 | 18 | 2007-03-18 Benedikt Heintel |
|---|
| r425 |
r428 |
|
| 1 | 1 | #!/usr/bin/perl |
|---|
| 2 | 2 | |
|---|
| 3 | | # VHCS(tm) - Virtual Hosting Control System |
|---|
| | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| 4 | 4 | # Copyright (c) 2001-2006 by moleSoftware GmbH |
|---|
| 5 | 5 | # http://www.molesoftware.com |
|---|
| r425 |
r428 |
|
| 269 | 269 | # |
|---|
| 270 | 270 | |
|---|
| 271 | | $rs = sys_command("cp -p $sys_cfg $backup_cfg"); |
|---|
| | 271 | $rs = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); |
|---|
| 272 | 272 | |
|---|
| 273 | 273 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 465 | 465 | # |
|---|
| 466 | 466 | |
|---|
| 467 | | $rs = sys_command("cp -p $sys_cfg $backup_cfg"); |
|---|
| | 467 | $rs = sys_command("$main::cfg{'CMD_CP'} -p $sys_cfg $backup_cfg"); |
|---|
| 468 | 468 | |
|---|
| 469 | 469 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 1370 | 1370 | $sys .= $working; |
|---|
| 1371 | 1371 | |
|---|
| 1372 | | } else { # Some error that should not be happend ! Exitting... |
|---|
| | 1372 | } else { # Some error that should not be happend ! Exiting... |
|---|
| 1373 | 1373 | |
|---|
| 1374 | 1374 | return $rs; |
|---|
| … | … | |
| 1380 | 1380 | # |
|---|
| 1381 | 1381 | |
|---|
| 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"); |
|---|
| 1383 | 1383 | |
|---|
| 1384 | 1384 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 1688 | 1688 | $sys .= $working; |
|---|
| 1689 | 1689 | |
|---|
| 1690 | | } else { # Some error that should not be happend ! Exitting... |
|---|
| | 1690 | } else { # Some error that should not be happend ! Exiting... |
|---|
| 1691 | 1691 | |
|---|
| 1692 | 1692 | return $rs; |
|---|
| … | … | |
| 1698 | 1698 | # |
|---|
| 1699 | 1699 | |
|---|
| 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"); |
|---|
| 1701 | 1701 | |
|---|
| 1702 | 1702 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 1958 | 1958 | |
|---|
| 1959 | 1959 | 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); |
|---|
| 1960 | 1966 | } |
|---|
| 1961 | 1967 | |
|---|
| … | … | |
| 1971 | 1977 | |
|---|
| 1972 | 1978 | 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); |
|---|
| 1973 | 1985 | } |
|---|
| 1974 | 1986 | |
|---|
| … | … | |
| 1984 | 1996 | |
|---|
| 1985 | 1997 | 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); |
|---|
| 1986 | 2004 | } |
|---|
| 1987 | 2005 | |
|---|
| … | … | |
| 1997 | 2015 | |
|---|
| 1998 | 2016 | 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); |
|---|
| 1999 | 2023 | } |
|---|
| 2000 | 2024 | } |
|---|
| … | … | |
| 2013 | 2037 | |
|---|
| 2014 | 2038 | $index_tpl =~ s/{DOMAIN_NAME}/$dmn_name/gi; |
|---|
| | 2039 | $index_tpl =~ s/{BASE_SERVER_VHOST}/$main::cfg{'BASE_SERVER_VHOST'}/gi; |
|---|
| 2015 | 2040 | |
|---|
| 2016 | 2041 | ($rs, $rdata) = store_file( |
|---|
| … | … | |
| 3478 | 3503 | } |
|---|
| 3479 | 3504 | |
|---|
| 3480 | | # check wether AWStats is enabled |
|---|
| 3481 | | if ($awstats_dir ne 'no') { |
|---|
| | 3505 | # check wether AWStats is enabled |
|---|
| | 3506 | if ($awstats_dir ne 'no') { |
|---|
| 3482 | 3507 | $rs = dmn_add_awstats_data($dmn_data); |
|---|
| 3483 | | |
|---|
| 3484 | | return $rs if ($rs != 0); |
|---|
| 3485 | | } |
|---|
| | 3508 | return $rs if ($rs != 0); |
|---|
| | 3509 | } |
|---|
| 3486 | 3510 | |
|---|
| 3487 | 3511 | |
|---|
| … | … | |
| 3498 | 3522 | return $rs if ($rs != 0); |
|---|
| 3499 | 3523 | |
|---|
| 3500 | | |
|---|
| 3501 | | # $rs = dmn_add_crontab_data($dmn_data); |
|---|
| 3502 | | |
|---|
| 3503 | | # return $rs if ($rs != 0); |
|---|
| 3504 | | |
|---|
| 3505 | 3524 | push_el(\@main::el, 'dmn_add_data()', 'Ending...'); |
|---|
| 3506 | 3525 | |
|---|
| … | … | |
| 3544 | 3563 | |
|---|
| 3545 | 3564 | # check wether AWStats is enabled |
|---|
| 3546 | | |
|---|
| 3547 | 3565 | if ($awstats_dir ne 'no') { |
|---|
| 3548 | 3566 | $rs = dmn_change_awstats_data($dmn_data); |
|---|
| 3549 | | |
|---|
| 3550 | 3567 | return $rs if ($rs != 0); |
|---|
| 3551 | 3568 | } |
|---|
| … | … | |
| 3599 | 3616 | return $rs if ($rs != 0); |
|---|
| 3600 | 3617 | |
|---|
| 3601 | | |
|---|
| 3602 | | # $rs = dmn_del_crontab_data($dmn_data); |
|---|
| 3603 | | # |
|---|
| 3604 | | # return $rs if ($rs != 0); |
|---|
| 3605 | | |
|---|
| 3606 | 3618 | push_el(\@main::el, 'dmn_del_data()', 'Ending...'); |
|---|
| 3607 | 3619 | |
|---|
| … | … | |
| 3657 | 3669 | shift(@bk_files); |
|---|
| 3658 | 3670 | |
|---|
| 3659 | | shift(@bk_files); |
|---|
| | 3671 | #shift(@bk_files); |
|---|
| 3660 | 3672 | |
|---|
| 3661 | 3673 | return 0 if (scalar(@bk_files) == 0); |
|---|
| r418 |
r428 |
|
| 1 | 1 | #!/usr/bin/perl |
|---|
| 2 | 2 | |
|---|
| 3 | | # VHCS(tm) - Virtual Hosting Control System |
|---|
| | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| 4 | 4 | # Copyright (c) 2001-2006 by moleSoftware GmbH |
|---|
| 5 | 5 | # http://www.molesoftware.com |
|---|
| r285 |
r428 |
|
| 3 | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| 4 | 4 | # 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 |
|---|
| 6 | 8 | # |
|---|
| 7 | 9 | # |
|---|
| … | … | |
| 24 | 26 | # |
|---|
| 25 | 27 | # |
|---|
| 26 | | ######################################################################## |
|---|
| | 28 | # The VHCS ω Home Page is at: |
|---|
| | 29 | # |
|---|
| | 30 | # http://isp-control.net |
|---|
| | 31 | # |
|---|
| 27 | 32 | |
|---|
| 28 | 33 | BEGIN { |
|---|
| r372 |
r428 |
|
| 6 | 6 | <head> |
|---|
| 7 | 7 | <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"> |
|---|
| 9 | 9 | <link href="/vhcs2/themes/omega_original/css/vhcs.css" rel="stylesheet" type="text/css"> |
|---|
| 10 | 10 | <script type="text/javascript" src="/vhcs2/themes/omega_original/css/vhcs.js"></script> |
|---|
| … | … | |
| 17 | 17 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|---|
| 18 | 18 | <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"> </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"> </td> |
|---|
| | 22 | <td width="73" height="75"><img src="./top_right.jpg" width="73" height="75"></td> |
|---|
| 23 | 23 | </tr> |
|---|
| 24 | 24 | </table> |
|---|
| … | … | |
| 56 | 56 | <tr> |
|---|
| 57 | 57 | <td> </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> |
|---|
| 59 | 59 | <td> </td> |
|---|
| 60 | 60 | </tr> |
|---|
| … | … | |
| 87 | 87 | </tr> |
|---|
| 88 | 88 | </table> |
|---|
| 89 | | |
|---|
| | 89 | |
|---|
| 90 | 90 | </td> |
|---|
| 91 | 91 | </tr> |
|---|
| r418 |
r428 |
|
| 4 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|---|
| 5 | 5 | <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> |
|---|
| 7 | 6 | <meta name="robots" content="noindex"> |
|---|
| 8 | 7 | <meta name="robots" content="nofollow"> |
|---|
| … | … | |
| 17 | 16 | <table width="453" border="0" align="center" cellpadding="0" cellspacing="0"> |
|---|
| 18 | 17 | <tr> |
|---|
| 19 | | <td width="453" height="69" background="/vhcs2/themes/omega_original/images/login/login_top.jpg"> </td> |
|---|
| | 18 | <td width="453" height="69" background="./error_top.jpg"> </td> |
|---|
| 20 | 19 | </tr> |
|---|
| 21 | 20 | <tr> |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>