Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0181022c
Commit
0181022c
authored
Jul 13, 2009
by
Richard Mansfield
Browse files
Check clam path on site options page when virus checking is on (bug 3335)
parent
81adc3f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/site/options.php
View file @
0181022c
...
...
@@ -229,6 +229,16 @@ function siteoptions_submit(Pieform $form, $values) {
}
}
if
(
$values
[
'viruschecking'
]
==
'on'
)
{
$pathtoclam
=
escapeshellcmd
(
trim
(
get_config
(
'pathtoclam'
)));
if
(
!
$pathtoclam
||
!
file_exists
(
$pathtoclam
)
&&
!
is_executable
(
$pathtoclam
))
{
$form
->
reply
(
PIEFORM_ERR
,
array
(
'message'
=>
get_string
(
'clamlost'
,
'mahara'
,
$pathtoclam
),
'goto'
=>
'/admin/site/options.php'
,
));
}
}
$message
=
get_string
(
'siteoptionsset'
,
'admin'
);
if
(
$oldtheme
!=
$values
[
'theme'
])
{
$message
.
=
' '
.
get_string
(
'usersseenewthemeonlogin'
,
'admin'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment