initial commit; version 22.5.12042
This commit is contained in:
27
html/includes/graphs/multi-mempool/auth.inc.php
Normal file
27
html/includes/graphs/multi-mempool/auth.inc.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (!is_array($vars['id'])) { $vars['id'] = array($vars['id']); }
|
||||
|
||||
$auth = TRUE;
|
||||
|
||||
foreach ($vars['id'] as $mempool_id)
|
||||
{
|
||||
if (!$auth && !is_entity_permitted('mempool', $mempool_id))
|
||||
$auth = FALSE;
|
||||
}
|
||||
|
||||
$title = "Multi Memory Pool :: ";
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user