Beispiel #1
0
     } elseif (isset($_POST['permasage']) == false && $psage == true) {
         $psage = false;
         $psagedelta = 1;
     }
 }
 // You know, this is the one thing that can be consistently changed.
 if (isset($_POST['visible']) && $visible != $_POST['visible']) {
     $visible = $_POST['visible'];
     $visibledelta = 1;
 }
 // If we changed the post data, we're going to report the full edit.
 // If we changed the visibility status, we're going to report that as well.
 // In either of these two cases, updatepost will be called.
 if ($postchanged > 0) {
     // Update the post data
     $db->updatepost($postarray['globalid'], $postarray['board'], $name, $trip, $link, $title, $body, $visible, $pin, $lock, $psage);
     $actionstring = "edit\tgid:" . $postarray['globalid'] . "\tb:" . $postarray['board'];
     writelog($actionstring, "moderator");
 } elseif ($visibledelta > 0) {
     // Update the post data
     $db->updatepost($postarray['globalid'], $postarray['board'], $name, $trip, $link, $title, $body, $visible, $pin, $lock, $psage);
     $actionstring = "vis\tgid:" . $postarray['globalid'] . "\tb:" . $postarray['board'];
     writelog($actionstring, "moderator");
 }
 // Write lock/pin/permasage logs
 if ($lockdelta > 0) {
     $actionstring = "lock\tt:" . $postarray['id'] . "\tb:" . $postarray['board'] . "\tv:" . $lock;
     writelog($actionstring, "moderator");
 }
 if ($pindelta > 0) {
     $actionstring = "pin\tt:" . $postarray['id'] . "\tb:" . $postarray['board'] . "\tv:" . $pin;