1 |
dpavlin |
2 |
#!/usr/bin/perl -w |
2 |
dpavlin |
1 |
|
3 |
|
|
# uncomment this when doing maintenance work: |
4 |
|
|
# print "Content-Type: text/html\n\n"; |
5 |
|
|
# print "Database temporarily disabled for maintenance.<br>\n"; |
6 |
|
|
# exit; |
7 |
|
|
|
8 |
dpavlin |
12 |
use constant BASE_DIR => '/usr/local/gedafe'; |
9 |
dpavlin |
1 |
|
10 |
dpavlin |
2 |
use lib BASE_DIR.'/lib/perl'; |
11 |
|
|
|
12 |
dpavlin |
1 |
use Gedafe::Start; |
13 |
|
|
|
14 |
|
|
$|=1; # do not buffer output to get a more responsive feeling |
15 |
|
|
|
16 |
|
|
Start( |
17 |
|
|
db_datasource => 'dbi:Pg:dbname=demo1', |
18 |
|
|
list_rows => 15, |
19 |
dpavlin |
2 |
templates => BASE_DIR.'/example/templates', |
20 |
|
|
pearl_dir => BASE_DIR.'/example/mypearls', |
21 |
dpavlin |
1 |
isearch => 'java/isearch.jar', |
22 |
|
|
show_row_count => 0, |
23 |
|
|
); |