Lines Matching refs:bug
396 function txfield($n, $bug = null, $in = null) argument
403 $two = (isset($bug) && isset($bug[$n])) ? $bug[$n] : false;
731 function bug_diff($bug, $in) argument
735 if (!empty($in['email']) && (trim($in['email']) != trim($bug['email']))) {
736 $changed['reported_by']['from'] = spam_protect($bug['email'], 'text');
737 $changed['reported_by']['to'] = spam_protect(txfield('email', $bug, $in), 'text');
754 if (array_key_exists($name, $in) && array_key_exists($name, $bug)) {
756 $from = trim($bug[$name]);
818 function mail_bug_updates($bug, $in, $from, $ncomment, $edit = 1, $id = false) argument
824 $changed = bug_diff($bug, $in);
828 … = get_package_mail(oneof(@$in['package_name'], $bug['package_name']), $id, oneof(@$in['bug_type']…
830 $headers[] = [' ID', $bug['id']];
842 $from = spam_protect(txfield('email', $bug, $in), 'text');
872 if ($f = txfield($name, $bug, $in)) {
906 $old_comments = get_old_comments($bug['id'], empty($ncomment));
918 {$site_method}://{$site_url}{$basedir}/bug.php?id={$bug['id']}&edit=2
926 Edit report at {$site_method}://{$site_url}{$basedir}/bug.php?id={$bug['id']}&edit=1
932 Edit this bug report at {$site_method}://{$site_url}{$basedir}/bug.php?id={$bug['id']}&edit=1
935 if (preg_match('/.*@php\.net\z/', $bug['email'])) {
940 $subj = $bug_types[$bug['bug_type']];
941 $sdesc = txfield('sdesc', $bug, $in);
944 if (empty($in['status']) || $in['status'] != $bug['status'] || $ncomment != '' ||
945 (isset($in['private']) && $in['private'] != $bug['private']) ||
946 (isset($in['bug_type']) && $in['bug_type'] != $bug['bug_type'] &&
947 ($in['bug_type'] == 'Security' || $bug['bug_type'] == 'Security'))) {
948 if (isset($in['bug_type']) && $in['bug_type'] != $bug['bug_type']) {
949 $subj = $bug_types[$bug['bug_type']] . '->' . $bug_types[$in['bug_type']];
952 $old_status = $bug['status'];
953 $new_status = $bug['status'];
955 …if (isset($in['status']) && $in['status'] != $bug['status'] && $edit != 3) { /* status changed …
957 $subj .= " #{$bug['id']} [{$tla[$old_status]}->{$tla[$new_status]}]";
959 $subj .= " #{$bug['id']} [PATCH]";
961 $subj .= " #{$bug['id']} [Com]";
963 $subj .= " #{$bug['id']} [{$tla[$bug['status']]}]";
968 $bug['email'],
973 "X-PHP-Bug: {$bug['id']}\r\n" .
975 "In-Reply-To: <bug-{$bug['id']}@{$site_url}>"
979 $tmp = $edit != 3 ? $in : $bug;
992 "X-PHP-Bug: {$bug['id']}\r\n" .
1000 "In-Reply-To: <bug-{$bug['id']}@{$site_url}>",
1006 if ($edit == 1 && $in['assign'] && $in['assign'] != $bug['assign']) {
1017 $bug_types[$bug['bug_type']] . ' #' . $bug['id'] . ' ' . txfield('sdesc', $bug, $in),
1020 "X-PHP-Bug: {$bug['id']}\r\n" .
1021 "In-Reply-To: <bug-{$bug['id']}@{$site_url}>"
1175 global $bug, $dbh, $bug_types, $versions;
1182 if ($initial || (!empty($in['email']) && $bug['email'] != $in['email'])) {