| |||||||||||||||||||||||||||||||||||||||||||||||||
throw new Api_DownException("Go-Api($this->o_host,$this->port) $this->name::$method(".cut(json_encode($args), 100).") failed");
}
}
socket_write($socket, $data, strlen($data));
$buffer = "";
while ($b = socket_read($socket, 2048)) {
$buffer .= $b;
}
socket_close($socket);
$r = json_decode($buffer, 1);
Profiler::out();
|
| return $this->socketCall($method, ...$args);
| 1 : removals
1 : [694282774646242131,***,278527370504932129,1145483630914915974]
| }
// raw go-api method call
if ($method[0] == "_")
$method = substr($method, 1);
try {
return $this->socketCall($method, ...$args);
} catch (Api_DownException $ex) {
1;
}
// Api_DownException !!
if ($backup = $this->C['backup-socket'] ?? 0) {
|
| $res = $this->removals($hashes);
| 1 : removals
1 : [[694282774646242131***278527370504932129,1145483630914915974]]
| $res[0] = $sub_res[0] + $res[0];
}
$position = $position + static::$MAX_ARRAY_ELEMENTS_PER_REQUEST;
}
} else {
$res = $this->removals($hashes);
}
return $res[0] ?? [];
}
// FL popularity
function fl_pop(...$args) {
| Api_RadarisGo_NameServer
|
| 1 : [694282774646242131,***,278527370504932129,1145483630914915974]
| static function findRemovedHashes(array $hashes) {
if (isset($_GET["UPDATE"])) {
static::syncRemovalHashes();
static::reloadRemovals();
}
return i("go-api.name-server")->get_removals($hashes);
}
/**
* Find which of entities are forbidden. Uses i('go-api.name-server') service
* @param array $entities [uk => entity_data]
* @return array [uk => removal_reason]
| removal\Hasher_BaseHasher
|
| 1 : [694282774646242131,***,278527370504932129,1145483630914915974]
| $entity_hashes[$e_id][] = $hash;
}
}
}
if ($all_hashes) {
if ($removed_hashes = static::findRemovedHashes($all_hashes)) {
foreach ($entity_hashes as $e_id => $hashes) {
foreach ($hashes as $hash) {
if ($removed_hashes[$hash["hash"]] ?? 0) {
\Profiler::warn(Removal::$MYNAME, "Hash:".$hash["hash"] . ":" . x2s($hash)."; Entity:".x2s($entity));
$removed[$e_id] = $hash;
| removal\Hasher_BaseHasher
|
| 1 : {"1":{"phone":173253***00},"uk":"541009-31412:PhoneAddress/9"}}
| return $item;
}, $entities);
}
if (!empty($entities)) {
\Profiler::in(self::$MYNAME, "Filter data cnt:" . count($entities));
if ($removed = Hasher::findRemoved($entities)) {
switch ($method) {
case "unset":
foreach ($removed as $k => $v) {
unset($data[$k]);
}
| removal\Removal
|
| 1 : {"1":{"phone":173253***00},"uk":"541009-31412:PhoneAddress/9"}}
1 : {"1":{"name":"Dana S***_main":400},"id":3,"tp":"PhoneAddress"}} 1 : mark
| $tc["uk"] = $uk;
}
$to_check[$iid] = $tc;
}
}
if ($removed = removal\Removal::filterRemoved($to_check, $d["."], "mark")) {
//Also save removals permanently
/* Permanent set may take a lot of time.
foreach ($removed as $iid => $tc) {
$K[$phone][$iid]->_deleted = $d["."][$iid]["_deleted"];
$K[$phone][$iid]->_forbidden = $d["."][$iid]["_forbidden"];
| Phone
|
| 1 : 17325335261
| $K = KRDB::i("phone", "1".substr($p, 0, 7));
http_last_modified( max((int) $K->_updated, KRDB_Phone_Admin::$MIN_LAST_MODIFIED));
if ($this->forbidden_phone && !Debug::is_admin()) {
$teaser = [];
} else {
$teaser = Phone::teaser8("1".$p);
$teaser = Phone::teaserResolveGeo($teaser);
//08 May 2016 new logic. If we do not know phone number - pass user to reverse phone lookup report
if (!$teaser && !$this->forbidden_phone) {
SEO_MissingData::hit("phone");
go(Phone::reversePhoneLookupReportUrl($p, false));
|
| return call_user_func_array( [$this, $method], $r);
| 1 : 7325335261
| }
} catch(Exception $ex) {
\Log::alert( $ex->getMessage() );
}
try {
return call_user_func_array( [$this, $method], $r);
} catch(RedirectException $ex) {
return $ex->getMessage();
}
}
function page404() {
|
| return $this->_reflection_call($method);
| 1 : phone
| if (method_exists($this, $method) )
$mex=1;
}
}
if ($mex)
return $this->_reflection_call($method);
// use template name (same as url)
return $url;
}
/* internal */
// serve method (normal or gzipped)
|
| $r = $A->_call($method, $path);
| 1 : phone
1 : phone
| Profiler::disable();
CD::set("AJAX", 1);
}
Profiler::in("${class}::$method", $p);
$A = new $class($p);
$r = $A->_call($method, $path);
Profiler::out();
//respect called action's desire to act as AJAX.
$is_ajax = CD("AJAX");
// AJAX methods - default - no templates
if ($is_ajax) {
|
| $template = self::action($url, $params); // PARAM by REF!
| 1 : phone
1 : {"p":"7325335261","c***":"table-scroll","forbidden_phone":null}
| self::$layout=$layout;
if ($r = strpos($url,"?"))
$url = substr($url, 0, $r);
$url = substr($url,1); // remove leading "/"
restore_msg($params);
$template = self::action($url, $params); // PARAM by REF!
if (isset($_GET['TPL']) ) {
echo "<div style='padding-left: 3px; background: #eee'>";
vvv($params);
echo "</div>";
}
|
| Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
| 1 : phone
1 : {"p":"7325335261","c***":"table-scroll","forbidden_phone":null} 1 : _layout
| <?
Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
exit; |
#0 lib.framework/Api/RadarisGo/RadarisGo.php:151 Api_RadarisGo->socketCall('...', Array) #1 lib.framework/Api/RadarisGo/NameServer.php:88 Api_RadarisGo->__call('...', Array) #2 lib/removal/Hasher/BaseHasher.php:91 Api_RadarisGo_NameServer->get_removals(Array) #3 lib/removal/Hasher/BaseHasher.php:115 removal\Hasher_BaseHasher::findRemovedHashes(Array) #4 lib/removal/Removal.php:135 removal\Hasher_BaseHasher::findRemoved(Array) #5 lib/Phone/Phone.php:615 removal\Removal::filterRemoved(Array, Array, '...') #6 vhosts/phone/lib/Action/Phone/Root.php:522 Phone::teaser8('...') #7 lib.framework/Action/Action.php:236 Action_Phone_Root->phone('...') #8 lib.framework/Action/Action.php:177 Action->_reflection_call('...') #9 lib.framework/Controller/Controller.php:265 Action->_call('...', '...') #10 lib.framework/Controller/Controller.php:169 Controller::action('...', Array) #11 vhosts/phone/phoneowner.us/www/index.php:2 Controller::dispatch('...', Array, '...') #12 {main}
Api_RadarisGo->socketCall([0:istat_hit, 1:{"anti..it":1}]) Api_RadarisGo->__call([0:istat_hit 1:[1 items]]) Api_RadarisGo_NameServer->istat_hit([ 0:[11 items]]) Statistic_iStat_Web_GoApi_Buffered->__destruct([])