cvs: php-gtk-web /manual add-note.php
[email protected] ("Steph Fox") Wed, 12 Jul 2006 22:52:46 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvssfox1152744766@cvsserver> |
sfox Wed Jul 12 22:52:46 2006 UTC
Modified files:
/php-gtk-web/manual add-note.php
Log:
- Somehow we're failing to generate a new note ID.
- Can't reproduce this locally, so adding some debug lines on the live server temporarily.
http://cvs.php.net/viewvc.cgi/php-gtk-web/manual/add-note.php?r1=1.25&r2=1.26&diff_format=u
Index: php-gtk-web/manual/add-note.php
diff -u php-gtk-web/manual/add-note.php:1.25 php-gtk-web/manual/add-note.php:1.26
--- php-gtk-web/manual/add-note.php:1.25 Wed Jul 12 20:44:58 2006
+++ php-gtk-web/manual/add-note.php Wed Jul 12 22:52:45 2006
@@ -77,6 +77,10 @@
$display = '';
$urls = 0;
$blanklines = 0;
+ /* these are temporary and can be dropped later */
+ $estimate = 0;
+ $setid = 0;
+ $rowid = 0;
function force_shuffle($item, &$array) {
if (strlen($item) < 2) {
@@ -158,7 +162,12 @@
if (isset($_POST['preview'])) {
print "<br />\n<p>\nThis is what your entry will look like, roughly:\n</p>\n";
- print "<br />\n<p>\nId: ".file_get_contents($last_id)."\n</p>\n";
+ if (file_exists($last_id)) {
+ print "<br />\n<p>\nId: ".file_get_contents($last_id)."\n</p>\n";
+ } else {
+ print "<br />\n<p>\n***Id file not generated***\n</p>\n";
+ print "<br />\n<p>\n***estimate: $estimate setid: $setid rowid: $rowid ***\n</p>\n";
+ }
print "<table border='0' cellpadding='0' cellspacing='0' width='100%' align = 'center'>\n";
$temp = array('display' => $display, 'comment' => htmlentities($content), 'date' => time());
makeEntry($temp, false);