Zeile 12 | Zeile 12 |
---|
function remove_attachment($pid, $posthash, $aid) { global $db, $mybb;
|
function remove_attachment($pid, $posthash, $aid) { global $db, $mybb;
|
| $aid = intval($aid); $posthash = addslashes($posthash);
|
if($posthash != "" && !$pid) { $query = $db->query("SELECT * FROM ".TABLE_PREFIX."attachments WHERE aid='$aid' AND posthash='$posthash'");
| if($posthash != "" && !$pid) { $query = $db->query("SELECT * FROM ".TABLE_PREFIX."attachments WHERE aid='$aid' AND posthash='$posthash'");
|
Zeile 33 | Zeile 35 |
---|
function remove_attachments($pid, $posthash="") { global $db, $mybb;
|
function remove_attachments($pid, $posthash="") { global $db, $mybb;
|
| $posthash = addslashes($posthash);
|
if($posthash != "" && !$pid) { $query = $db->query("SELECT * FROM ".TABLE_PREFIX."attachments WHERE posthash='$posthash'");
| if($posthash != "" && !$pid) { $query = $db->query("SELECT * FROM ".TABLE_PREFIX."attachments WHERE posthash='$posthash'");
|