Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serphacker committed Mar 24, 2013
1 parent 32a292e commit d519071
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Serposcope changelog

## 0.9.8 - 23/03/2013
## 0.9.10 - 24/03/2013

* fixed no change on home page if only one check
* minor fixes/enhancement

## 0.9.9 - 23/03/2013

* fixed wild card bug
* fixed clear_cache() on mutu with hundred of thousand of files in the same dir
Expand Down
2 changes: 0 additions & 2 deletions edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@
}
}

print_r($groupOptions);

$qUpdateGroup = "UPDATE `".SQL_PREFIX."group` SET ".
"name = '".addslashes($_POST['name'])."', ".
"options = '".addslashes(json_encode($groupOptions))."' ".
Expand Down
2 changes: 1 addition & 1 deletion inc/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
$db->query("set names 'utf8'");

if($db->query('select 1 from `'.SQL_PREFIX.'group`') === false){
die("Database ".SQL_DATABASE." ok but can't find tables, check <a href='http://serphacker.com/serposcope/doc/install.html' >install instruction</a>");
die("Database ".SQL_DATABASE." OK but can't find tables. Need to reinstall. Delete <code>inc/config.php</code> and go to <a href='".dirname($_SERVER['PHP_SELF'])."/install/' >installer</a> or check <a href='http://serphacker.com/serposcope/doc/install.html' >install instruction</a>");
}

$dbversion=1;
Expand Down
8 changes: 6 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ function cmpBadChange($a,$b){
"order by idCheck DESC limit 1";

$res2=$db->query($q);
if($res2 && ($row2=mysql_fetch_row($res2))){
$row['idPrevCheck'] = $row2[0];
if($res2){
if($row2=mysql_fetch_row($res2)){
$row['idPrevCheck'] = $row2[0];
}else{
$row['idPrevCheck'] = null;
}
$groupsCheck[]=$row;
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ $(function() {

$('#uzi_img')[0].onload = function(elt) {
$('#uzi_link').css("cursor", "pointer");
$('#uzi_link')[0].href = "http://stats.serphacker.com/uzi.php?s=s&t=l";
$('#uzi_link')[0].href = "http://stats.serphacker.com/serposcope/" + current_version + "/";
}

$('#uzi_img')[0].src = "http://stats.serphacker.com/uzi.php?s=s&t=i&v=" + current_version;
$('#uzi_img')[0].src = "http://stats.serphacker.com/serposcope/" + current_version + "/banner.jpg";

// check if new version available
if (current_version !== undefined && latest_version !== undefined) {
Expand Down

0 comments on commit d519071

Please sign in to comment.