plugins/admin/GroupManager.php
changeset 541 acb7e23b6ffa
parent 536 218a627eb53e
child 573 43e7254afdb4
equal deleted inserted replaced
540:1e4b759da336 541:acb7e23b6ffa
   234             echo $db->get_error();
   234             echo $db->get_error();
   235             return;
   235             return;
   236           }
   236           }
   237           else
   237           else
   238           {
   238           {
       
   239             
   239             echo '<div class="info-box" style="margin: 0 0 10px 0;"">
   240             echo '<div class="info-box" style="margin: 0 0 10px 0;"">
   240                     ' . $lang->get('acpug_msg_user_added', array('username' => htmlspecialchars($_POST['edit_add_username']))) . '
   241                     ' . $lang->get('acpug_msg_user_added', array('username' => htmlspecialchars($_POST['edit_add_username']))) . '
   241                   </div>';
   242                   </div>';
   242           }
   243           }
   243         }
   244         }
   244         else
   245         else
   245           echo '<div class="warning-box">' . $lang->get('acpug_err_username_not_exist', array('username' => htmlspecialchars($_POST['edit_add_username']))) . '</div>';
   246           echo '<div class="warning-box">' . $lang->get('acpug_err_username_not_exist', array('username' => htmlspecialchars($_POST['edit_add_username']))) . '</div>';
   246       }
   247       }
       
   248       generate_ranks_cache();
   247     }
   249     }
   248     $sg_disabled = ( $row['system_group'] == 1 ) ?
   250     $sg_disabled = ( $row['system_group'] == 1 ) ?
   249              ' value="' . $lang->get('acpug_btn_cant_delete') . '" disabled="disabled" style="color: #FF9773" ' :
   251              ' value="' . $lang->get('acpug_btn_cant_delete') . '" disabled="disabled" style="color: #FF9773" ' :
   250              ' value="' . $lang->get('acpug_btn_delete_group') . '" style="color: #FF3713" ';
   252              ' value="' . $lang->get('acpug_btn_delete_group') . '" style="color: #FF3713" ';
   251     echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration', 'module='.$paths->cpage['module']).'" method="post" onsubmit="if(!submitAuthorized) return false;" enctype="multipart/form-data">';
   253     echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration', 'module='.$paths->cpage['module']).'" method="post" onsubmit="if(!submitAuthorized) return false;" enctype="multipart/form-data">';