-
Notifications
You must be signed in to change notification settings - Fork 2
/
listen-config.php.template
51 lines (42 loc) · 1.65 KB
/
listen-config.php.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
$home = exec( "ls -d ~us3/lims" );
$home_remote = "$home"; // for local submission
$work = "$home/work";
$work_remote = "$home_remote/work";
$pipe = "$home/etc/us3-pipe";
$logfile = "$home/etc/udp.log";
$lock_dir = "$home/etc";
$cfgfile = "$home/.us3lims.ini";
$configs = parse_ini_file( $cfgfile, true );
$submit_dir = '/srv/www/htdocs/uslims3/uslims3_data'; // LIMS submit files dir
$listen_port = 12233;
//$dbhost = "uslims.uleth.ca";
$dbhost = "localhost";
$servhost = "uslims.uleth.ca";
$self = basename( $_SERVER['PHP_SELF'] );
$class_dir_p = '/srv/www/htdocs/common/class/'; // Class dir for production
$class_dir_d = '/srv/www/htdocs/common/class_devel/'; // Class dir for development
$class_dir_l = '/srv/www/htdocs/common/class_local/'; // Class dir for local
$class_dir = $class_dir_p; // Class dir default
// Global DB credentials
$guser = "gfac";
$gpasswd = $configs[ 'gfac' ][ 'password' ];
$gDB = "gfac";
$serviceURL = "http://gridfarm005.ucs.indiana.edu:8080/ogce-rest/job";
$serviceURL2 = "http://gridfarm005.ucs.indiana.edu:9090/ogce-rest/job";
// US3 DB credentials
$user = "us3php";
$passwd = $configs[ 'us3php' ][ 'password' ];
$org_name = "UltraScan3 Admin";
$org_domain = "uleth.ca";
$admin_email = "[email protected]";
// This is really a library routine
date_default_timezone_set( 'America/Chicago' );
function write_log( $message )
{
global $logfile;
$log = fopen( $logfile, "a" );
fwrite( $log, date( "Y-m-d H:i:s " ) . $message . "\n" );
fclose( $log );
}
?>