]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
more debugging to see if the google push hub is even trying to publish our content.
[friendica.git] / mod / photos.php
index ecf5031b3d2a9d1ba40bce900819fc42c60edbd3..82060378e666d7fa7a54325ab2076a990a7f11e9 100644 (file)
@@ -187,9 +187,8 @@ foreach($_FILES AS $key => $val) {
                                        // send the notification upstream/downstream as the case may be
 
                                        if($rr['visible'])
-                                               proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"drop\" \"$drop_id\" & ",
-                                                       array(),$foo));
-
+                                               //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"drop\" \"$drop_id\" & ",array(),$foo));
+                                               proc_run($php_path,"include/notifier.php","drop","$drop_id");
                                }
                        }
                }
@@ -236,8 +235,8 @@ foreach($_FILES AS $key => $val) {
                                $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
 
                                if($i[0]['visible'])
-                                       proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"drop\" \"$drop_id\" & ",
-                                               array(),$foo));
+                                       //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"drop\" \"$drop_id\" & ",       array(),$foo));
+                                       proc_run($php_path,"include/notifier.php","drop","$drop_id");
                        }
                }
 
@@ -462,8 +461,8 @@ foreach($_FILES AS $key => $val) {
 
                                        $item_id = item_store($arr);
                                        $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
-                                       proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"tag\" \"$item_id\" & ",
-                                               array(),$foo));
+                                       //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"tag\" \"$item_id\" & ",array(),$foo));
+                                       proc_run($php_path,"include/notifier.php","tag","$item_id");
                                }
 
                        }
@@ -523,7 +522,7 @@ foreach($_FILES AS $key => $val) {
        $ret = array('src' => '', 'filename' => '', 'filesize' => 0);
 
        call_hooks('photo_post_file',$ret);
-logger('after post_file');     
+
        if(x($ret,'src') && x($ret,'filesize')) {
                $src      = $ret['src'];
                $filename = $ret['filename'];
@@ -796,9 +795,6 @@ function photos_content(&$a) {
                        '$permissions' => t('Permissions'),
                        '$aclselect' => (($visitor) ? '' : populate_acl($a->user, $celeb)),
                        '$uploader' => $ret['addon_text'],
-                       '$filestext' => t('Select files to upload: '),
-                       '$archive' => $a->get_baseurl() . '/jumploader_z.jar',
-                       '$nojava' => t('Use the following controls only if the Java uploader [above] fails to launch.'),
                        '$default' => (($ret['default_upload']) ? $default_upload : ''),
                        '$uploadurl' => $ret['post_url']