1 |
dpavlin |
1.1 |
<? |
2 |
|
|
$phormationdir = "../phormation"; |
3 |
|
|
$DB = "pgsql"; |
4 |
|
|
|
5 |
|
|
$comm_dir="/home/dpavlin/private/corp/public_html/comm"; |
6 |
|
|
$more_dir="/home/dpavlin/private/corp/public_html/news"; |
7 |
|
|
$pdf_dir="/home/dpavlin/private/corp/public_html/pdf"; |
8 |
|
|
|
9 |
|
|
|
10 |
|
|
$fields[] = "visible"; $names[] = "Visible"; |
11 |
|
|
$types[]="type=boolean&default=1"; |
12 |
|
|
|
13 |
|
|
|
14 |
|
|
$fields[] = "title"; $names[] = "Title"; |
15 |
|
|
$types[]="type=text&width=50&height=2&length=200&required=1"; |
16 |
|
|
|
17 |
|
|
$fields[] = "town_date"; $names[] = "Town, Date"; |
18 |
|
|
$types[]="type=text&width=50&length=100&required=1"; |
19 |
|
|
|
20 |
|
|
$fields[] = "date"; $names[] = "Date (real)"; |
21 |
|
|
$types[]="type=date&yearspan=8"; |
22 |
|
|
|
23 |
|
|
$fields[] = "type"; $names[] = "Type"; |
24 |
|
|
$types[]="type=select&map[n]=News&map[c]=Community&map[e]=Events&selecttype=dropdown"; |
25 |
|
|
|
26 |
|
|
$fields[] = "body"; $names[] = "Short text"; |
27 |
|
|
$types[]="type=text&height=10&width=50&length=5000&required=1"; |
28 |
|
|
|
29 |
|
|
$fields[] = "pic,origpic"; $names[] = "Picture"; |
30 |
|
|
$types[]="type=file&process_hook=default_image_process_hook&processparm=picseq&targetdir=$comm_dir&showfilename=1&imagemode=1&serverdir=comm"; |
31 |
|
|
|
32 |
dpavlin |
1.2 |
$fields[] = "more,more"; $names[] = "HTML file:"; |
33 |
dpavlin |
1.1 |
$types[]="type=file&targetdir=$more_dir&showfilename=1"; |
34 |
|
|
|
35 |
dpavlin |
1.2 |
$fields[] = "pdf,pdf"; $names[] = "PDF file:"; |
36 |
|
|
$types[]="type=file&process_hook=default_image_process_hook&processparm=picseq&targetdir=$pdf_dir&showfilename=1"; |
37 |
dpavlin |
1.1 |
?> |