cvs: pearweb /public_html/bugs bug.php report.php search.php
| From: | Tomas V.V.Cox | Date: | Sun, 14 Sep 2003 13:26:30 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php report.php search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12723@lists.php.net to get a copy of this message | ||
cox Sun Sep 14 09:26:30 2003 EDT
Modified files:
/pearweb/public_html/bugs bug.php report.php search.php
Log:
better integration with the pear web
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.3 pearweb/public_html/bugs/bug.php:1.4
--- pearweb/public_html/bugs/bug.php:1.3 Tue Sep 9 09:01:30 2003
+++ pearweb/public_html/bugs/bug.php Sun Sep 14 09:26:29 2003
@@ -179,7 +179,7 @@
exit;
}
-commonHeader("#$id: ".htmlspecialchars($bug['sdesc']));
+response_header("#$id: ".htmlspecialchars($bug['sdesc']));
# the lol
echo "<style>"; include('./style.css'); echo "</style>";
@@ -261,7 +261,7 @@
$desc, !$active ? "</a>" : "", "</span> ";
}
-control(0,'View/Vote');
+control(0,'View');
if ($edit != 2) {
control(3,'Add Comment');
}
@@ -486,8 +486,8 @@
output_note($row['id'], $row['added'], $row['email'],
$row['comment']);
}
}
-
-commonFooter();
+echo "</table>";
+response_footer();
function output_note($com_id, $ts, $email, $comment)
{
Index: pearweb/public_html/bugs/report.php
diff -u pearweb/public_html/bugs/report.php:1.4 pearweb/public_html/bugs/report.php:1.5
--- pearweb/public_html/bugs/report.php:1.4 Wed Sep 10 22:43:41 2003
+++ pearweb/public_html/bugs/report.php Sun Sep 14 09:26:30 2003
@@ -127,7 +127,7 @@
if (!empty($in['actres']) || $in['actres'] === '0') {
$fdesc .= "Actual result:\n--------------\n". $in['actres']
."\n";
}
-
+
$query = "INSERT INTO bugdb
(bug_type,email,sdesc,ldesc,php_version,php_os,status,ts1,passwd) VALUES
('$in[bug_type]','$in[email]','$in[sdesc]','$fdesc','$in[php_version]','$in[php_os]','Open',NOW(),'$in[passwd]')";
if (!$ret = mysql_query($query)) {
die("could not insert ** $query **': " . mysql_error());
@@ -327,5 +327,6 @@
</tr>
</table>
</form>
+</table>
<?php
commonFooter();
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.3 pearweb/public_html/bugs/search.php:1.4
--- pearweb/public_html/bugs/search.php:1.3 Mon Sep 8 21:25:12 2003
+++ pearweb/public_html/bugs/search.php Sun Sep 14 09:26:30 2003
@@ -12,7 +12,7 @@
exit;
}
-commonHeader("Search");
+response_header("Search");
# the lol
echo "<style>"; include('./style.css'); echo "</style>";
@@ -294,7 +294,7 @@
</form>
<?php
-commonFooter();
+respose_footer();
function show_prev_next($begin,$rows,$total_rows,$link,$limit) {
if($limit=='All') return;