27 $U .=
"Usage: $argv[0] Url User Password [proxy]\n\nUrl is a full url with ending /\n";
28 $U .=
"e.g. http://someHost.somedomain/repo/\n\n";
29 $U .=
"Data-Base User and Data-Base Password\n\n";
30 $U .=
"Optional proxy in the form http://web-proxy.xx.com:80xx\n";
31 $U .=
"The proxy format is not checked, so make sure it's correct\n";
32 $U .=
"Very little parameter checking is done.\n\n";
33 $U .=
"For example,\n$argv[0] 'http://fossology.org/' dbuser dbpasswd 'http://web-proxy.somebody.com:8080'\n";
34 $U .=
"Note the single quotes are used to keep the shell happy.\n";
51 list($me, $url, $user, $password, $proxy) = $argv;
53 if(empty($url)) { exit(1); }
54 if(
'http://' != substr($url,0,7))
56 print
"$me ERROR not a valid URL\n$url\n\n$usage";
60 $FD = fopen(
'./TestEnvironment.php',
'w') or die("Can't open ./TestEnvironment $php_errormsg\n");
61 $startphp = "<?php\n";
62 $testGlobals = "global \$USER;\n" .
63 "global \$PASSWORD;\n" .
65 $fullUrl = "\$URL='$url';\n";
66 $usr = "\$USER='$user';\n";
67 $passwd = "\$PASSWORD='$password';\n";
71 $define ="define('TESTROOT',\"$tests\");\n";
74 $useproxy =
"\$PROXY='$proxy';\n";
75 fwrite($FD,
"$startphp$testGlobals$fullUrl$usr$passwd$useproxy$define$endphp");
79 fwrite($FD,
"$startphp$testGlobals$fullUrl$usr$passwd$define$endphp");
82 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).