diff options
author | Thomas Willingham <founder@kakste.com> | 2013-06-09 02:18:35 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-06-09 02:18:35 +0100 |
commit | 3b2d1833437d6c0596cfd94caf2586fc4fca978f (patch) | |
tree | c5f8ed9f68226fc5f3bbde55d51154eb9cde531c /mod | |
parent | e3a5a8c3687fcaf011492a2857d90114bb8e5ac5 (diff) | |
parent | d76ec28f7900c0c5fcf2d52bda3476de59b8fb1d (diff) | |
download | volse-hubzilla-3b2d1833437d6c0596cfd94caf2586fc4fca978f.tar.gz volse-hubzilla-3b2d1833437d6c0596cfd94caf2586fc4fca978f.tar.bz2 volse-hubzilla-3b2d1833437d6c0596cfd94caf2586fc4fca978f.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod')
-rw-r--r-- | mod/import.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/import.php b/mod/import.php index b7e48ed7a..1bc61da43 100644 --- a/mod/import.php +++ b/mod/import.php @@ -9,6 +9,9 @@ require_once('include/identity.php'); function import_post(&$a) { + if(! $a->get_account()) { + return; + } $data = null; $seize = ((x($_REQUEST,'make_primary')) ? intval($_REQUEST['make_primary']) : 0); @@ -23,6 +26,7 @@ function import_post(&$a) { if($filesize) { $data = @file_get_contents($src); } + unlink($src); } if(! $src) { @@ -327,6 +331,10 @@ function import_post(&$a) { function import_content(&$a) { + if(! $a->get_account()) { + notice( t('You must be logged in to use this feature.')); + return ''; + } $o = replace_macros(get_markup_template('channel_import.tpl'),array( '$title' => t('Import Channel'), |