. -------------------------------------------------------------------------- */ define('PLUGIN_REMOTESUPPORT_VERSION', '0.0.1'); define('PLUGIN_REMOTESUPPORT_MIN_GLPI', '9.5.0'); define('PLUGIN_REMOTESUPPORT_MAX_GLPI', '9.6.0'); define("PLUGIN_REMOTESUPPORT_DIR", GLPI_ROOT . "/plugins/remotesupport"); function plugin_init_remotesupport() { global $PLUGIN_HOOKS; $PLUGIN_HOOKS['csrf_compliant']['remotesupport'] = true; if (Plugin::isPluginActive('remotesupport')) { $PLUGIN_HOOKS['autoinventory_information']['remotesupport'] = array( 'Computer' => array('PluginRemotesupportRemotesupport', 'showInfo'), ); CronTask::Register('PluginRemotesupportRemotesupport', 'remotesupport', 300, ['mode' => 2, 'allowmode' => 3, 'logs_lifetime' => 30, 'comment' => 'Remotesupport crontab search agents']); $PLUGIN_HOOKS['menu']['remotesupport'] = true; $PLUGIN_HOOKS['post_init']['remotesupport'] = 'plugin_remotesupport_postinit'; } } function plugin_version_remotesupport() { return [ 'name' => __('Remote Support Input', 'remotesupport'), 'version' => PLUGIN_REMOTESUPPORT_VERSION, 'author' => 'Alessandro Carloni', 'license' => 'GPLv2', 'homepage' => 'https://github.com/Kaya84/', 'requirements' => [ 'glpi' => [ 'min' => PLUGIN_REMOTESUPPORT_MIN_GLPI, 'max' => PLUGIN_REMOTESUPPORT_MAX_GLPI, ], ], ]; }