www/includes/db_recipes.php

changeset 143
122f64716161
parent 142
793af7691a5e
child 147
e6e5d007eb54
equal deleted inserted replaced
142:793af7691a5e 143:122f64716161
12 12
13 $escapers = array("\\", "/", "\"", "\n", "\r", "\t", "\x08", "\x0c"); 13 $escapers = array("\\", "/", "\"", "\n", "\r", "\t", "\x08", "\x0c");
14 $replacements = array("\\\\", "\\/", "\\\"", "\\n", "\\r", "\\t", "\\f", "\\b"); 14 $replacements = array("\\\\", "\\/", "\\\"", "\\n", "\\r", "\\t", "\\f", "\\b");
15 $rescapers = array("'"); 15 $rescapers = array("'");
16 $rreplacements = array("\\'"); 16 $rreplacements = array("\\'");
17 $disallowed = array('visibleindex','uniqueid','boundindex','uid','h_weight'); 17 $disallowed = array('visibleindex','uniqueid','boundindex','uid','h_weight','m_weight');
18 18
19 if (isset($_POST['insert']) || isset($_POST['update'])) { 19 if (isset($_POST['insert']) || isset($_POST['update'])) {
20 if (isset($_POST['insert'])) { 20 if (isset($_POST['insert'])) {
21 // INSERT COMMAND 21 // INSERT COMMAND
22 $sql = "INSERT INTO `recipes` SET "; 22 $sql = "INSERT INTO `recipes` SET ";

mercurial