Changeset 6754 for extensions/NBC_UserAdvManager/trunk/admin
- Timestamp:
- Aug 14, 2010, 12:28:53 AM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r6753 r6754 28 28 $UAM_Password_Test_Score = 0; 29 29 $UAM_Exclusionlist_Error = false; 30 31 30 32 31 // +-----------------------------------------------------------------------+ … … 119 118 $UAM_Exclusionlist_Error = true; 120 119 } 121 120 122 121 $newconf_UAM = array( 123 122 $_POST['UAM_Mail_Info'], … … 154 153 pwg_query($query); 155 154 156 157 155 /* Email confirmation settings */ 158 156 $_POST['UAM_ConfirmMail_ReMail_Txt1'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt1']))); … … 163 161 164 162 $_POST['UAM_ConfirmMail_Custom_Txt2'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt2']))); 165 166 163 167 164 $newconf_UAM_ConfirmMail = array ( 168 165 $_POST['UAM_ConfirmMail_TimeOut'], … … 310 307 'UAM_CONFIRM_MAIL_TRUE' => $conf_UAM[1]=='true' ? 'checked="checked"' : '' , 311 308 'UAM_CONFIRM_MAIL_FALSE' => $conf_UAM[1]=='false' ? 'checked="checked"' : '' , 309 'UAM_CONFIRM_MAIL_LOCAL' => $conf_UAM[1]=='local' ? 'checked="checked"' : '' , 312 310 'UAM_CONFIRMMAIL_TEXT' => $conf_UAM[10], 313 311 'UAM_No_Confirm_Group' => $conf_UAM[2], … … 626 624 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 627 625 628 if (isset($conf_UAM[1]) and $conf_UAM[1]=='true'and ((isset($conf_UAM[2]) and $conf_UAM[2] <> '-1') or (isset($conf_UAM[8]) and $conf_UAM[8] <> '-1')))629 { 626 if (isset($conf_UAM[1]) and ($conf_UAM[1]=='true' or $conf_UAM[1]=='local') and ((isset($conf_UAM[2]) and $conf_UAM[2] <> '-1') or (isset($conf_UAM[8]) and $conf_UAM[8] <> '-1'))) 627 { 630 628 // +-----------------------------------------------------------------------+ 631 629 // | initialization | … … 1112 1110 1113 1111 $expiration = expiration($local_user['id']); 1114 1112 1115 1113 $template->append( 1116 1114 'users', … … 1135 1133 ) 1136 1134 ); 1137 } 1135 } 1136 1137 // Check if validation of register is made by admin or visitor 1138 // If visitor, $Confirm_Local is used to mask useless buttons 1139 $Confirm_Local = ""; 1140 1141 if ($conf_UAM[1] == 'local') 1142 { 1143 $Confirm_Local = $conf_UAM[1]; 1144 } 1145 else 1146 { 1147 $Confirm_Local = ""; 1148 } 1149 1138 1150 /* Plugin version inserted */ 1139 1151 $template->assign( 1140 1152 array( 1153 'CONFIRM_LOCAL'=> $Confirm_Local, 1141 1154 'UAM_VERSION' => $version, 1142 1155 'UAM_PATH' => UAM_PATH, -
extensions/NBC_UserAdvManager/trunk/admin/template/global.tpl
r6354 r6754 215 215 {'UAM_Confirm_Mail_false'|@translate}<br> 216 216 <input type="radio" value="true" {$UAM_CONFIRM_MAIL_TRUE} name="UAM_Confirm_Mail"> 217 {'UAM_Confirm_Mail_true'|@translate} 217 {'UAM_Confirm_Mail_true'|@translate}<br> 218 <input type="radio" value="local" {$UAM_CONFIRM_MAIL_LOCAL} name="UAM_Confirm_Mail"> 219 {'UAM_Confirm_Mail_local'|@translate} 218 220 <br><br> 219 221 </li> -
extensions/NBC_UserAdvManager/trunk/admin/template/usermanager.tpl
r6399 r6754 41 41 <th> {'Groups'|@translate} </th> 42 42 <th> {'Registration_Date'|@translate} </th> 43 {if $CONFIRM_LOCAL == ""} 43 44 <th> {'Reminder'|@translate} </th> 45 {/if} 44 46 </tr> 45 47 </thead> … … 53 55 <td>{$user.GROUPS}</td> 54 56 <td {if $user.EXPIRATION == True}style="color:red;text-align:center;"{else}style="color:lime;text-align:center;"{/if}>{$user.REGISTRATION}</td> 57 {if $CONFIRM_LOCAL == ""} 55 58 <td style="text-align:center;">{$user.REMINDER}</td> 59 {/if} 56 60 {foreach from=$user.plugin_columns item=data} 57 61 <td>{$data}</td> … … 87 91 88 92 <p> 93 {if $CONFIRM_LOCAL == "local"} 94 <input class="submit" type="submit" value="{'Delete_selected'|@translate}" name="Del_Selected"> 95 <input class="submit" type="submit" value="{'Force_Validation'|@translate}" name="Force_Validation"> 96 {else} 89 97 <input class="submit" type="submit" value="{'Delete_selected'|@translate}" name="Del_Selected"> 90 98 <input class="submit" type="submit" value="{'Mail_without_key'|@translate}" name="Mail_Without_Key"> 91 99 <input class="submit" type="submit" value="{'Mail_with_key'|@translate}" name="Mail_With_Key"> 92 100 <input class="submit" type="submit" value="{'Force_Validation'|@translate}" name="Force_Validation"> 101 {/if} 93 102 </p> 94 103 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.