tbrehm
2010-12-16 b5a0dc34a3bebd221fe8a564595d4c644122e11d
Merged revisions 2144-2150 from stable branch.
5 files modified
24 ■■■■■ changed files
install/autoupdate.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php 8 ●●●●● patch | view | raw | blame | history
server/cron_daily.php 2 ●●● patch | view | raw | blame | history
server/mods-available/monitor_core_module.inc.php 6 ●●●●● patch | view | raw | blame | history
server/mods-available/remoteaction_core_module.inc.php 6 ●●●● patch | view | raw | blame | history
install/autoupdate.php
@@ -281,7 +281,7 @@
//** Restart services:
swriteln('Restarting services ...');
if($conf['mysql']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['mysql']['init_script']))                    system($conf['init_scripts'].'/'.$conf['mysql']['init_script'].' restart');
if($conf['mysql']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['mysql']['init_script']))                    system($conf['init_scripts'].'/'.$conf['mysql']['init_script'].' reload');
if($conf['services']['mail']) {
    if($conf['postfix']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['postfix']['init_script']))                system($conf['init_scripts'].'/'.$conf['postfix']['init_script'].' restart');
    if($conf['saslauthd']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['saslauthd']['init_script']))            system($conf['init_scripts'].'/'.$conf['saslauthd']['init_script'].' restart');
interface/lib/classes/tform.inc.php
@@ -143,9 +143,9 @@
                    if(!file_exists($lng_file)) $lng_file = "../$module/lib/lang/en_".$this->formDef["name"].".lng";
                    include($lng_file);
                }
                if(is_array($wb_global)) {
                    $wb = array_merge($wb_global,$wb);
                    $wb = $wb_global + $wb;
                }
                if(isset($wb_global)) unset($wb_global);
                
@@ -495,9 +495,7 @@
                                                $out = '';
                                                foreach($field['value'] as $k => $v) {
                                                    $selected = ($k == $field["default"])?' SELECTED':'';
                                                    if(!empty($this->wordbook[$v]))
                                                                    $v = $this->wordbook[$v];
                                                    $out .= "<option value='$k'$selected>$v</option>\r\n";
                                                    $out .= "<option value='$k'$selected>".$this->lng($v)."</option>\r\n";
                                                }
                                        }
                                        if(isset($out)) $new_record[$key] = $out;
server/cron_daily.php
@@ -185,7 +185,7 @@
    if(!@is_dir($statsdir)) mkdir($statsdir);
    
    // awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/web/stats -awstatsprog=/path/to/awstats.pl
    $command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=en -dir='$statsdir' -awstatsprog='$awstats_pl'";
    $command = "$awstats_buildstaticpages_pl -update -LogFile='$logfile' -config='$domain' -lang=en -dir='$statsdir' -awstatsprog='$awstats_pl'";
    
    if($awstats_pl != '' && $awstats_buildstaticpages_pl != '' && fileowner($awstats_pl) == 0 && fileowner($awstats_buildstaticpages_pl) == 0) {
        exec($command);
server/mods-available/monitor_core_module.inc.php
@@ -203,8 +203,10 @@
        $this->monitorMemUsage();
        $this->monitorCpu();
        $this->monitorServices();
        $this->monitorOpenVzHost();
        $this->monitorOpenVzUserBeancounter();
        if(@file_exists('/proc/user_beancounters')) {
            $this->monitorOpenVzHost();
            $this->monitorOpenVzUserBeancounter();
        }
        $this->monitorMailLog();
        $this->monitorMailWarnLog();
        $this->monitorMailErrLog();
server/mods-available/remoteaction_core_module.inc.php
@@ -150,6 +150,10 @@
    }
    private function _doIspCUpdate($action) {
        // Ensure that this code is not executed twice as this would cause a loop in case of a failure
        $this->_actionDone($action['action_id'], 'ok');
        /*
         * Get the version-number of the newest version 
         */
@@ -195,7 +199,7 @@
        /*
         * All well done!
         */
        $this->_actionDone($action['action_id'], 'ok');
        //$this->_actionDone($action['action_id'], 'ok');
    }
}
?>