Changeset 434
- Timestamp:
- 03/21/07 12:17:45
(2 years ago)
- Author:
- rats
- Message:
fixed bugs #116 & #117
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r288 |
r434 |
|
| 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 | # |
|---|
| … | … | |
| 23 | 25 | # http://www.mozilla.org/MPL/MPL-1.1.html |
|---|
| 24 | 26 | # |
|---|
| 25 | | ######################################################################## |
|---|
| | 27 | # |
|---|
| | 28 | # The VHCS ω Home Page is at: |
|---|
| | 29 | # |
|---|
| | 30 | # http://isp-control.net |
|---|
| | 31 | # |
|---|
| 26 | 32 | |
|---|
| 27 | 33 | use FindBin; |
|---|
| … | … | |
| 372 | 378 | |
|---|
| 373 | 379 | # Changed by Erik Lehmann 07.06.2005 |
|---|
| 374 | | my $cmd = "$main::cfg{'CMD_CAT'} $rlog | $main::cfg{'CMD_GREP'} 'postfix' | $main::cfg{'CMD_PFLOGSUMM'} standard 1>$smtp_delivery_log"; |
|---|
| | 380 | my $cmd = "$main::cfg{'CMD_CAT'} $rlog | $main::cfg{'CMD_GREP'} 'postfix' | $main::cfg{'CMD_PFLOGSUM'} standard 1>$smtp_delivery_log"; |
|---|
| 375 | 381 | |
|---|
| 376 | 382 | $rs = sys_command($cmd); |
|---|
| r154 |
r434 |
|
| 1 | 1 | #!/usr/bin/perl |
|---|
| 2 | 2 | |
|---|
| 3 | | # VHCS(tm) - Virtual Hosting Control System |
|---|
| 4 | | # Copyright (c) 2001-2004 by moleSoftware GmbH |
|---|
| | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| | 4 | # Copyright (c) 2001-2006 by moleSoftware GmbH |
|---|
| 5 | 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 | | # The VHCS Home Page is at: |
|---|
| | 28 | # The VHCS ω Home Page is at: |
|---|
| 27 | 29 | # |
|---|
| 28 | | # http://www.vhcs.net |
|---|
| 29 | | #### |
|---|
| | 30 | # http://isp-control.net |
|---|
| | 31 | # |
|---|
| 30 | 32 | |
|---|
| 31 | 33 | use FindBin; |
|---|
| … | … | |
| 373 | 375 | |
|---|
| 374 | 376 | # Changed by Erik Lehmann 07.06.2005 |
|---|
| 375 | | my $cmd = "$main::cfg{'CMD_CAT'} $rlog | $main::cfg{'CMD_GREP'} 'postfix' | $main::cfg{'CMD_PFLOGSUMM'} standard 1>$smtp_delivery_log"; |
|---|
| | 377 | my $cmd = "$main::cfg{'CMD_CAT'} $rlog | $main::cfg{'CMD_GREP'} 'postfix' | $main::cfg{'CMD_PFLOGSUM'} standard 1>$smtp_delivery_log"; |
|---|
| 376 | 378 | |
|---|
| 377 | 379 | $rs = sys_command($cmd); |
|---|
| r285 |
r434 |
|
| 2 | 2 | |
|---|
| 3 | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| 4 | | # Copyright (c) 2006-2007 by ispCP | http://isp-control.net |
|---|
| | 4 | # Copyright (c) 2006-2007 by isp Control Panel |
|---|
| | 5 | # http://isp-control.net |
|---|
| 5 | 6 | # |
|---|
| 6 | 7 | # |
|---|
| 7 | 8 | # License: |
|---|
| 8 | 9 | # This program is free software; you can redistribute it and/or |
|---|
| 9 | | # modify it under the terms of the GPL General Public License |
|---|
| 10 | | # as published by the Free Software Foundation; either version 2.0 |
|---|
| | 10 | # modify it under the terms of the MPL Mozilla Public License |
|---|
| | 11 | # as published by the Free Software Foundation; either version 1.1 |
|---|
| 11 | 12 | # of the License, or (at your option) any later version. |
|---|
| 12 | 13 | # |
|---|
| … | … | |
| 14 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | # GPL General Public License for more details. |
|---|
| | 17 | # MPL Mozilla Public License for more details. |
|---|
| 17 | 18 | # |
|---|
| 18 | | # You may have received a copy of the GPL General Public License |
|---|
| | 19 | # You may have received a copy of the MPL Mozilla Public License |
|---|
| 19 | 20 | # along with this program. |
|---|
| 20 | 21 | # |
|---|
| 21 | | # An on-line copy of the GPL General Public License can be found |
|---|
| 22 | | # http://www.gnu.org/licenses/gpl.html |
|---|
| | 22 | # An on-line copy of the MPL Mozilla Public License can be found |
|---|
| | 23 | # http://www.mozilla.org/MPL/MPL-1.1.html |
|---|
| 23 | 24 | # |
|---|
| 24 | 25 | # |
|---|
| 25 | | # The programm vhcs2-vrl-traff-correction is written by zttom |
|---|
| | 26 | # The VHCS ω Home Page is at: |
|---|
| 26 | 27 | # |
|---|
| 27 | | ######################################################################## |
|---|
| | 28 | # http://isp-control.net |
|---|
| | 29 | # |
|---|
| 28 | 30 | |
|---|
| 29 | 31 | use FindBin; |
|---|
| r429 |
r434 |
|
| 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 |
|---|
| r154 |
r434 |
|
| 1 | 1 | #!/usr/bin/perl |
|---|
| 2 | 2 | |
|---|
| 3 | | # |
|---|
| 4 | | # VHCS(tm) - Virtual Hosting Control System |
|---|
| 5 | | # Copyright (c) 2001-2005 by moleSoftware GmbH |
|---|
| | 3 | # VHCS ω (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| | 4 | # Copyright (c) 2001-2006 by moleSoftware GmbH |
|---|
| 6 | 5 | # http://www.molesoftware.com |
|---|
| | 6 | # Copyright (c) 2006-2007 by isp Control Panel |
|---|
| | 7 | # http://isp-control.net |
|---|
| 7 | 8 | # |
|---|
| 8 | 9 | # |
|---|
| 9 | 10 | # License: |
|---|
| 10 | | # |
|---|
| 11 | 11 | # This program is free software; you can redistribute it and/or |
|---|
| 12 | 12 | # modify it under the terms of the MPL Mozilla Public License |
|---|
| … | … | |
| 26 | 26 | # |
|---|
| 27 | 27 | # |
|---|
| 28 | | # The VHCS Home Page is at: |
|---|
| 29 | | # |
|---|
| 30 | | # http://www.vhcs.net |
|---|
| | 28 | # The VHCS ω Home Page is at: |
|---|
| | 29 | # |
|---|
| | 30 | # http://isp-control.net |
|---|
| 31 | 31 | # |
|---|
| 32 | 32 | |
|---|
| r393 |
r434 |
|
| 3 | 3 | #include <sys/stat.h> |
|---|
| 4 | 4 | #include <fcntl.h> |
|---|
| | 5 | |
|---|
| | 6 | #if defined(__OpenBSD__) || defined(__FreeBSD__) |
|---|
| | 7 | #include <sys/proc.h> |
|---|
| | 8 | #else |
|---|
| 5 | 9 | #include <sys/procfs.h> |
|---|
| | 10 | #endif |
|---|
| | 11 | |
|---|
| 6 | 12 | #include <unistd.h> |
|---|
| 7 | 13 | #include <sys/param.h> |
|---|
| … | … | |
| 52 | 58 | |
|---|
| 53 | 59 | if (fork() == 0 ) { |
|---|
| 54 | | |
|---|
| | 60 | |
|---|
| 55 | 61 | int fdres, dupres; |
|---|
| 56 | 62 | char logfile[MAXPATHLEN]; |
|---|
| … | … | |
| 73 | 79 | strncpy(daemon_path, fname2, strlen(fname2)-strlen("daemon/vhcs2_daemon")); |
|---|
| 74 | 80 | strcat(daemon_path, "engine/vhcs2-rqst-mngr"); |
|---|
| 75 | | |
|---|
| | 81 | |
|---|
| 76 | 82 | fdres = open ( "/dev/null", O_RDONLY ); |
|---|
| 77 | 83 | if(fdres == -1) |
|---|
| … | … | |
| 121 | 127 | |
|---|
| 122 | 128 | execl( daemon_path, "vhcs2-rqst-mngr" ,(char*)NULL ); |
|---|
| 123 | | #endif |
|---|
| | 129 | #endif |
|---|
| 124 | 130 | |
|---|
| 125 | 131 | exit(0); |
|---|
| 126 | 132 | #if !defined(__OpenBSD__) && !defined(__FreeBSD__) |
|---|
| 127 | 133 | } |
|---|
| 128 | | #endif |
|---|
| | 134 | #endif |
|---|
| 129 | 135 | } |
|---|
| 130 | | |
|---|
| | 136 | |
|---|
| 131 | 137 | strcat(lr_ans, message(MSG_CMD_OK)); |
|---|
| 132 | 138 | strcat(lr_ans, " query scheduled for execution.\r\n"); |
|---|
| … | … | |
| 142 | 148 | } |
|---|
| 143 | 149 | |
|---|
| 144 | | } |
|---|
| | 150 | } |
|---|
| 145 | 151 | |
|---|
| 146 | 152 | return (NO_ERROR); |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>