"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "controllers/settings.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.

settings.ctrl.php  (seopanel.v.4.7.0):settings.ctrl.php  (seopanel.v.4.8.0)
skipping to change at line 45 skipping to change at line 45
$langList = $langCtrler->__getAllLanguages(" where translated=1") ; $langList = $langCtrler->__getAllLanguages(" where translated=1") ;
$this->set('langList', $langList); $this->set('langList', $langList);
$timezoneCtrler = New TimeZoneController(); $timezoneCtrler = New TimeZoneController();
$timezoneList = $timezoneCtrler->__getAllTimezones(); $timezoneList = $timezoneCtrler->__getAllTimezones();
$this->set('timezoneList', $timezoneList); $this->set('timezoneList', $timezoneList);
$currencyCtrler = new CurrencyController(); $currencyCtrler = new CurrencyController();
$this->set('currencyList', $currencyCtrler->__getAllCurrency(" an d paypal=1 and status=1 and name!=''")); $this->set('currencyList', $currencyCtrler->__getAllCurrency(" an d paypal=1 and status=1 and name!=''"));
$countryCtrl = new CountryController();
$this->set('countryList', $countryCtrl->__getAllCountryAsList());
} }
$this->set('category', $category); $this->set('category', $category);
// if report settings page // if report settings page
if ($category == 'report') { if ($category == 'report') {
$spTextReport = $this->getLanguageTexts('report', $_SESSION['lang_co de']); $spTextReport = $this->getLanguageTexts('report', $_SESSION['lang_co de']);
$this->set('spTextReport', $spTextReport); $this->set('spTextReport', $spTextReport);
$scheduleList = array( $scheduleList = array(
skipping to change at line 87 skipping to change at line 89
break; break;
case "moz": case "moz":
$this->set('headLabel', $spTextPanel['MOZ Settings']); $this->set('headLabel', $spTextPanel['MOZ Settings']);
break; break;
case "google": case "google":
$this->set('headLabel', $spTextPanel['Goo gle Settings']); $this->set('headLabel', $spTextPanel['Goo gle Settings']);
break; break;
case "dataforseo":
$this->set('headLabel', $spTextPanel['DataFor
SEO Settings']);
break;
case "mail": case "mail":
$this->set('headLabel', $spTextPanel['Mail Se ttings']); $this->set('headLabel', $spTextPanel['Mail Se ttings']);
break; break;
default: default:
break; break;
} }
$this->render('settings/showsettings'); $this->render('settings/showsettings');
} }
} }
function updateSystemSettings($postInfo) { function updateSystemSettings($postInfo) {
$setList = $this->__getAllSettings(true, 1, $postInfo['category'] ); $setList = $this->__getAllSettings(true, 1, $postInfo['category'] );
foreach($setList as $setInfo){ foreach($setList as $setInfo){
// exclude from update
if ($setInfo['set_name'] == 'SP_DFS_BALANCE') {
continue;
}
switch($setInfo['set_name']){ switch($setInfo['set_name']){
case "SP_PAGINGNO": case "SP_PAGINGNO":
$postInfo[$setInfo['set_name']] = intval( $postInfo[$setInfo['set_name']]); $postInfo[$setInfo['set_name']] = intval( $postInfo[$setInfo['set_name']]);
$postInfo[$setInfo['set_name']] = empty($ postInfo[$setInfo['set_name']]) ? SP_PAGINGNO_DEFAULT : $postInfo[$setInfo['set_ name']]; $postInfo[$setInfo['set_name']] = empty($ postInfo[$setInfo['set_name']]) ? SP_PAGINGNO_DEFAULT : $postInfo[$setInfo['set_ name']];
break; break;
case "SP_CRAWL_DELAY": case "SP_CRAWL_DELAY":
case "SP_USER_GEN_REPORT": case "SP_USER_GEN_REPORT":
case "SA_CRAWL_DELAY_TIME": case "SA_CRAWL_DELAY_TIME":
skipping to change at line 290 skipping to change at line 301
} else { } else {
showSuccessMsg("Email send successfully to " . $i nfo['test_email']); showSuccessMsg("Email send successfully to " . $i nfo['test_email']);
} }
} else { } else {
showErrorMsg($errMsg); showErrorMsg($errMsg);
} }
} }
public static function getWebsiteOtherUrl($websiteUrl) {
// fix for www. and no www. in search results
if (stristr($websiteUrl, "www.")) {
$websiteOtherUrl = str_ireplace("www.", "", $websiteUrl);
} else {
$websiteOtherUrl = "www." . $websiteUrl;
}
return $websiteOtherUrl;
}
public static function getSearchResults($keywordInfo, $showAll = false, $
seId = false, $cron = false) {
$status = false;
$results = [];
// check dataforseo is enabled
if (SP_ENABLE_DFS && (SP_DFS_API_LOGIN != "") && (SP_DFS_API_PASSWORD
!= "")) {
include_once(SP_CTRLPATH."/dataforseo.ctrl.php");
$dfsCtrler = new DataForSEOController();
$status = true;
$results = $dfsCtrler->__getSERPResults($keywordInfo, $showAll, $
seId, $cron);
}
return [$status, $results];
}
public static function getSearchResultCount($keywordInfo, $cron = false)
{
$status = false;
$results = [];
// check dataforseo is enabled for backlink and saturation checker
if (SP_ENABLE_DFS && SP_ENABLE_DFS_BACK_SATU && (SP_DFS_API_LOGIN !=
"") && (SP_DFS_API_PASSWORD != "")) {
include_once(SP_CTRLPATH."/dataforseo.ctrl.php");
$dfsCtrler = new DataForSEOController();
$status = true;
$results = $dfsCtrler->__getSERPResultCount($keywordInfo, $cron);
}
return [$status, $results];
}
} }
?> ?>
 End of changes. 4 change blocks. 
0 lines changed or deleted 58 lines changed or added

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