|
@@ 68-72 (lines=5) @@
|
| 65 |
|
} |
| 66 |
|
} else { |
| 67 |
|
if (defined('PSI_PLUGIN_PSSTATUS_PROCESSES') && is_string(PSI_PLUGIN_PSSTATUS_PROCESSES)) { |
| 68 |
|
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) { |
| 69 |
|
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES); |
| 70 |
|
} else { |
| 71 |
|
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES); |
| 72 |
|
} |
| 73 |
|
if (defined('PSI_PLUGIN_PSSTATUS_USE_REGEX') && PSI_PLUGIN_PSSTATUS_USE_REGEX === true) { |
| 74 |
|
foreach ($processes as $process) { |
| 75 |
|
CommonFunctions::executeProgram("pgrep", "-n -x ".$process, $buffer, PSI_DEBUG); |
|
@@ 120-124 (lines=5) @@
|
| 117 |
|
return; |
| 118 |
|
} |
| 119 |
|
if (defined('PSI_PLUGIN_PSSTATUS_PROCESSES') && is_string(PSI_PLUGIN_PSSTATUS_PROCESSES)) { |
| 120 |
|
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) { |
| 121 |
|
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES); |
| 122 |
|
} else { |
| 123 |
|
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES); |
| 124 |
|
} |
| 125 |
|
if ((PSI_OS == 'WINNT') && (strtolower(PSI_PLUGIN_PSSTATUS_ACCESS) == 'command')) { |
| 126 |
|
foreach ($processes as $process) { |
| 127 |
|
if ($this->_recursiveinarray(strtolower($process), $this->_filecontent)) { |