]> git.mxchange.org Git - friendica-addons.git/commitdiff
js_upload - provide a site tmp directory config in case your service provider has...
authorfriendica <info@friendica.com>
Mon, 26 Nov 2012 03:05:23 +0000 (19:05 -0800)
committerfriendica <info@friendica.com>
Mon, 26 Nov 2012 03:05:23 +0000 (19:05 -0800)
12 files changed:
convert.tgz
editplain.tgz
fbpost.tgz
forumlist.tgz
js_upload.tgz
js_upload/js_upload.php
openstreetmap.tgz
page.tgz
privacy_image_cache.tgz
smiley_pack.tgz
statusnet.tgz
twitter.tgz

index 56e0080c36b9c959832c7d441e7fa1117f42edba..766eaf7aa41c9aa30835a773b68065c4f1e1829c 100755 (executable)
Binary files a/convert.tgz and b/convert.tgz differ
index be81317741b2c89ac0b583107be2ba43940c7aa2..0f2b95d0ec1750d7d354ec0839b8ef61e3169489 100644 (file)
Binary files a/editplain.tgz and b/editplain.tgz differ
index c60a6c06224f66574ff37e9ad3e3c915272e4b36..ded32e198ae4c8dc9a585e97e97e832f8afccdf7 100644 (file)
Binary files a/fbpost.tgz and b/fbpost.tgz differ
index fe559f337b88b2784f3854b79f543d844036d224..cbcf0fbd82d4917b1c651b527d99c9beac1902ed 100644 (file)
Binary files a/forumlist.tgz and b/forumlist.tgz differ
index 98e16c5a6fa2d90b20397396109657da6932e7fc..5a415de7dd170a11604772490a0402aabc88a9ac 100755 (executable)
Binary files a/js_upload.tgz and b/js_upload.tgz differ
index 3ba5f9c4dc74a850d5082565a4df5d09be979972..148fde313a43557d9b2068aa773c029127731590 100755 (executable)
@@ -196,7 +196,13 @@ class qqUploadedFileXhr {
      */
     function save() {    
         $input = fopen("php://input", "r");
-        $this->pathnm = tempnam(sys_get_temp_dir(),'frn');
+
+               $upload_dir = get_config('system','tempdir');
+               if(! $upload_dir)
+                       $upload_dir = sys_get_temp_dir();
+
+        $this->pathnm = tempnam($upload_dir,'frn');
+
                $temp = fopen($this->pathnm,"w");
         $realSize = stream_copy_to_stream($input, $temp);
 
index 34f4bd6b15ddd900a4859dfd3e6d6587ba6ee03a..c195d151cbcb66c49f95f39d2a8c0a13967fe5c5 100644 (file)
Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ
index 21dab7b94164c7f51f9eff6ecd4071c44243b550..02140ce92def21beac5e562e0db67eefd522ff8a 100644 (file)
Binary files a/page.tgz and b/page.tgz differ
index b4c100804d3eac95cc71393cd27162f5ba8361c0..8441ab65160d2693a003bc269120ee7e338e7a6a 100644 (file)
Binary files a/privacy_image_cache.tgz and b/privacy_image_cache.tgz differ
index fe2689ca3714b971e2313049231a9ffd4ee05ae2..2efe63322c73961c2589ca82b927304bf3dc109d 100644 (file)
Binary files a/smiley_pack.tgz and b/smiley_pack.tgz differ
index c171f2c38aa190988fc5792d04fe3fb5b71df60e..72b6e928d7f92b1a7c79299b48a485295f33b9a8 100755 (executable)
Binary files a/statusnet.tgz and b/statusnet.tgz differ
index beeea2bee46fb21069de6b6402035d4e3bf71511..539ded93508e549765402e20b2ad3d0a4aa2f5a9 100755 (executable)
Binary files a/twitter.tgz and b/twitter.tgz differ