mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
Devices Columns 0.3
This commit is contained in:
@@ -79,6 +79,24 @@ function createArray($input){
|
||||
return $options;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------
|
||||
// For debugging - Print arrays
|
||||
function printArray ($array) {
|
||||
echo '[';
|
||||
foreach ($array as $val)
|
||||
{
|
||||
if(is_array($val))
|
||||
{
|
||||
echo '<br/>';
|
||||
printArray($val);
|
||||
} else
|
||||
{
|
||||
echo $val.', ';
|
||||
}
|
||||
}
|
||||
echo ']<br/>';
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------
|
||||
function formatDate ($date1) {
|
||||
return date_format (new DateTime ($date1) , 'Y-m-d H:i');
|
||||
|
||||
Reference in New Issue
Block a user