]> git.mxchange.org Git - friendica.git/commitdiff
add email probe logging, limit typo check to main addon files and skip additional...
authorfriendica <info@friendica.com>
Wed, 6 Jun 2012 02:28:04 +0000 (19:28 -0700)
committerfriendica <info@friendica.com>
Wed, 6 Jun 2012 02:28:04 +0000 (19:28 -0700)
include/Scrape.php
util/typo.php

index 22725260091cac26f848183c4ac5f5d12e46e938..ca8f6e83ae3d9f3b0fa0e2508f76374465c6e722 100644 (file)
@@ -435,10 +435,13 @@ function probe_url($url, $mode = PROBE_NORMAL) {
                                        $password = '';
                                        openssl_private_decrypt(hex2bin($r[0]['pass']),$password,$x[0]['prvkey']);
                                        $mbox = email_connect($mailbox,$r[0]['user'],$password);
+                                       if(! $mbox)
+                                               logger('probe_url: email_connect failed.');
                                        unset($password);
                                }
                                if($mbox) {
                                        $msgs = email_poll($mbox,$orig_url);
+                                       logger('probe_url: searching ' . $orig_url . ', ' . count($msgs) . ' messages found.', LOGGER_DEBUG);
                                        if(count($msgs)) {
                                                $addr = $orig_url;
                                                $network = NETWORK_MAIL;
index 7c275f3ca32e6629488e407e67bf5324454d05bc..bb2fc67c9f687ccfc21a1c5b55e3e08c8f507829 100644 (file)
        $dirs = glob('addon/*');
 
        foreach($dirs as $dir) {
-               $files = glob($dir . '/*.php');
+               $addon = basename($dir);
+               $files = glob($dir . '/' . $addon . '.php');
                foreach($files as $file) {
                        echo $file . "\n";
-                       if(stristr($file,'jappixmini/proxy.php'))
-                               continue;
                        include_once($file);
                }
        }