"Fossies" - the Fresh Open Source Software Archive  

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

seoplugins.ctrl.php  (seopanel.v.4.7.0):seoplugins.ctrl.php  (seopanel.v.4.8.0)
skipping to change at line 271 skipping to change at line 271
# func to list seo tools # func to list seo tools
function listSeoPlugins($msg='', $error=false, $info=[]) { function listSeoPlugins($msg='', $error=false, $info=[]) {
if(empty($msg)) $this->__updateAllSeoPlugins(); if(empty($msg)) $this->__updateAllSeoPlugins();
$info['pageno'] = intval($info['pageno']); $info['pageno'] = intval($info['pageno']);
$userId = isLoggedIn(); $userId = isLoggedIn();
$this->set('msg', $msg); $this->set('msg', $msg);
$this->set('error', $error); $this->set('error', $error);
$pageScriptPath = 'seo-plugins-manager.php?stscheck=';
$pageScriptPath .= isset($info['stscheck']) ? $info['stscheck'] :
"select";
$sql = "select * from seoplugins where 1=1"; $sql = "select * from seoplugins where 1=1";
// if status set // if status set
if (isset($info['stscheck']) && $info['stscheck'] != 'select') { if (isset($info['stscheck']) && $info['stscheck'] != 'select') {
$info['stscheck'] = intval($info['stscheck']); $info['stscheck'] = intval($info['stscheck']);
$sql .= " and status='{$info['stscheck']}'"; $sql .= " and status='{$info['stscheck']}'";
} }
$pageScriptPath = 'seo-plugins-manager.php?stscheck=';
$pageScriptPath .= isset($info['stscheck']) ? $info['stscheck'] :
"select";
// search for keyword // search for keyword
if (!empty($info['keyword'])) { if (!empty($info['keyword'])) {
$sql .= " and (label like '%".addslashes($info['keyword'])."% ' $sql .= " and (label like '%".addslashes($info['keyword'])."% '
or name like '%".addslashes($info['keyword'])."%' or name like '%".addslashes($info['keyword'])."%'
or description like '%".addslashes($info['keyword'])."%') "; or description like '%".addslashes($info['keyword'])."%') ";
$pageScriptPath .= "&keyword=" . $info['keyword']; $pageScriptPath .= "&keyword=" . $info['keyword'];
} }
$sql .= " order by id"; $sql .= " order by id";
skipping to change at line 353 skipping to change at line 354
$this->set('post', $this->__getSeoPluginInfo($info['pid'] )); $this->set('post', $this->__getSeoPluginInfo($info['pid'] ));
} }
$this->render('seoplugins/editseoplugin'); $this->render('seoplugins/editseoplugin');
} }
# func to list seo plugin info # func to list seo plugin info
function listPluginInfo($pluginId){ function listPluginInfo($pluginId){
$pluginId = intval($pluginId); $pluginId = intval($pluginId);
$this->set('pluginInfo', $this->__getSeoPluginInfo($pluginId)); $this->set('pluginInfo', $this->__getSeoPluginInfo($pluginId));
$this->set('pageNo', $_GET['pageno']); $this->set('pageNo', intval($_GET['pageno']));
$this->render('seoplugins/listplugininfo'); $this->render('seoplugins/listplugininfo');
} }
function updateSeoPlugin($listInfo){ function updateSeoPlugin($listInfo){
$listInfo['id'] = intval($listInfo['id']); $listInfo['id'] = intval($listInfo['id']);
$this->set('post', $listInfo); $this->set('post', $listInfo);
$errMsg['plugin_name'] = formatErrorMsg($this->validate->checkBla nk($listInfo['plugin_name'])); $errMsg['plugin_name'] = formatErrorMsg($this->validate->checkBla nk($listInfo['plugin_name']));
$errMsg['priority'] = formatErrorMsg($this->validate->checkNumber ($listInfo['priority'])); $errMsg['priority'] = formatErrorMsg($this->validate->checkNumber ($listInfo['priority']));
if(!$this->validate->flagErr){ if(!$this->validate->flagErr){
 End of changes. 3 change blocks. 
4 lines changed or deleted 5 lines changed or added

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