+ // {{{ function editor()
+
+ function editor()
+ {
+ return 'include/form.valid.edit-photo.tpl';
+ }
+
+ // }}}
+ // {{{ function handle_editor()
+
+ function handle_editor()
+ {
+ if (isset($_FILES['userfile']['tmp_name'])) {
+ $file = $_FILES['userfile']['tmp_name'];
+ if ($data = file_get_contents($file)) {
+ if ($this->_get_image($data)) {
+ return true;
+ }
+ } else {
+ $page->trig('Fichier inexistant ou vide');
+ }
+ }
+ return false;
+ }
+
+ // }}}