Revision 3dbceb92
Added by Scott Ullrich about 14 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
2235 | 2235 |
function pfSense_handle_custom_code($src_dir) { |
2236 | 2236 |
// Allow extending of the nat edit page and include custom input validation |
2237 | 2237 |
if(is_dir("$src_dir")) { |
2238 |
$cf = glob($src_dir); |
|
2238 |
$cf = glob($src_dir . "/*.inc");
|
|
2239 | 2239 |
foreach($cf as $nf) { |
2240 | 2240 |
if($nf == "." || $nf == "..") |
2241 | 2241 |
continue; |
2242 | 2242 |
// Include the extra handler |
2243 |
include("$src_dir/$nf");
|
|
2243 |
include("$nf"); |
|
2244 | 2244 |
} |
2245 | 2245 |
} |
2246 | 2246 |
} |
Also available in: Unified diff
Include .inc files for plugin system