"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "controllers/backlink.ctrl.php" between
seopanel.v.4.7.0.zip and seopanel.v.4.8.0.zip

About: Seo Panel is a seo control panel for managing search engine optimization of your websites.

backlink.ctrl.php  (seopanel.v.4.7.0):backlink.ctrl.php  (seopanel.v.4.8.0)
skipping to change at line 75 skipping to change at line 75
$websiteUrl = @Spider::removeTrailingSlash(formatUrl($bac klinkInfo['url'])); $websiteUrl = @Spider::removeTrailingSlash(formatUrl($bac klinkInfo['url']));
} }
$websiteUrl = urldecode($websiteUrl); $websiteUrl = urldecode($websiteUrl);
$backlinkUrl = $this->backUrlList[$backlinkInfo['engine']] . $web siteUrl; $backlinkUrl = $this->backUrlList[$backlinkInfo['engine']] . $web siteUrl;
echo "<a href='$backlinkUrl' target='_blank'>$backlinkCount</a>"; echo "<a href='$backlinkUrl' target='_blank'>$backlinkCount</a>";
} }
function __getBacklinks ($engine) { function __getBacklinks ($engine) {
if (SP_DEMO && !empty($_SERVER['REQUEST_METHOD'])) return 0; if (SP_DEMO && !empty($_SERVER['REQUEST_METHOD'])) return 0;
// check whether any api source is enabled for crawl keyword
if ($engine != 'alexa') {
$searchInfo = ['name' => "link:$this->url", "engine" => $engine];
list($resDataStatus, $resData) = SettingsController::getSearchRes
ultCount($searchInfo, $cron);
if ($resDataStatus) {
return $resData['count'];
}
}
$backlinkCount = 0; $backlinkCount = 0;
switch ($engine) { switch ($engine) {
#google #google
case 'google': case 'google':
$url = $this->backUrlList[$engine] . urlencode($t his->url); $url = $this->backUrlList[$engine] . urlencode($t his->url);
$v = $this->spider->getContent($url); $v = $this->spider->getContent($url);
$pageContent = empty($v['page']) ? '' : $v['page ']; $pageContent = empty($v['page']) ? '' : $v['page '];
if (preg_match('/about ([0-9\,]+) result/si', $pa geContent, $r)) { if (preg_match('/about ([0-9\,]+) result/si', $pa geContent, $r)) {
} elseif (preg_match('/<div id=resultStats>([0-9\ ,]+) result/si', $pageContent, $r)) { } elseif (preg_match('/<div id=resultStats>([0-9\ ,]+) result/si', $pageContent, $r)) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)