Newer
Older
if(!defined('OSTADMININC') || !$thisstaff->isAdmin()) die('Access Denied');
$config=($errors && $_POST)?Format::input($_POST):$cfg->getConfigInfo();
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
?>
<table width="100%" border="0" cellspacing=0 cellpadding=0>
<form action="admin.php?t=attach" method="post">
<input type="hidden" name="t" value="attach">
<tr>
<td>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header">
<td colspan=2> Attachments Settings</td>
</tr>
<tr class="subheader">
<td colspan=2">
Before enabling attachments make sure you understand the security settings and issues related to file uploads.</td>
</tr>
<tr>
<th width="165">Allow Attachments:</th>
<td>
<input type="checkbox" name="allow_attachments" <?php echo $config['allow_attachments'] ?'checked':''; ?>><b>Allow Attachments</b>
(<i>Global Setting</i>)
<font class="error"> <?php echo $errors['allow_attachments']; ?></font>
</td>
</tr>
<tr>
<th>Emailed Attachments:</th>
<td>
<input type="checkbox" name="allow_email_attachments" <?php echo $config['allow_email_attachments'] ? 'checked':''; ?> > Accept emailed files
<font class="warn"> <?php echo $warn['allow_email_attachments']; ?></font>
</td>
</tr>
<tr>
<th>Online Attachments:</th>
<td>
<input type="checkbox" name="allow_online_attachments" <?php echo $config['allow_online_attachments'] ?'checked':''; ?> >
Allow online attachments upload<br/>
<input type="checkbox" name="allow_online_attachments_onlogin" <?php echo $config['allow_online_attachments_onlogin'] ?'checked':''; ?> >
Authenticated users Only. (<i>User must be logged in to upload files </i>)
<font class="warn"> <?php echo $warn['allow_online_attachments']; ?></font>
</td>
</tr>
<tr>
<th>Staff Response Files:</th>
<td>
<input type="checkbox" name="email_attachments" <?php echo $config['email_attachments']?'checked':''; ?> >Email attachments to the user
</td>
</tr>
<tr>
<th nowrap>Maximum File Size:</th>
<td>
<input type="text" name="max_file_size" value="<?php echo $config['max_file_size']; ?>"> <i>bytes</i>
<font class="error"> <?php echo $errors['max_file_size']; ?></font>
</td>
</tr>
<tr>
<th>Attachment Folder:</th>
<td>
Web user (e.g apache) must have write access to the folder. <font class="error"> <?php echo $errors['upload_dir']; ?></font><br>
<input type="text" size=60 name="upload_dir" value="<?php echo $config['upload_dir']; ?>">
<font color=red>
<?php echo $attwarn; ?>
</font>
</td>
</tr>
<tr>
<th valign="top"><br/>Accepted File Types:</th>
<td>
Enter file extensions allowed separated by a comma. e.g <i>.doc, .pdf, </i> <br>
To accept all files enter wildcard <b><i>.*</i></b> i.e dotStar (NOT recommended).
<textarea name="allowed_filetypes" cols="21" rows="4" style="width: 65%;" wrap=HARD ><?php echo $config['allowed_filetypes']; ?></textarea>
</td>
</tr>
</table>
</td></tr>
<tr><td style="padding:10px 0 10px 200px">
<input class="button" type="submit" name="submit" value="Save Changes">
<input class="button" type="reset" name="reset" value="Reset Changes">
</td></tr>
</form>
</table>