FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Check that you can connect to the db. More...
Go to the source code of this file.
Functions | |
Usage () | |
Print Usage statement. More... | |
bootstrap ($sysconfdir="") | |
Bootstrap the fossology php library. More... | |
Variables | |
$SysConf = array() | |
$PG_CONN = 0 | |
$Plugins = array() | |
$AllPossibleOpts = "abc:defghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
$Verbose = false | |
$DatabaseName = "fossology" | |
$UpdateLiceneseRef = false | |
$sysconfdir = '' | |
$Options = getopt($AllPossibleOpts) | |
$rv = DBconnect($sysconfdir, "", false) | |
Check that you can connect to the db.
@exit 0 for success, 1 for failure.
Definition in file fo_dbcheck.php.
bootstrap | ( | $sysconfdir = "" | ) |
Bootstrap the fossology php library.
Included here so that fossinit can run from any directory
The following precedence is used to resolve SYSCONFDIR:
Any errors are fatal. A text message will be printed followed by an exit(1)
$sysconfdir | Typically from the caller's -c command line parameter |
The global $SYSCONFDIR is also set for backward compatibility.
\Note Since so many files expect directory paths that used to be in pathinclude.php to be global, this function will define the same globals (everything in the DIRECTORIES section of fossology.conf).
Definition at line 106 of file fo_dbcheck.php.
Usage | ( | ) |
Print Usage statement.
Definition at line 63 of file fo_dbcheck.php.