Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
fb66b787
Commit
fb66b787
authored
Dec 17, 2008
by
tbrehm
Browse files
- Added Warning message when network configuration is disabled.
- Added some general php settings to config.inc.php
parent
a04614c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/tpl/config.inc.php.master
View file @
fb66b787
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
Copyright (c) 2007
- 2008
, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
@@ -34,10 +34,23 @@ if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
Header
(
"Pragma: no-cache"
);
Header
(
"Cache-Control: no-store, no-cache, max-age=0, must-revalidate"
);
Header
(
"Content-Type: text/html; charset=utf-8"
);
//** Set a few php.ini values
ini_set
(
'register_globals'
,
0
);
ini_set
(
'magic_quotes_gpc'
,
0
);
if
(
isset
(
$_REQUEST
[
'GLOBALS'
])
||
isset
(
$_FILES
[
'GLOBALS'
]))
{
die
(
'Internal Error: GLOBALS override attempt detected'
);
exit
;
}
}
//** Set a few php.ini values
set_magic_quotes_runtime
(
0
);
if
(
isset
(
$app
))
unset
(
$app
);
if
(
isset
(
$conf
))
unset
(
$conf
);
//** SVN Revision
$svn_revision
=
'$Revision$'
;
$revision
=
str_replace
(
array
(
'Revision:'
,
'$'
,
' '
),
''
,
$svn_revision
);
...
...
server/plugins-available/network_settings_plugin.inc.php
View file @
fb66b787
...
...
@@ -122,6 +122,12 @@ class network_settings_plugin {
$app
->
log
(
"Changed Network settings"
,
LOGLEVEL_DEBUG
);
exec
(
'/etc/init.d/networking force-reload'
);
}
else
{
if
(
is_file
(
'/etc/debian_version'
))
{
$app
->
log
(
"Network configuration disabled in server settings."
,
LOGLEVEL_WARN
);
}
else
{
$app
->
log
(
"Network configuration not available for this linux distribution."
,
LOGLEVEL_DEBUG
);
}
}
}
...
...
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