| | |
| | | foreach ($rules['actions'] as $action) { |
| | | if ($action['type'] == 'include' && empty($action['global'])) { |
| | | $name = preg_replace($filename_regex, '', $action['target']); |
| | | $this->active[] = $name; |
| | | // make sure the script exist |
| | | if (in_array($name, $this->list)) { |
| | | $this->active[] = $name; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | */ |
| | | protected function init_script() |
| | | { |
| | | $this->script = $this->sieve->script->as_array(); |
| | | |
| | | if (!$this->script) { |
| | | if (!$this->sieve->script) { |
| | | return; |
| | | } |
| | | |
| | | $this->script = $this->sieve->script->as_array(); |
| | | |
| | | $headers = array(); |
| | | $exceptions = array('date', 'currentdate', 'size', 'body'); |
| | | |