29 if (! isset($_SESSION)) {
33 $startTime = microtime(
true);
34 require_once(__DIR__ .
"/../../lib/php/bootstrap.php");
43 $timingLogger = $container->get(
"log.timing");
44 $timingLogger->logWithStartTime(
"bootstrap", $startTime);
47 $loader = $container->get(
'twig.loader');
48 $loader->addPath(dirname(__FILE__).
'/template');
53 $timingLogger->toc(
"setup init");
59 $timingLogger->toc(
"setup plugins");
65 $timingLogger->toc(
"plugin execution");
68 $errorText = _(
"Module unavailable or your login session timed out.");
69 print
"$errorText <P />";
70 $linkText = _(
"Click here to continue.");
71 print
"<a href=\"$linkUri\">$linkText</a>";
75 $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_find($pluginName)
Given the official name of a plugin, return the $Plugins object.
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN
plugin_load()
Load every module ui found in mods-enabled.
bootstrap($sysconfdir="")
Bootstrap the fossology php library.
ConfigInit($sysconfdir, &$SysConf)
Initialize the fossology system after bootstrap().