mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
ability to use log_message and read the logfile during installation
This commit is contained in:
@@ -13,6 +13,29 @@ if ($_POST['database_check'] ?? false == true) {
|
||||
|
||||
}
|
||||
|
||||
if ($_POST['read_logfile'] ?? false == true) {
|
||||
|
||||
$result = read_logfile();
|
||||
echo $result;
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
if ($_POST['write_to_logfile'] ?? false == true) {
|
||||
|
||||
$level = $_POST['log_level'];
|
||||
$message = $_POST['log_message'];
|
||||
|
||||
if(log_message($level, $message)) {
|
||||
$result = 'success';
|
||||
} else {
|
||||
$result = 'error';
|
||||
}
|
||||
echo $result;
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Install Triggers
|
||||
|
||||
Reference in New Issue
Block a user