[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4634 - Extractor-docs/WWW
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4634 - Extractor-docs/WWW |
Date: |
Sun, 4 Mar 2007 16:07:24 -0700 (MST) |
Author: grothoff
Date: 2007-03-04 16:07:24 -0700 (Sun, 04 Mar 2007)
New Revision: 4634
Modified:
Extractor-docs/WWW/do_upload.php
Log:
fix
Modified: Extractor-docs/WWW/do_upload.php
===================================================================
--- Extractor-docs/WWW/do_upload.php 2007-03-04 21:03:26 UTC (rev 4633)
+++ Extractor-docs/WWW/do_upload.php 2007-03-04 23:07:24 UTC (rev 4634)
@@ -7,14 +7,11 @@
include("html_header.php3");
if ($_FILES['img1'] != "") {
-
if ( ($_FILES['img1']['tmp_name'] == 'none') ||
($_FILES['img1']['tmp_name'] == '') ) {
die(W_("File empty or too big."));
}
-
$dest="/tmp/".$_FILES['img1']['name'] ;
-
copy($_FILES['img1']['tmp_name'], $dest)
or die(W_("Couldn't copy the file!"));
@@ -22,6 +19,7 @@
die(W_("File upload failed!"));
}
H1("libextractor Demo Results");
+$binary = $_POST['binary'];
switch ( $binary ) {
case 1:
$flag = "-B da";
@@ -56,6 +54,7 @@
default:
$flag = "";
}
+ print $flag;
exec("/home/libextractor/bin/extract $flag \"$dest\"", $arr);
foreach ($arr as $val)
print "$val <br>\n";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4634 - Extractor-docs/WWW,
gnunet <=