Rev 11 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11 | Rev 76 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | 18 | ||
19 | # --- |
19 | # --- |
20 | 20 | ||
21 | if (!is_dir(dirname(WHOISPING_DB))) mkdir(dirname(WHOISPING_DB), 0755, true); |
21 | if (!is_dir(dirname(WHOISPING_DB))) mkdir(dirname(WHOISPING_DB), 0755, true); |
22 | $db = new SQLite3(WHOISPING_DB); # TODO: in config auslagern |
22 | $db = new SQLite3(WHOISPING_DB); # TODO: in config auslagern |
23 | if (!$db) die ($error); |
23 | if (!$db) die("Cannot open SQLite DB '" . WHOISPING_DB . "'"); |
24 | 24 | ||
25 | gwitc_initdb($db); |
25 | gwitc_initdb($db); |
26 | 26 | ||
27 | $pattern_servers = array(); |
27 | $pattern_servers = array(); |
28 | $pattern_files = getpatternfiles(); |
28 | $pattern_files = getpatternfiles(); |