cvs: pearweb /public_html release-upload.php
| From: | Martin Jansen | Date: | Mon, 08 Apr 2002 13:32:13 +0000 |
| Subject: | cvs: pearweb /public_html release-upload.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3139@lists.php.net to get a copy of this message | ||
mj Mon Apr 8 09:32:13 2002 EDT
Modified files:
/pearweb/public_html release-upload.php
Log:
* A bit more spelling.
* register_globals=off fixes.
Index: pearweb/public_html/release-upload.php
diff -u pearweb/public_html/release-upload.php:1.19 pearweb/public_html/release-upload.php:1.20
--- pearweb/public_html/release-upload.php:1.19 Mon Apr 8 09:27:20 2002
+++ pearweb/public_html/release-upload.php Mon Apr 8 09:32:13 2002
@@ -29,7 +29,7 @@
}
$tmpsize = $file->getProp('size');
} elseif ($file->isMissing()) {
- display_error("No file uploaded"); break;
+ display_error("No file has been uploaded."); break;
} elseif ($file->isError()) {
display_error($file->errorMsg()); break;
}
@@ -41,7 +41,7 @@
} elseif (isset($verify)) {
$distfile = PEAR_UPLOAD_TMPDIR . '/' . basename($distfile);
if (!@is_file($distfile)) {
- display_error("No verified file found"); break;
+ display_error("No verified file found."); break;
}
include_once "PEAR/Common.php";
$util =& new PEAR_Common;
@@ -98,7 +98,8 @@
if (@is_file($distfile)) {
@unlink($distfile);
}
- header("Location: $PHP_SELF"); exit;
+ header("Location: ". $_SERVER['PHP_SELF']); // XXX Better use
HTTP::redirect() here.
+ exit;
}
} while (false);
@@ -175,7 +176,7 @@
}
print "</ul>";
}
- $form =& new HTML_Form($PHP_SELF, "POST");
+ $form =& new HTML_Form($_SERVER['PHP_SELF'], "POST");
$form->addHidden('distfile', $tmpfile);
// Don't show the next step button when errors found
if (!count($errors)) {