mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-13 05:31:28 -07:00
FE: remove unused checkPermissions function and its call in settings
This commit is contained in:
@@ -278,23 +278,4 @@ function encode_single_quotes ($val) {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------------
|
|
||||||
function checkPermissions($files)
|
|
||||||
{
|
|
||||||
foreach ($files as $file)
|
|
||||||
{
|
|
||||||
|
|
||||||
// // make sure the file ownership is correct
|
|
||||||
// chown($file, 'nginx');
|
|
||||||
// chgrp($file, 'www-data');
|
|
||||||
|
|
||||||
// check access to database
|
|
||||||
if(file_exists($file) != 1)
|
|
||||||
{
|
|
||||||
$message = "File '".$file."' not found or inaccessible. Correct file permissions, create one yourself or generate a new one in 'Settings' by clicking the 'Save' button.";
|
|
||||||
displayMessage($message, TRUE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ if (!file_exists($confPath) && file_exists('../config/app.conf')) {
|
|||||||
$confPath = '../config/app.conf';
|
$confPath = '../config/app.conf';
|
||||||
}
|
}
|
||||||
|
|
||||||
checkPermissions([$dbPath, $confPath]);
|
|
||||||
|
|
||||||
// get settings from the API json file
|
// get settings from the API json file
|
||||||
|
|
||||||
// path to your JSON file
|
// path to your JSON file
|
||||||
|
|||||||
Reference in New Issue
Block a user