From 0ef4f2308bd203f3b5b5d1c67df7b9e2c30b9eea Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 7 Sep 2004 12:42:57 +0000 Subject: fix parse errors on pkgsubmit --- web/html/pkgsubmit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/html') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 236073e..ad917bd 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -43,11 +43,11 @@ if ($_COOKIE["AURSID"]) { # the uploaded package file. # - $upload_file = $UPLOAD_DIR . $pkg_name + $upload_file = $UPLOAD_DIR . $pkg_name; if (move_uploaded_file($_FILES["pfile"]["tmp_name"], $upload_file)) { # ok, we can proceed # - if (file_exists($INCOMING_DIR . $pkg_name) { + if (file_exists($INCOMING_DIR . $pkg_name)) { # blow away the existing file/dir and contents # rm_rf($INCOMING_DIR . $pkg_name); @@ -73,11 +73,11 @@ if ($_COOKIE["AURSID"]) { } else { # try .gz first # - exec("/bin/sh -c 'tar xzf ".$upload_file."'",, $retval); + exec("/bin/sh -c 'tar xzf ".$upload_file."'", $retval); if (!$retval) { # now try .bz2 format # - exec("/bin/sh -c 'tar xjf ".$upload_file."'",, $retval); + exec("/bin/sh -c 'tar xjf ".$upload_file."'", $retval); } if (!$retval) { $error = __("Unknown file format for uploaded file."); -- cgit v1.2.3-54-g00ecf