this bug 6018 was solved, there were some mistakes when you made to run the cron

This commit is contained in:
Carlos Pacha
2011-01-26 21:30:05 +00:00
parent 60ea1b73a9
commit 8dd4400075
5 changed files with 19 additions and 4 deletions

View File

@@ -2916,6 +2916,18 @@ class G
}
}
/**
* isHttpRequest
*
* @return boolean true or false
*/
function isHttpRequest(){
if( isset($_SERVER['SERVER_SOFTWARE']) && strpos(strtolower($_SERVER['SERVER_SOFTWARE']), 'apache') !== false ){
return true;
}
return false;
}
/**
* Get the type of a variable
* Returns the type of the PHP variable var.

View File

@@ -4191,12 +4191,12 @@ class XmlForm_Field_Image extends XmlForm_Field
// function mask to php
function masktophp ($mask){
$tmp = str_replace("%", "", $mask);
if(ereg('b',$tmp)) {
if(preg_match('/b/',$tmp)) {
$tmp2 = str_replace("b", "M", $tmp);
$value=date($tmp2);
return $value;
}
if(ereg('B',$tmp)) {
if(preg_match('/B/',$tmp)) {
$tmp2 = str_replace("B", "F", $tmp);
$value=date($tmp2);
return $value;

View File

@@ -247,7 +247,7 @@ function executePlugins(){
$className = $filename . 'ClassCron';
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
$oPlugin =& new $className();
$oPlugin = new $className();
if (method_exists($oPlugin, 'executeCron')) {
$oPlugin->executeCron();
setExecutionMessage("Executing Pentaho Reports Plugin");

View File

@@ -254,6 +254,9 @@ class spoolRun {
$holdcc = array ();
$holdbcc = array ();
$text = trim($this->fileData['to']);
$textcc ='';
$textbcc='';
if( isset($this->fileData['cc']) && trim($this->fileData['cc']) != '' ) {
$textcc = trim($this->fileData['cc']);
}

View File

@@ -351,7 +351,7 @@ switch($_POST['action']) {
break;
case 'pauseCase':
$unpausedate = $_POST['unpausedate'];
$unpauseDate = $_POST['unpausedate'];
$oCase = new Cases();
if( isset($_POST['APP_UID']) && isset($_POST['DEL_INDEX']) ) {
$APP_UID = $_POST['APP_UID'];