1 |
dpavlin |
1.1 |
<? |
2 |
|
|
|
3 |
|
|
$phormationdir = "../phormation"; |
4 |
|
|
$DB = "pgsql"; |
5 |
|
|
|
6 |
|
|
//------------------------------------------------------------------- |
7 |
|
|
|
8 |
|
|
$table="emails"; |
9 |
|
|
|
10 |
|
|
$params["query"] = "select referer,email from emails"; |
11 |
|
|
$params["defaultsort"] = "referer"; |
12 |
|
|
$params["key"] = "referer"; |
13 |
dpavlin |
1.2 |
$params["delquery"] = "delete from $table where ".$params["key"]." = "; |
14 |
dpavlin |
1.1 |
|
15 |
|
|
//------------------------------------------------------------------- |
16 |
|
|
|
17 |
|
|
$fields[] = "referer"; $names[] = "Section from"; |
18 |
|
|
$types[]="type=fkey&table=menu&query=select distinct section,upper(section) as desc from menu order by section&pkey=section&desc=desc"; |
19 |
|
|
|
20 |
|
|
$fields[] = "email"; $names[] = "Mail to:"; |
21 |
|
|
$types[]="type=text&width=50&height=4&length=8192"; |
22 |
|
|
|
23 |
|
|
//------------------------------------------------------------------- |
24 |
|
|
|
25 |
|
|
$conn = pg_connect( "dbname=plivasi user=dpavlin" ); |
26 |
|
|
if( !$conn ) { |
27 |
|
|
echo "Couldn't connect to database!<BR>"; |
28 |
|
|
} else { |
29 |
|
|
$result=pg_Exec($conn,"set datestyle = 'german'"); |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
//------------------------------------------------------------------- |
33 |
|
|
|
34 |
|
|
?> |