- Add blacklisting so plugin scan will skip certain files or directories

- Add caching to plugin scan, default is to rescan once a day
- Remove lingering unneeded requires
This commit is contained in:
Nathan Gray
2010-03-29 17:38:54 +00:00
parent c4ec7ad53f
commit fb5a3e11a8
8 changed files with 49 additions and 33 deletions

View File

@ -137,8 +137,7 @@
exit(INVALID_OPTION);
}
require_once('inc/class.definition.inc.php');
$definition = new definition($definition);
$definition = new importexport_definition($definition);
if( $definition->get_identifier() < 1 ) {
fwrite(STDERR,"importexport_cli: Definition not found! \n");
exit(INVALID_OPTION);
@ -149,8 +148,6 @@
$definition->plugin_options['dry_run'] = $dryrun;
$type = $definition->type;
require_once("$path_to_egroupware/$definition->application/importexport/class.$definition->plugin.inc.php");
$po = new $definition->plugin;
$resource = fopen( $file, 'r' );