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

get a list of filepaths and copyright information for those files. More...

Go to the source code of this file.

Variables

 $Usage
 
 $upload = $item = ""
 
 $typeCopyright = array("statement","email","url")
 
 $longopts = array("user:", "password:", "type:", "container:")
 
 $options = getopt("c:u:t:hx:X:", $longopts)
 
if(($options===false)||empty($options)||! is_array($options)) $user = $passwd = ""
 
 $cpLister = new CopyrightLister()
 
foreach($options as $option=> $value) if(is_numeric($item) &&!is_numeric($upload)) if(!is_numeric($upload)) if (!empty( $item) &&!is_numeric( $item))
 
 $return_value = read_permission($upload, $user)
 
 return
 

Detailed Description

get a list of filepaths and copyright information for those files.

Definition in file fo_copyright_list.php.

Variable Documentation

◆ $Usage

Initial value:
= "Usage: " . basename($argv[0]) . "
-u upload id :: required - upload id
-t uploadtree id :: required - uploadtree id
-c sysconfdir :: optional - Specify the directory for the system configuration
--type type :: optional - all/statement/url/email, default: all
--user username :: user name
--password password :: password
--container :: include container or not, 1: yes, 0: no (default)
-x copyright :: to match all that does not contain my copyright, (default): show all files
-X copyright :: to match my copyright, (default): show all files
-h help, this message
"

Definition at line 16 of file fo_copyright_list.php.

◆ if

foreach ( $options as $option=> $value) if (is_numeric( $item) &&!is_numeric( $upload)) if (!is_numeric( $upload)) if(!empty($item) &&!is_numeric($item)) ( empty $item) &&!is_numeric( $item)

get upload id through uploadtree id check if parameters are valid

Definition at line 101 of file fo_copyright_list.php.