Rev 148 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 148 | Rev 150 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | } |
37 | } |
38 | 38 | ||
39 | $name = $_POST['name']; |
39 | $name = $_POST['name']; |
40 | $value = $_POST['value']; |
40 | $value = $_POST['value']; |
41 | 41 | ||
42 | $res = OIDplus::db()->query("select protected from ".OIDPLUS_TABLENAME_PREFIX."config where name = '".OIDplus::db()->real_escape_string($name)."';"); |
42 | $res = OIDplus::db()->query("select protected from ".OIDPLUS_TABLENAME_PREFIX."config where name = ?", array($name)); |
43 | $row = OIDplus::db()->fetch_array($res); |
43 | $row = OIDplus::db()->fetch_array($res); |
44 | if ($row['protected'] == 1) { |
44 | if ($row['protected'] == 1) { |
45 | die(json_encode(array("error" => 'Setting is write protected'))); |
45 | die(json_encode(array("error" => 'Setting is write protected'))); |
46 | } |
46 | } |
47 | 47 |