Commit 8bebb2c9971906b8190cc583c5520b2cf1491e89

Authored by Péter Szládovics
1 parent f74dccd1

Issue #2 fix

README.md
1 # SMBind-ng 1 # SMBind-ng
  2 +v0.91c
  3 +
2 This is a forked project from [smbind](http://sourceforge.net/projects/smbind/). 4 This is a forked project from [smbind](http://sourceforge.net/projects/smbind/).
3 5
4 This fork has many improvements, security changes and new features 6 This fork has many improvements, security changes and new features
config/config.php
1 -# Required parts  
2 <?php 1 <?php
3 $_CONF['db_type'] = ''; 2 $_CONF['db_type'] = '';
4 $_CONF['db_user'] = ''; 3 $_CONF['db_user'] = '';
src/include.php
@@ -528,7 +528,11 @@ function menu_buttons() { @@ -528,7 +528,11 @@ function menu_buttons() {
528 $cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0; 528 $cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0;
529 $cslaves = $user->getCommitableZones('slave'); 529 $cslaves = $user->getCommitableZones('slave');
530 $csc = (is_array($cslaves)) ? sizeof($cslaves) : 0; 530 $csc = (is_array($cslaves)) ? sizeof($cslaves) : 0;
531 - $commitables = $cmc + $csc; 531 + $dmasters = $user->getDeletedZones('master');
  532 + $dmc = (is_array($dmasters)) ? sizeof($dmasters) : 0;
  533 + $dslaves = $user->getDeletedZones('slave');
  534 + $dsc = (is_array($dslaves)) ? sizeof($dslaves) : 0;
  535 + $commitables = $cmc + $csc + $dmc + $dsc;
532 if($commitables == 0) { 536 if($commitables == 0) {
533 $committext = ""; 537 $committext = "";
534 $smarty->assign("donotcommit","yes"); 538 $smarty->assign("donotcommit","yes");
@@ -542,8 +546,7 @@ function menu_buttons() { @@ -542,8 +546,7 @@ function menu_buttons() {
542 sizeof($user->getDeletedZones('slave')) + 546 sizeof($user->getDeletedZones('slave')) +
543 sizeof($user->getDeletedZones('master')) > 0) { 547 sizeof($user->getDeletedZones('master')) > 0) {
544 $maintext = "\" class=\"attention"; 548 $maintext = "\" class=\"attention";
545 - }  
546 - else { 549 + } else {
547 $maintext = ""; 550 $maintext = "";
548 } 551 }
549 552