diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index cc04cc4783..89bc1f9670 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -169,8 +169,6 @@ else { $device_template = check_str($_REQUEST["device_template"]); $line_number = check_str($_REQUEST["line_number"]); $device_mac_address = check_str($_REQUEST["device_mac_address"]); - $device_mac_address_other = check_str($_REQUEST["device_mac_address_other"]); - if (strlen($device_mac_address_other) > 0) { $device_mac_address = $device_mac_address_other; } $device_mac_address = strtolower($device_mac_address); $device_mac_address = preg_replace('#[^a-fA-F0-9./]#', '', $device_mac_address); @@ -572,8 +570,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //write the provision files - require_once "app/provision/provision_write.php"; - $ext = new extension; +// require_once "app/provision/provision_write.php"; +// $ext = new extension; //delete extension from memcache $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); @@ -1236,40 +1234,69 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo " \n"; + echo " "; - $html = " \n"; - $html .= " \n"; - $html .= " \n"; + echo " \n"; + echo "
\n"; + echo " \n"; + echo " \n"; + echo " \n"; - $html .= " \n"; - $html .= " \n"; - $html .= "
\n"; + ?> + + prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); - $html .= " \n"; + echo " \n"; if (count($result) > 0) { foreach($result as $field) { if (strlen($field["device_mac_address"]) > 0) { if ($field_current_value == $field["device_mac_address"]) { - $html .= " \n"; + echo " \n"; } else { - $html .= " \n"; + echo " \n"; } } } } unset($sql, $result, $result_count); - $html .= " \n"; - $html .= " \n"; - $html .= " \n"; - $html .= " \n"; - $html .= "
"; - echo $html; + echo " \n"; + echo " \n"; + echo "
\n"; echo " \n"; echo " ";