Changeset 675

Show
Ignore:
Timestamp:
06/24/07 22:28:48 (1 year ago)
Author:
rats
Message:

serveral changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configs/crontab/crontab.conf

    r619 r675  
    33 
    44# Quota 
    5 0              23              * * *  {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-qsk-quota.log 
     50       23     *       *       *  {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-qsk-quota.log 
    66 
    77# Traffic 
    8 0,30    *              * * *  {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log 
    9 0,30    *              * * *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log 
    10 15,45   *              * * *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log 
    11 30             23              * * *  {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log 
     80,30    *       *      *       *  {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log 
     90,30    *       *      *       *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log 
     1015,45   *       *      *       *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log 
     1130      23     *       *       *  {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log 
    1212 
    1313# Backup 
    14 0              1               * * *  {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log 
     140       1      *       *       *  {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log 
    1515 
    1616# AWStats 
     
    1818 
    1919# Rootkit Hunter 
    20 0              0,12    * * * rkhunter --createlogfile --cronjob 
     200       0,12   *       *       *      rkhunter --createlogfile --cronjob 
    2121 
    2222# [{DMN_NAME}] backup task START. 
  • trunk/engine/ispcp_common_code.pl

    r670 r675  
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
     
    3232 
    3333use strict; 
    34  
    3534use warnings; 
    3635 
    3736require 'ispcp_common_methods.pl'; 
    38  
    3937require 'ispcp-db-keys.pl'; 
    4038 
     
    120118$main::ispcp_dsk_quota_el = "$main::log_dir/ispcp-dsk-quota.el"; 
    121119 
    122  
    123 $main::level1_license = "S2F10-144BD"; 
    124  
    125 $main::level1_dmn_count = 10; 
    126  
    127 $main::level2_license = "37FD1-ED3DB"; 
    128  
    129 $main::level2_dmn_count = 30; 
    130  
    131 $main::level3_license = "QDA53-HE4CC"; 
    132  
    133 $main::level3_dmn_count = 100; 
    134  
    135 $main::level4_license = "A5F26-AC7DF"; 
    136  
    137 $main::level4_dmn_count = "unlimited"; 
    138  
    139 $main::working_license = $main::level1_license; 
    140  
    141120######################################################################## 
    142121 
    143122return 1; 
    144  
  • trunk/engine/ispcp_common_methods.pl

    r674 r675  
    66# Copyright (c) 2006-2007 by isp Control Panel 
    77# http://isp-control.net 
    8 # Copyright (c) 2007 by Raphael Geissert 
    98# 
    109# 
     
    2726# 
    2827# 
    29 # The ISPCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    3029# 
    3130#    http://isp-control.net 
     
    936935 
    937936    } 
    938      
     937 
    939938    my $rs = open(F, '<', '/dev/random'); 
    940939 
     
    944943 
    945944        return (-1, ''); 
    946      
    947     } 
    948      
     945 
     946    } 
     947 
    949948    my ($i, $rdata, $rc, $rci) = (0, undef, undef, undef); 
    950      
    951     while ($i < $len) { 
     949 
     950    while ($i <= $len) { 
    952951 
    953952        read(F, $rc, 1); 
    954          
     953 
    955954        $rci = ord($rc); 
    956          
     955 
    957956        next if ($rci <= 32 || $rci >= 125 || $rci == 92 ); 
    958          
     957 
    959958        $rdata .= $rc; 
    960959        $rc = undef; 
     
    962961 
    963962    } 
    964      
     963 
    965964    close(F); 
    966965 
     
    16201619 
    16211620    } 
    1622      
     1621 
    16231622    if (length($main::db_pass_key) != 32 || length($main::db_pass_iv) != 8) { 
    16241623 
     
    16631662 
    16641663    } 
    1665      
     1664 
    16661665    if (length($main::db_pass_key) != 32 || length($main::db_pass_iv) != 8) { 
    16671666 
     
    17151714 
    17161715        ($rs, $main::db_pwd) = decrypt_db_password($main::db_pwd); 
    1717          
     1716 
    17181717        # Silently quit 
    17191718        return 0 if ($rs != 0); 
  • trunk/engine/setup/ispcp-setup

    r671 r675  
    14681468sub setup_crontab { 
    14691469 
    1470         my ($rs, $rdata, $awstats) = (undef, undef, undef); 
     1470        my ($rs, $rdata, $awstats) = (undef, undef, ''); 
    14711471 
    14721472        push_el(\@main::el, 'setup_crontab()', 'Starting...'); 
     
    15071507 
    15081508                if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes') { 
    1509                         $awstats = "15     6 * * * $main::cfg{'ROOT_DIR'}/engine/awstats/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl"; 
     1509                        $awstats = "15 6       *       *       *       $main::cfg{'ROOT_DIR'}/engine/awstats/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl"; 
    15101510                } 
    15111511                else { 
     
    28822882 
    28832883        } 
    2884          
     2884 
    28852885        if ( ! -e "/etc/init.d/vhcs2_daemon" ) { 
    28862886 
    28872887            sys_command_rs("$main::cfg{'CMD_ISPCPD'} stop &> /tmp/ispcp-setup-services.log"); 
    28882888            sys_command_rs("$main::cfg{'CMD_ISPCPN'} stop &> /tmp/ispcp-setup-services.log"); 
    2889      
     2889 
    28902890            sleep(3); 
    2891      
     2891 
    28922892            sys_command_rs("$main::cfg{'CMD_ISPCPD'} start &> /tmp/ispcp-setup-services.log"); 
    28932893            sys_command_rs("$main::cfg{'CMD_ISPCPN'} start &> /tmp/ispcp-setup-services.log"); 
  • trunk/keys/rpl.pl

    r674 r675  
    11#!/usr/bin/perl 
     2 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     4# Copyright (c) 2001-2006 by moleSoftware GmbH 
     5# http://www.molesoftware.com 
     6# Copyright (c) 2006-2007 by isp Control Panel 
     7# http://isp-control.net 
     8# 
     9# 
     10# License: 
     11#    This program is free software; you can redistribute it and/or 
     12#    modify it under the terms of the MPL Mozilla Public License 
     13#    as published by the Free Software Foundation; either version 1.1 
     14#    of the License, or (at your option) any later version. 
     15# 
     16#    This program is distributed in the hope that it will be useful, 
     17#    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     18#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     19#    MPL Mozilla Public License for more details. 
     20# 
     21#    You may have received a copy of the MPL Mozilla Public License 
     22#    along with this program. 
     23# 
     24#    An on-line copy of the MPL Mozilla Public License can be found 
     25#    http://www.mozilla.org/MPL/MPL-1.1.html 
     26# 
     27# 
     28# The ispCP ω Home Page is at: 
     29# 
     30#    http://isp-control.net 
     31# 
    232 
    333use FindBin; 
     
    1343my ($php_fname, $perl_fname, $perl_fname2) = ($ARGV[0], $ARGV[1], $ARGV[2]); 
    1444 
    15 my $key = gen_sys_rand_num(33); 
    16 my $iv  = gen_sys_rand_num(9); 
     45my $key = gen_sys_rand_num(32); 
     46my $iv  = gen_sys_rand_num(8); 
    1747 
    1848$key =~ s/'/\\'/gi;