. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /** * New Debugger interface * * @author Erik A. O. * @Date Wed Mar 17th. 2010 */ $filter = new InputFilter(); $_SESSION = $filter->xssFilterHard($_SESSION, "url"); $nextStep = $filter->xssFilterHard($_POST['NextStep'], "url"); //variables $oApp= new Cases(); $aFields = $oApp->loadCase($_SESSION['APPLICATION']); $aStoredVarNames = array_keys($aFields['APP_DATA']); $aVariables = Array(); for ($i=0; $ixssFilterHard($aVariables); ksort($aVariables); //triggers if (isset($_SESSION['TRIGGER_DEBUG']['info'])) { $aTriggers = $_SESSION['TRIGGER_DEBUG']['info']; } else { $aTriggers[0] = $_SESSION['TRIGGER_DEBUG']; } foreach ($aTriggers as $aTrigger) { $triggers_name = Array(); $triggers_code = Array(); $t_time = $aTrigger['TIME']; if ($aTrigger['NUM_TRIGGERS'] != 0) { $triggers_onfly = $aTrigger['NUM_TRIGGERS']." trigger(s) was executed ". strtolower($aTrigger['TIME'])."
"; $cnt = 0; if (isset($aTrigger['TRIGGERS_NAMES'])) { foreach ($aTrigger['TRIGGERS_NAMES'] as $name) { $t_code = $aTrigger['TRIGGERS_VALUES'][$cnt]['TRI_WEBBOT']; //$t_code = str_replace('"', '\'',$t_code); //$t_code = addslashes($t_code); $t_code = Only1br($t_code); $triggers_name[] = $name; $triggers_code[] = $t_code; $cnt++; } } } else { $triggers_onfly = " No triggers found ".strtolower($t_time).""; } } //errors $DEBUG_POST = array_unique($_SESSION['TRIGGER_DEBUG']['ERRORS']); ///// function Only1br($string) { return preg_replace("/(\r\n)+|(\n|\r)+/", "
", $string); } ?>
Processmaker - Debugger
Triggers

0) {?> $trigger) {?>
# Name  
    
Variables
$aVariable) {?>
NameValue
   
0) {?>
Errors
Error ', '',$DEBUG_POST[$i]['ERROR']);?>
Fatal error ', '',$DEBUG_POST[$i]['FATAL']); ?>
No errors reported
"; foreach ($a as $k => $v) { echo ""; } echo "
 $k"; expandVarView($v, "{$name}_{$k}"); echo "
"; } else { echo ($a=='')? ' ': " $a"; } }