38 $U .=
"Usage: $argv[0] Url User Password [proxy]\n\nUrl is a full url with ending /\n";
39 $U .=
"e.g. http://someHost.somedomain/repo/\n\n";
40 $U .=
"Data-Base User and Data-Base Password\n\n";
41 $U .=
"Optional proxy in the form http://web-proxy.xx.com:80xx\n";
42 $U .=
"The proxy format is not checked, so make sure it's correct\n";
43 $U .=
"Very little parameter checking is done.\n\n";
44 $U .=
"For example,\n$argv[0] 'http://fossology.org/' dbuser dbpasswd 'http://web-proxy.somebody.com:8080'\n";
45 $U .=
"Note the single quotes are used to keep the shell happy.\n";
62 list($me, $url, $user, $password, $proxy) = $argv;
64 if(empty($url)) { exit(1); }
65 if(
'http://' != substr($url,0,7))
67 print
"$me ERROR not a valid URL\n$url\n\n$usage";
71 $FD = fopen(
'./TestEnvironment.php',
'w') or die("Can't open ./TestEnvironment $php_errormsg\n");
72 $startphp = "<?php\n";
73 $testGlobals = "global \$USER;\n" .
74 "global \$PASSWORD;\n" .
76 $fullUrl = "\$URL='$url';\n";
77 $usr = "\$USER='$user';\n";
78 $passwd = "\$PASSWORD='$password';\n";
82 $define ="define('TESTROOT',\"$tests\");\n";
85 $useproxy =
"\$PROXY='$proxy';\n";
86 fwrite($FD,
"$startphp$testGlobals$fullUrl$usr$passwd$useproxy$define$endphp");
90 fwrite($FD,
"$startphp$testGlobals$fullUrl$usr$passwd$define$endphp");
93 print
"./TestEnvironment.php created sucessfully\n";
if(!preg_match("/\s$projectGroup\s/", $groups)&&(posix_getgid()!=$gInfo['gid']))
get monk license list of one specified uploadtree_id
list_t type structure used to keep various lists. (e.g. there are multiple lists).