| 1 | <?php |
| 2 | /******************************************************************************** |
| 3 | * include/core.inc.php : The include file for using Philter Core |
| 4 | * -------------------- |
| 5 | * |
| 6 | * This file is part of the philter distribution |
| 7 | * Copyright: See COPYING files that comes with this distribution |
| 8 | ********************************************************************************/ |
| 9 | |
| 10 | require_once("include/emails.inc.php"); |
| 11 | require_once("include/rule.inc.php"); |
| 12 | require_once("include/filter.inc.php"); |
| 13 | |
| 14 | require_once("include/plugin.inc.php"); |
| 15 | |
| 16 | $handle = opendir('include'); |
| 17 | while(($file = readdir($handle)) !== false) |
| 18 | if(preg_match("/^plugin_.*\.inc\.php$/",$file)) |
| 19 | require_once('include/'.$file); |
| 20 | closedir($handle); |
| 21 | |
| 22 | // PHP 4.3.0 required !!! |
| 23 | // foreach(glob("include/plugin_*.inc.php") as $file) require_once($file); |
| 24 | |
| 25 | /******************************************************************************** |
| 26 | * $Id$ |
| 27 | * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100: |
| 28 | ********************************************************************************/ |
| 29 | ?> |