Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: editpost.php 2263 2006-09-26 09:24:25Z chris $
| * $Id: editpost.php 2385 2006-11-06 23:40:55Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 337 | Zeile 337 |
---|
if($forumpermissions['canpostattachments'] != "no") { // Get a listing of the current attachments, if there are any $attachcount = 0;
|
if($forumpermissions['canpostattachments'] != "no") { // Get a listing of the current attachments, if there are any $attachcount = 0;
|
if($mybb->input['posthash'])
| if($posthash)
|
{
|
{
|
$posthash = "posthash='{$posthash}' OR ";
| $posthash_query = "posthash='{$posthash}' OR ";
|
} else {
|
} else {
|
$posthash = "";
| $posthash_query = "";
|
}
|
}
|
$query = $db->simple_select(TABLE_PREFIX."attachments", "*", "{$posthash}pid='{$pid}'");
| $query = $db->simple_select(TABLE_PREFIX."attachments", "*", "{$posthash_query}pid='{$pid}'");
|
$attachments = ''; while($attachment = $db->fetch_array($query)) {
| $attachments = ''; while($attachment = $db->fetch_array($query)) {
|