Changeset 10958 for extensions/UserAdvManager/branches/2.20/admin
- Timestamp:
- May 20, 2011, 10:22:18 PM (13 years ago)
- Location:
- extensions/UserAdvManager/branches/2.20/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.20/admin/UAM_admin.php
r10943 r10958 106 106 case 'global': 107 107 108 if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_GTAutoMail']) and isset($_POST['UAM_CustomPasswRetr']) and isset($_POST['UAM_USRAuto']) and isset($_POST['UAM_USRAutoMail']) and isset($_POST['UAM_Stuffs']) and isset($_POST['UAM_HidePassw']) )108 if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_GTAutoMail']) and isset($_POST['UAM_CustomPasswRetr']) and isset($_POST['UAM_USRAuto']) and isset($_POST['UAM_USRAutoMail']) and isset($_POST['UAM_Stuffs']) and isset($_POST['UAM_HidePassw']) and isset($_POST['UAM_GroupComm'])) 109 109 { 110 110 … … 179 179 $_POST['UAM_USRAutoMail'], 180 180 $_POST['UAM_Stuffs'], 181 $_POST['UAM_HidePassw'] 181 $_POST['UAM_HidePassw'], 182 $_POST['UAM_GroupComm'], 183 (isset($_POST['UAM_AllowComm_Group'])?$_POST['UAM_AllowComm_Group']:''), 182 184 ); 183 185 … … 257 259 $Valid = -1; 258 260 $Downgrade = -1; 261 $AllowComm = -1; 259 262 260 263 //Check groups list in database … … 284 287 { 285 288 $Downgrade = $row['id']; 289 } 290 //configuration value for users group allowed to post comments 291 if (isset($conf_UAM[37]) and $conf_UAM[37] == $row['id']) 292 { 293 $AllowComm = $row['id']; 286 294 } 287 295 } … … 309 317 'group_options'=> $groups, 310 318 'group_selected' => $Downgrade 319 ) 320 ); 321 //Template initialization for allowed group for comments 322 $template->assign( 323 'AllowComm_Group', 324 array( 325 'group_options'=> $groups, 326 'group_selected' => $AllowComm 311 327 ) 312 328 ); … … 449 465 'UAM_HIDEPASSW_TRUE' => $conf_UAM[35]=='true' ? 'checked="checked"' : '' , 450 466 'UAM_HIDEPASSW_FALSE' => $conf_UAM[35]=='false' ? 'checked="checked"' : '' , 467 'UAM_GROUPCOMM_TRUE' => $conf_UAM[36]=='true' ? 'checked="checked"' : '' , 468 'UAM_GROUPCOMM_FALSE' => $conf_UAM[36]=='false' ? 'checked="checked"' : '' , 469 'UAM_ALLOWCOMM_GROUP' => $conf_UAM[37], 451 470 'UAM_PASSWORD_TEST_SCORE' => $UAM_Password_Test_Score, 452 471 'UAM_ERROR_REPORTS4' => $UAM_Exclusionlist_Error, -
extensions/UserAdvManager/branches/2.20/admin/template/global.tpl
r10392 r10958 679 679 680 680 <li> 681 <label class="cluetip" title="{'UAM_GroupCommTitle'|translate}|{'UAM_GroupCommTitle_d'|translate}"> 682 {'UAM_Group_Comments'|@translate} 683 </label> 684 <br><br> 685 <input type="radio" value="false" {$UAM_GROUPCOMM_FALSE} name="UAM_GroupComm"> 686 {'UAM_Disable'|@translate} 687 <br> 688 <input type="radio" value="true" {$UAM_GROUPCOMM_TRUE} name="UAM_GroupComm"> 689 {'UAM_Enable'|@translate} 690 <br><br> 691 <ul> 692 <li> 693 <label> 694 {'UAM_AllowedComm_Group'|@translate} 695 </label> 696 <br><br> 697 <div id="uam_leftmargin"> 698 {html_options name="UAM_AllowComm_Group" options=$AllowComm_Group.group_options selected=$AllowComm_Group.group_selected} 699 </div> 700 </li> 701 </ul> 702 <br><br> 703 </li> 704 705 <li> 681 706 <label class="cluetip" title="{'UAM_RedirTitle'|translate}|{'UAM_RedirTitle_d'|translate}"> 682 707 {'UAM_RedirToProfile'|@translate}
Note: See TracChangeset
for help on using the changeset viewer.