For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > July 2004 > cvs: phpweb /include posttohost.inc /manual add-note.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpweb /include posttohost.inc /manual add-note.php
Gabor Hojtsy

2004-07-25, 8:56 am

goba Sun Jul 25 06:07:23 2004 EDT

Modified files:
/phpweb/manual add-note.php
/phpweb/include posttohost.inc
Log:
developers are not mailed in case of failed user note submissions, plus silence warning and let nicely printed error messages inform the user on mailing list subscription, user note and event submission pages

http://cvs.php.net/diff.php/phpweb/...61&r2=1.62&ty=u
Index: phpweb/manual/add-note.php
diff -u phpweb/manual/add-note.php:1.61 phpweb/manual/add-note.php:1.62
--- phpweb/manual/add-note.php:1.61 Wed Feb 18 10:46:20 2004
+++ phpweb/manual/add-note.php Sun Jul 25 06:07:22 2004
@@ -1,5 +1,5 @@
<?php
-// $Id: add-note.php,v 1.61 2004/02/18 15:46:20 didou Exp $
+// $Id: add-note.php,v 1.62 2004/07/25 10:07:22 goba Exp $
$_SERVER['BASE_PAGE'] = 'manual/add-note.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
@@ -97,7 +97,7 @@
print "<p class=\"formerror\">As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.</p>";
} else {
echo "<!-- $result -->";
- echo "<p class=\"formerror\">There was an error processing your submission. It has been automatically e-mailed to the developers, who will process the note manually.</p>";
+ echo "<p class=\"formerror\">There was an internal error processing your submission. Please try to submit again later.</p>";
}
}

http://cvs.php.net/diff.php/phpweb/...1.3&r2=1.4&ty=u
Index: phpweb/include/posttohost.inc
diff -u phpweb/include/posttohost.inc:1.3 phpweb/include/posttohost.inc:1.4
--- phpweb/include/posttohost.inc:1.3 Wed Aug 13 08:15:09 2003
+++ phpweb/include/posttohost.inc Sun Jul 25 06:07:22 2004
@@ -1,6 +1,6 @@
<?php

-// $Id: posttohost.inc,v 1.3 2003/08/13 12:15:09 goba Exp $
+// $Id: posttohost.inc,v 1.4 2004/07/25 10:07:22 goba Exp $

/*
This code is used to post data to the central server which
@@ -26,7 +26,7 @@
}

// Open socket on host
- $fp = fsockopen($url['host'], $url['port'] ? $url['port'] : 80);
+ $fp = @fsockopen($url['host'], $url['port'] ? $url['port'] : 80);
if (!$fp) { return "failed to open socket to {$url['host']}"; }

// Send HTTP 1.0 POST request to host
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com