18 if (! isset($_SESSION)) {
22 $startTime = microtime(
true);
23 require_once(__DIR__ .
"/../../lib/php/bootstrap.php");
32 $timingLogger = $container->get(
"log.timing");
33 $timingLogger->logWithStartTime(
"bootstrap", $startTime);
36 $loader = $container->get(
'twig.loader');
37 $loader->addPath(dirname(__FILE__).
'/template');
42 $timingLogger->toc(
"setup init");
48 $timingLogger->toc(
"setup plugins");
54 $timingLogger->toc(
"plugin execution");
57 $errorText = _(
"Module unavailable or your login session timed out.");
58 print
"$errorText <P />";
59 $linkText = _(
"Click here to continue.");
60 print
"<a href=\"$linkUri\">$linkText</a>";
64 $container->get(
"db.manager")->flushStats();
Traceback_uri()
Get the URI without query to this location.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
plugin_load()
Load every module ui found in mods-enabled.
plugin_find($pluginName)
Given the official name of a plugin, return the $Plugins object.
ConfigInit($sysconfdir, &$SysConf, $exitOnDbFail=true)
Initialize the fossology system after bootstrap().
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN
bootstrap($sysconfdir="")
Bootstrap the fossology php library.