From: friendica Date: Wed, 6 Jun 2012 02:28:04 +0000 (-0700) Subject: add email probe logging, limit typo check to main addon files and skip additional... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5389efffa9c8d2da40bf6ea448562ae67538e0d4;p=friendica.git add email probe logging, limit typo check to main addon files and skip additional support files --- diff --git a/include/Scrape.php b/include/Scrape.php index 2272526009..ca8f6e83ae 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -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; diff --git a/util/typo.php b/util/typo.php index 7c275f3ca3..bb2fc67c9f 100644 --- a/util/typo.php +++ b/util/typo.php @@ -30,11 +30,10 @@ $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); } }