diff --git a/README.md b/README.md index 6c9bcbc..a12f175 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # SMBind-ng +v0.91c + This is a forked project from [smbind](http://sourceforge.net/projects/smbind/). This fork has many improvements, security changes and new features diff --git a/config/config.php b/config/config.php index a4c9298..e1a845c 100644 --- a/config/config.php +++ b/config/config.php @@ -1,4 +1,3 @@ -# Required parts getCommitableZones('slave'); $csc = (is_array($cslaves)) ? sizeof($cslaves) : 0; - $commitables = $cmc + $csc; + $dmasters = $user->getDeletedZones('master'); + $dmc = (is_array($dmasters)) ? sizeof($dmasters) : 0; + $dslaves = $user->getDeletedZones('slave'); + $dsc = (is_array($dslaves)) ? sizeof($dslaves) : 0; + $commitables = $cmc + $csc + $dmc + $dsc; if($commitables == 0) { $committext = ""; $smarty->assign("donotcommit","yes"); @@ -542,8 +546,7 @@ function menu_buttons() { sizeof($user->getDeletedZones('slave')) + sizeof($user->getDeletedZones('master')) > 0) { $maintext = "\" class=\"attention"; - } - else { + } else { $maintext = ""; }