//Replace the \= by ° not to match the split function $arg = str_replace('\\=', '°', $argv[$i]); $it = explode("=", $arg); $it[0] = preg_replace('/^--/', '', $it[0]); //Replace the ° by = the find the good filter $it = str_replace('°', '=', $it); $_GET[$it[0]] = $it[1]; } } $REP_XML = GLPI_PLUGIN_DOC_DIR . '/sccm/xml/'; $PluginSccmConfig = new PluginSccmConfig(); $PluginSccmConfig->getFromDB(1); $PluginSccmSccm = new PluginSccmSccm(); $PluginSccmSccmdb = new PluginSccmSccmdb(); $PluginSccmSccmdb->connect(); $action = isset($_GET['task']) ? $_GET['task'] : "home"; if (!in_array($action, array('home', 'test', 'showtable'))) { die('Erreur'); } switch ($action) { case 'test': include 'test.php'; break; case 'showtable': include 'showtable.php'; break; case 'home': $PluginSccmSccm->showHome(); break; } $PluginSccmSccmdb->disconnect();