Rev 1366 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1366 | Rev 1369 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | #################################################### |
2 | #################################################### |
3 | # AstWeb - Asterisk PBX Dynamic config environment # |
3 | # AstWeb - Asterisk PBX Dynamic config environment # |
4 | # # |
4 | # # |
5 | # Written by: Jamie Carl # |
5 | # Written by: Jamie Carl # |
6 | # jazz@funkynerd.com # |
6 | # jazz@funkynerd.com # |
7 | # # |
7 | # # |
8 | # Copyright (C) 2006 Achieve Corp # |
8 | # Copyright (C) 2006 Achieve Corp # |
9 | # # |
9 | # # |
10 | # Licence: This software is licenced under the # |
10 | # Licence: This software is licenced under the # |
11 | # GNU/GPL. Please see licence.txt for # |
11 | # GNU/GPL. Please see licence.txt for # |
12 | # more information. # |
12 | # more information. # |
13 | #################################################### |
13 | #################################################### |
14 | 14 | ||
15 | /* Do NOT touch this! */ |
15 | /* Do NOT touch this! */ |
16 | if ( !defined('IN_ASTWEB') ) { |
16 | if ( !defined('IN_ASTWEB') ) { |
17 | die("Hacking attempt"); |
17 | die("Hacking attempt"); |
18 | } |
18 | } |
19 | 19 | ||
20 | /* Configuration settings */ |
20 | /* Configuration settings */ |
21 | 21 | ||
22 | $tpl_dir = 'templates'; |
22 | $tpl_dir = 'templates'; |
23 | $img_dir = 'images'; |
23 | $img_dir = 'images'; |
24 | 24 | ||
25 | $site_title = 'Asterisk Web Interface'; |
25 | $site_title = 'Asterisk Web Interface'; |
26 | $site_style = 'astweb.css'; |
26 | $site_style = 'astweb.css'; |
27 | 27 | ||
28 | $includes = 'includes'; |
28 | $includes = 'includes'; |
29 | 29 | ||
30 | $db_type = 'PGSQL'; |
30 | $db_type = 'PGSQL'; |
31 | $db_host = 'localhost'; |
31 | $db_host = 'localhost'; |
32 | $db_user = 'astweb'; |
32 | $db_user = 'astweb'; |
33 | $db_password = 'password'; |
33 | $db_password = 'password'; |
34 | $db_database = 'asterisk'; |
34 | $db_database = 'asterisk'; |
35 | 35 | ||
36 | // any local specific query |
36 | // any local specific query |
37 | function BaseQuery() |
37 | function BaseQuery() |
38 | { |
38 | { |
39 | return " dstchannel != ''"; |
39 | return " (dstchannel is null or dstchannel != '')"; |
40 | } |
40 | } |
41 | 41 | ||
42 | ?> |
42 | ?> |