aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-12 15:20:58 -0800
committerfriendica <info@friendica.com>2013-01-12 15:20:58 -0800
commit303c24b261f2cadbd89e1ea04218b85d8a4b130e (patch)
treeea67650366675f0710b5392d4d4d5642a0548a27
parent3216607e0f747037dad99b7eeee2d8ea00c44693 (diff)
downloadvolse-hubzilla-303c24b261f2cadbd89e1ea04218b85d8a4b130e.tar.gz
volse-hubzilla-303c24b261f2cadbd89e1ea04218b85d8a4b130e.tar.bz2
volse-hubzilla-303c24b261f2cadbd89e1ea04218b85d8a4b130e.zip
skeleton for channel import
-rw-r--r--mod/import.php32
-rw-r--r--version.inc2
2 files changed, 33 insertions, 1 deletions
diff --git a/mod/import.php b/mod/import.php
new file mode 100644
index 000000000..394a2c259
--- /dev/null
+++ b/mod/import.php
@@ -0,0 +1,32 @@
+<?php
+
+// Import a channel, either by direct file upload or via
+// connection to original server.
+
+
+function import_post(&$a) {
+
+ $src = $_FILES['userfile']['tmp_name'];
+ $filename = basename($_FILES['userfile']['name']);
+ $filesize = intval($_FILES['userfile']['size']);
+ $filetype = $_FILES['userfile']['type'];
+
+
+ if(($src) && (! $filesize)) {
+ logger('mod_import: empty file.');
+ notice( t('Imported file is empty.');
+ return;
+ }
+
+
+
+}
+
+
+
+function import_content(&$a) {
+
+
+
+
+} \ No newline at end of file
diff --git a/version.inc b/version.inc
index fc7559988..8406a0f02 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-01-11.197
+2013-01-12.198