X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fgprobe.php;h=52c5483c87c2ef213f114fb88b5aa38a33f69f3c;hb=dbe8275ae5de7610ce21c90088b94a1e18d02921;hp=5ca42729a701c60159bfd2b0213831ee86bef229;hpb=b5e857c0e7ccf4ef3d33e5b6d0a4325b693a8e80;p=friendica.git diff --git a/include/gprobe.php b/include/gprobe.php index 5ca42729a7..52c5483c87 100644 --- a/include/gprobe.php +++ b/include/gprobe.php @@ -4,16 +4,16 @@ require_once("boot.php"); require_once('include/Scrape.php'); require_once('include/socgraph.php'); -function gprobe_run($argv, $argc){ +function gprobe_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { $a = new App; } - + if(is_null($db)) { @include(".htconfig.php"); - require_once("dba.php"); + require_once("include/dba.php"); $db = new dba($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); }; @@ -37,6 +37,8 @@ function gprobe_run($argv, $argc){ dbesc(normalise_link($url)) ); + logger("gprobe start for ".normalise_link($url), LOGGER_DEBUG); + if(! count($r)) { $arr = probe_url($url); @@ -55,11 +57,12 @@ function gprobe_run($argv, $argc){ } if(count($r)) poco_load(0,0,$r[0]['id'], str_replace('/profile/','/poco/',$r[0]['url'])); - + + logger("gprobe end for ".normalise_link($url), LOGGER_DEBUG); return; } if (array_search(__file__,get_included_files())===0){ - gprobe_run($argv,$argc); + gprobe_run($_SERVER["argv"],$_SERVER["argc"]); killme(); }