File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ static function messageAdd(){
69
69
}
70
70
71
71
/**
72
- * <p>Updates existing message/campaing .</p>
72
+ * <p>Updates existing message/campaign .</p>
73
73
* <p><strong>Parameters:</strong><br/>
74
74
* [*id] {integer} <br/>
75
75
* [*subject] {string} <br/>
@@ -118,21 +118,6 @@ static function messageUpdate( $id = 0 ){
118
118
}
119
119
120
120
}
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
- * */
136
121
137
122
static function formtokenGet (){
138
123
$ key = md5 (time ().mt_rand (0 ,10000 ));
You can’t perform that action at this time.
0 commit comments