This commit is contained in:
Roland Gruber 2016-01-02 13:39:28 +00:00
parent 38f52e6a98
commit 7c0cada014
4 changed files with 25 additions and 25 deletions

View File

@ -230,7 +230,7 @@ function deleteConfigProfile($name) {
}
}
// delete config file
$confFile = $dir . $_POST['delfilename'] . ".conf";
$confFile = $dir . $name . ".conf";
if (!@unlink($confFile)) {
logNewMessage(LOG_ERR, 'Unable to delete ' . $confFile);
return _("Unable to delete profile!");
@ -386,7 +386,7 @@ class LAMLanguage {
}
/**
* This class manages .conf files.
* This class manages conf files.
*
* @package configuration
*/

View File

@ -1,3 +1,4 @@
<?php
/*
$Id$
@ -19,7 +20,6 @@ $Id$
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
<?php
include_once (dirname ( __FILE__ ) . '/../../../lib/baseModule.inc');
include_once (dirname ( __FILE__ ) . '/../../../lib/modules/sudoRole.inc');

View File

@ -1,3 +1,4 @@
<?php
/*
$Id$
@ -19,7 +20,6 @@ $Id$
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
<?php
$_SERVER ['REMOTE_ADDR'] = '127.0.0.1';

View File

@ -1,3 +1,4 @@
<?php
/*
$Id$
@ -19,7 +20,6 @@ $Id$
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
<?php
include_once (dirname(__FILE__) . '/../../lib/config.inc');