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 2154 2006-08-27 16:52:47Z Tikitiki $
| * $Id: editpost.php 2385 2006-11-06 23:40:55Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 88 | Zeile 88 |
---|
{ if($thread['closed'] == "yes") {
|
{ if($thread['closed'] == "yes") {
|
redirect("showthread.php?tid=$tid", $lang->redirect_threadclosed);
| error($lang->redirect_threadclosed);
|
} if($forumpermissions['candeleteposts'] == "no") {
| } if($forumpermissions['candeleteposts'] == "no") {
|
Zeile 106 | Zeile 106 |
---|
{ if($thread['closed'] == "yes") {
|
{ if($thread['closed'] == "yes") {
|
redirect("showthread.php?tid=$tid", $lang->redirect_threadclosed);
| error($lang->redirect_threadclosed);
|
} if($forumpermissions['caneditposts'] == "no") {
| } if($forumpermissions['caneditposts'] == "no") {
|
Zeile 239 | Zeile 239 |
---|
} else {
|
} else {
|
redirect("showthread.php?tid={$tid}", $lang->redirect_nodelete);
| error($lang->redirect_nodelete);
|
} }
| } }
|
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)) {
|