FOSSology  4.4.0
Open Source License Compliance by Open Source Software
list_license.php File Reference

list license in fossology More...

Go to the source code of this file.

Functions

 list_license ($reference_flag, $nomos_flag)
 
 Usage ()
 Print Usage statement. More...
 

Variables

 $PREFIX = "/usr/local/"
 
 $sysconfig = "$PREFIX/etc/fossology/"
 
 $AllPossibleOpts = "nrh"
 
 $reference_flag = 0
 
 $nomos_flag = 0
 
 $Options = getopt($AllPossibleOpts)
 
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN = DBconnect($sysconfig)
 

Detailed Description

list license in fossology

Returns
0 for success, 1 for failure.

Definition in file list_license.php.

Function Documentation

◆ Usage()

Usage ( )

Print Usage statement.

Returns
No return, this calls exit.

Definition at line 73 of file list_license.php.

Variable Documentation

◆ $PG_CONN

foreach ( $Options as $Option=> $OptVal) if (0==$reference_flag &&0==$nomos_flag) $PG_CONN = DBconnect($sysconfig)

for no any flag scenario, meanning, list all licenses

Examples
/home/runner/work/fossology/fossology/src/www/ui/ui-picker.php.

Definition at line 50 of file list_license.php.