This commit is contained in:
root 2016-01-04 12:05:23 +01:00
parent f74dccd1f6
commit 8bebb2c997
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,6 @@
# SMBind-ng # SMBind-ng
v0.91c
This is a forked project from [smbind](http://sourceforge.net/projects/smbind/). This is a forked project from [smbind](http://sourceforge.net/projects/smbind/).
This fork has many improvements, security changes and new features This fork has many improvements, security changes and new features

View File

@ -1,4 +1,3 @@
# Required parts
<?php <?php
$_CONF['db_type'] = ''; $_CONF['db_type'] = '';
$_CONF['db_user'] = ''; $_CONF['db_user'] = '';

View File

@ -528,7 +528,11 @@ function menu_buttons() {
$cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0; $cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0;
$cslaves = $user->getCommitableZones('slave'); $cslaves = $user->getCommitableZones('slave');
$csc = (is_array($cslaves)) ? sizeof($cslaves) : 0; $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) { if($commitables == 0) {
$committext = ""; $committext = "";
$smarty->assign("donotcommit","yes"); $smarty->assign("donotcommit","yes");
@ -542,8 +546,7 @@ function menu_buttons() {
sizeof($user->getDeletedZones('slave')) + sizeof($user->getDeletedZones('slave')) +
sizeof($user->getDeletedZones('master')) > 0) { sizeof($user->getDeletedZones('master')) > 0) {
$maintext = "\" class=\"attention"; $maintext = "\" class=\"attention";
} } else {
else {
$maintext = ""; $maintext = "";
} }