-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathucserver.inc.php
59 lines (54 loc) · 2.12 KB
/
ucserver.inc.php
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
52
53
54
55
56
57
58
59
<?php
/**
* SLiMS Union Catalog server and node information
*
* Copyright (C) 2010 Hendro Wicaksono ([email protected])
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
// be sure that this file not accessed directly
if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
die();
}
/**
*
* BEGIN SERVER AND NODES CONFIGURATION
*/
// server configuration
$sysconf['server'] = array(
'id' => 'd13205a03e019e5926b910046b676c6c04f20363',
'name' => $sysconf['library_name'],
'subname' => $sysconf['library_subname'],
'max_node_all' => 5, // maximum connection to server
'max_node_conn' => 1 // maximum connection for each node
);
// nodes configuration
$sysconf['node']['node01'] = array(
'id' => 'node01', // node id (must be UNIQUE, lowercase and not containing any spaces!)
'name' => 'Perpustakaan Kosong Satu', // node name
'password' => 'yourucsconnectpassword', // this hash created with SHA1 algoritm
'baseurl' => 'http://localhost/slims_01', // node base URL
'ip' => '' // IP address of node
);
// another nodes configuration
$sysconf['node']['node02'] = array(
'id' => 'node02', // node id (must be UNIQUE, lowercase and not containing any spaces!)
'name' => 'Perpustakaan Kosong Dua', // node name
'password' => 'youranotherucsconnectpassword', // this hash created with SHA1 algoritm
'baseurl' => 'http://localhost/slims_02', // node base URL
'ip' => '' // IP address of node
);
?>