Skip to content

Commit 7270bdd

Browse files
committedJul 18, 2014
remove unfinished code
1 parent 3ba8d84 commit 7270bdd

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed
 

‎plugins/restapi/includes/messages.php

+1-16
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static function messageAdd(){
6969
}
7070

7171
/**
72-
* <p>Updates existing message/campaing.</p>
72+
* <p>Updates existing message/campaign.</p>
7373
* <p><strong>Parameters:</strong><br/>
7474
* [*id] {integer} <br/>
7575
* [*subject] {string} <br/>
@@ -118,21 +118,6 @@ static function messageUpdate( $id = 0 ){
118118
}
119119

120120
}
121-
122-
/** unfinished - https://github.com/phpList/phplist-plugin-restapi/issues/3
123-
static function imageAdd(){
124-
if($_POST['image'] and $_POST['name']){
125-
$imageDirectory = "/var/www/phplist/content/c/";
126-
$dest = tempnam($imageDirectory,date("ymd_his_"));
127-
$pi = pathinfo($_POST['name']);
128-
$dest.= '.'.$pi['extension'];
129-
file_put_contents($dest,base64_decode($_POST['image']));
130-
$response = new Response();
131-
$response->setData('Filename', basename($dest));
132-
$response->output();
133-
}
134-
}
135-
* */
136121

137122
static function formtokenGet(){
138123
$key = md5(time().mt_rand(0,10000));

0 commit comments

Comments
 (0)
Please sign in to comment.