mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
sensible application edit page
git-svn-id: http://www.observium.org/svn/observer/trunk@1972 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
$updated = '1';
|
||||
|
||||
$sql = "INSERT INTO `applications` (`device_id`, `app_type`)
|
||||
VALUES ('" . mres($_POST['device']). "','" . mres($_POST['type']) . "')";
|
||||
|
||||
$query = mysql_query($sql);
|
||||
$affected = mysql_affected_rows() . "records affected";
|
||||
|
||||
$message .= $message_break . "application added!";
|
||||
$message_break .= "<br />"
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
$updated = '1';
|
||||
|
||||
$sql = "DELETE FROM `applications` WHERE app_id = '" . mres($_POST['app']). "'";
|
||||
|
||||
$query = mysql_query($sql);
|
||||
$rows = mysql_affected_rows();
|
||||
$affected = $rows . " records affected";
|
||||
|
||||
$message .= $message_break . $rows . " application deleted!";
|
||||
$message_break .= "<br />"
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user