Lines Matching refs:id
40 $id = (isset($_REQUEST['id']) ? intval($_REQUEST['id']) : ''); variable
47 if ($id) {
48 $str = 'Note #' . $id . ' has been ';
276 $id = isset($row['id']) ? $row['id'] : null; variable
304 " <a href=\"?action=resetall&id={$id}\">Reset all votes</a> |".
305 " <a href=\"?action=resetup&id={$id}\">Reset up votes</a> |".
306 " <a href=\"?action=resetdown&id={$id}\">Reset down votes</a> |".
307 " <a href=\"?votessearch={$id}&view=notes&type=5\">See Votes</a>\n".
345 "Note id: $id<br />\n",
346 …/php.net/manual/en/{$row['sect']}.php#{$id}\" target=\"_blank\">http://php.net/manual/en/{$row['se…
421 $action = $m[1]; $id = $m[2]; variable
426 $id = isset($_GET['id']) ? (int)$_GET['id'] : null; variable
524 if ($id) {
525 if ($row = note_get_by_id($id)) {
528 die ("Note #$id has already been approved");
531 if ($row['id'] && db_query_safe("UPDATE note SET status=NULL WHERE id=?", [$id])) {
534 $id,
540 print "Note #$id has been approved and will appear in the manual";
546 if ($id) {
547 if ($row = note_get_by_id($id)) {
548 …E note,votes FROM note LEFT JOIN (votes) ON (note.id = votes.note_id) WHERE note.id = ?", [$id])) {
552 $id,
564 header('Location: user-notes.php?id=' . $id . '&was=' . $action);
576 if ($id) {
582 $row = note_get_by_id($id);
588 …=?,sect=?,updated=NOW() WHERE id=?', [html_entity_decode($note,ENT_QUOTES), $email, $sect, $id])) {
591 $id,
596 …note_mail_user($email, "note $id moved from $row[sect] to $sect by notes editor $cuser", "----- Co…
598 header('Location: user-notes.php?id=' . $id . '&was=' . $action);
612 <input type="hidden" name="id" value="<?= $id ?>" /> variable
648 if ($id) {
651 $result = db_query_safe("SELECT COUNT(id) AS id FROM votes WHERE note_id = ?", [$id]);
654 echo "<p>No votes exist for Note ID ". hsc($id) ."!</p>";
657 db_query_safe('DELETE FROM votes WHERE votes.note_id = ?', [$id]);
660 db_query_safe('DELETE FROM votes WHERE votes.note_id = ? AND votes.vote = 1', [$id]);
663 db_query_safe('DELETE FROM votes WHERE votes.note_id = ? AND votes.vote = 0', [$id]);
665 header('Location: user-notes.php?id=' . urlencode($id) . '&was=' . urlencode($action));
672 $result = db_query_safe($sql, [$id]);
694 echo "<p>Note ". hsc($id) ." does not exist!</p>";
712 foreach ($_POST['deletevote'] as $id) {
713 $ids[] = (int) $id;
875 function note_get_by_id($id) argument
877 if ($result = db_query_safe('SELECT *, UNIX_TIMESTAMP(ts) AS ts FROM note WHERE id=?', [$id])) {
879 die("Note #$id doesn't exist. It has probably been deleted/rejected already.");
888 function note_mail_on_action($user, $id, $subject, $body) argument
890 …mail(NOTES_MAIL, $subject, $body, "From: $user@php.net\r\nIn-Reply-To: <note-$id@php.net>", "-f{$u…