46 if (array_key_exists(
"auth", $Plugins)) {
47 $P = &$Plugins[
"auth"];
49 $P->State = PLUGIN_STATE_FAIL;
52 $_SESSION[
'User'] =
'fossy';
77 $FR = fopen($handle, $mode) or
78 die(
"Can't open $handle, $php_errormsg\n");
79 $wrote = fwrite ($FR, $message);
83 $text = _(
"ERROR: could not write message to");
84 return(
"$text $handle\n");
cli_Init()
Initialize the fossology environment for CLI use. This routine loads the plugins so they can be use b...
plugin_load()
Load every module ui found in mods-enabled.
cli_logger($handle, $message, $mode='a')
Write/append a message to the log handle passed in.