aboutsummaryrefslogtreecommitdiffstats
path: root/mod/import.php
blob: 394a2c2593b27ee6a706cbe7faa5a6b4a50bd264 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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) {




}