mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#12460 fixed deprecated
This commit is contained in:
parent
5b7a123086
commit
f68615cba0
@ -1500,7 +1500,7 @@ $table->data[39][0] = html_print_label_input_block(
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
true
|
true
|
||||||
).html_print_input_hidden('macros', base64_encode($macros), true)
|
).html_print_input_hidden('macros', base64_encode(($macros ?? '')), true)
|
||||||
);
|
);
|
||||||
|
|
||||||
require_once $config['homedir'].'/include/class/CredentialStore.class.php';
|
require_once $config['homedir'].'/include/class/CredentialStore.class.php';
|
||||||
|
@ -386,7 +386,7 @@ if (empty($result) === false) {
|
|||||||
$data[4] = $output;
|
$data[4] = $output;
|
||||||
|
|
||||||
$phone_large = io_safe_output($tag['phone']);
|
$phone_large = io_safe_output($tag['phone']);
|
||||||
$phone_small = substr($phone_large, 0, 24);
|
$phone_small = substr(($phone_large ?? ''), 0, 24);
|
||||||
if ($phone_large == $phone_small) {
|
if ($phone_large == $phone_small) {
|
||||||
$output = $phone_large;
|
$output = $phone_large;
|
||||||
} else {
|
} else {
|
||||||
|
@ -97,6 +97,13 @@ class Wizard
|
|||||||
*/
|
*/
|
||||||
public $access = 'AR';
|
public $access = 'AR';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Root url.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $rootUrl;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter for breadcrum
|
* Setter for breadcrum
|
||||||
|
@ -66,6 +66,13 @@ class CalendarManager
|
|||||||
*/
|
*/
|
||||||
private $message;
|
private $message;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $access;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed methods to be called using AJAX request.
|
* Allowed methods to be called using AJAX request.
|
||||||
*
|
*
|
||||||
|
@ -38,6 +38,62 @@ require_once $config['homedir'].'/include/class/HTML.class.php';
|
|||||||
class ExternalTools extends HTML
|
class ExternalTools extends HTML
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Origin
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $origin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathCustomComm
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathCustomComm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathDig
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathDig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathNmap
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathNmap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathPing
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathPing;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathSnmpget
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathSnmpget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PathTraceroute
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $pathTraceroute;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* UpdatePaths
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $updatePaths;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
@ -243,6 +243,7 @@ function profile_print_profile_table($id, $json_profile=false, $return=false, $c
|
|||||||
$profile = json_decode($profile);
|
$profile = json_decode($profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result = [];
|
||||||
$result[] = [
|
$result[] = [
|
||||||
'id_grupo' => $profile->group,
|
'id_grupo' => $profile->group,
|
||||||
'id_perfil' => $profile->profile,
|
'id_perfil' => $profile->profile,
|
||||||
|
@ -1039,7 +1039,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
echo "
|
echo "
|
||||||
<script>
|
<script>
|
||||||
function sendHash(url) {
|
function sendHash(url) {
|
||||||
window.open(url+'&loginhash=auto&loginhash_data=".$hashdata.'&loginhash_user='.str_rot13($user)."', '_blank');
|
window.open(url+'&loginhash=auto&loginhash_data=".$hashdata.'&loginhash_user='.str_rot13(($user ?? ''))."', '_blank');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ ui_print_standard_header(
|
|||||||
|
|
||||||
$inventory_id_agent = (int) get_parameter('agent_id', -1);
|
$inventory_id_agent = (int) get_parameter('agent_id', -1);
|
||||||
$inventory_agent = (string) get_parameter('agent', '');
|
$inventory_agent = (string) get_parameter('agent', '');
|
||||||
if (strlen($inventory_agent) == 0) {
|
if (strlen(($inventory_agent ?? '')) == 0) {
|
||||||
$inventory_id_agent = -1;
|
$inventory_id_agent = -1;
|
||||||
$inventory_agent = __('All');
|
$inventory_agent = __('All');
|
||||||
} else if ($inventory_agent == __('All')) {
|
} else if ($inventory_agent == __('All')) {
|
||||||
|
@ -123,7 +123,7 @@ class Manager
|
|||||||
string $public_url,
|
string $public_url,
|
||||||
?string $ajax_url=null,
|
?string $ajax_url=null,
|
||||||
?string $page=null,
|
?string $page=null,
|
||||||
array $settings,
|
array $settings=[],
|
||||||
?int $mode=null,
|
?int $mode=null,
|
||||||
bool $composer=false
|
bool $composer=false
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user