qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/apps/phpviewer writeremote.php


From: Raphaël Semeteys
Subject: [Qsos-commits] qsos/apps/phpviewer writeremote.php
Date: Thu, 14 Dec 2006 13:33:35 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Raphaël Semeteys <rsemeteys>   06/12/14 13:33:35

Modified files:
        apps/phpviewer : writeremote.php 

Log message:
        Filename or success message changed

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/phpviewer/writeremote.php?cvsroot=qsos&r1=1.1&r2=1.2

Patches:
Index: writeremote.php
===================================================================
RCS file: /sources/qsos/qsos/apps/phpviewer/writeremote.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- writeremote.php     14 Dec 2006 13:31:57 -0000      1.1
+++ writeremote.php     14 Dec 2006 13:33:34 -0000      1.2
@@ -1,11 +1,8 @@
 <?php
-
 $file = $_FILES['myfile'];
+$destination = "incoming/".$file['name']. "." . uniqid().".qsos";
 
-$dir = "/tmp/".uniqid();
-mkdir($dir, 0755);
-
-move_uploaded_file($file['tmp_name'], $dir."/upload.qsos");
-chmod ($dir."/upload.qsos", 0770);
-echo "QSOS ".$file['type'];
+move_uploaded_file($file['tmp_name'], $destination);
+chmod ($destination, 0770);
+echo "File successfully uploaded";
 ?>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]