"Fossies" - the Fresh Open Source Software Archive  

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

directory.ctrl.php  (seopanel.v.4.7.0):directory.ctrl.php  (seopanel.v.4.8.0)
skipping to change at line 730 skipping to change at line 730
$dirId = intval($dirId); $dirId = intval($dirId);
$sql = "SELECT * FROM directories where id=$dirId"; $sql = "SELECT * FROM directories where id=$dirId";
$dirInfo = $this->db->select($sql, true); $dirInfo = $this->db->select($sql, true);
return $dirInfo; return $dirInfo;
} }
# func to show directory manager # func to show directory manager
function showDirectoryManager($info=''){ function showDirectoryManager($info=''){
$info = sanitizeData($info); $info = sanitizeData($info);
$info['stscheck'] = isset($info['stscheck']) ? intval($info['stsc heck']) : 1; $info['stscheck'] = isset($info['stscheck']) ? intval($info['stsc heck']) : 1;
$capcheck = isset($info['capcheck']) ? (($info['capcheck'] == 'ye
s') ? 1 : 0 ) : ""; if (isset($info['capcheck']) && !empty($info['capcheck'])) {
$capcheck = ($info['capcheck'] == 'yes') ? 1 : 0;
$info['capcheck'] = ($info['capcheck'] == 'yes') ? "yes" : "n
o";
} else {
$capcheck = "";
}
$sql = "SELECT *,l.lang_name FROM directories d,languages l where d.lang_code=l.lang_code and working='{$info['stscheck']}'"; $sql = "SELECT *,l.lang_name FROM directories d,languages l where d.lang_code=l.lang_code and working='{$info['stscheck']}'";
if(!empty($info['dir_name'])) $sql .= " and domain like '%".addsl ashes($info['dir_name'])."%'"; if(!empty($info['dir_name'])) $sql .= " and domain like '%".addsl ashes($info['dir_name'])."%'";
if($info['capcheck'] != '') $sql .= " and is_captcha='$capcheck'" ; if($info['capcheck'] != '') $sql .= " and is_captcha='$capcheck'" ;
// check for page rank // check for page rank
if(isset($info['pagerank']) && ($info['pagerank'] != '')) { if(isset($info['pagerank']) && ($info['pagerank'] != '')) {
$prMax = intval($info['pagerank']) + 0.5; $prMax = intval($info['pagerank']) + 0.5;
$prMin = intval($info['pagerank']) - 0.5; $prMin = intval($info['pagerank']) - 0.5;
$sql .= " and pagerank<$prMax and pagerank>=$prMin"; $sql .= " and pagerank<$prMax and pagerank>=$prMin";
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 9 lines changed or added

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