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:31:57 +0000

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

Added files:
        apps/phpviewer : writeremote.php 

Log message:
        Upload of a QSOS file on the server (used by xuleditor)

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

Patches:
Index: writeremote.php
===================================================================
RCS file: writeremote.php
diff -N writeremote.php
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ writeremote.php     14 Dec 2006 13:31:57 -0000      1.1
@@ -0,0 +1,11 @@
+<?php
+
+$file = $_FILES['myfile'];
+
+$dir = "/tmp/".uniqid();
+mkdir($dir, 0755);
+
+move_uploaded_file($file['tmp_name'], $dir."/upload.qsos");
+chmod ($dir."/upload.qsos", 0770);
+echo "QSOS ".$file['type'];
+?>
\ No newline at end of file




reply via email to

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