function pawusers_input_radio_print($attributes) { $items = $attributes["items"]; $items = explode("\n", $items); unset($attributes["items"]); $check = $attributes["checked"]; unset($attributes["checked"]); if (!empty($attributes["value"])) { $check = $attributes["value"]; } $print = array(); $i = 0; foreach ($items as $item) { $item = explode("#", $item); if (count($item) >= 2) { $key = $item[0]; unset($item[0]); $item = implode("#", $item); } else { $key = $item[0]; $item = $item[0]; } $print[] = '<label><input type="radio" id="' . $attributes["id"] . '-' . $key . '" name="' . $attributes["name"] . '" value="' . $key . '" ' . paw_check($key, $check, false) . ' /> ' . $item . '</label>'; $i++; } echo implode("<br />", $print); return; }
echo __("The main language of the user."); ?> </td> </tr> <tr> <td class="label"><label><?php echo __("User Roles"); ?> </label></td> <td class="field"> <?php $active = $form["roles"]; $roles = $pawUsers->permissions->getRoles(NULL, false); foreach ($roles as $role) { $print[] = '<label><input type="checkbox" name="user[roles][]" value="' . $role["name"] . '" ' . paw_check($role["name"], $active, false) . ' /> ' . $role["label"] . '</label>'; } echo implode("<br />", $print); ?> </td> <td class="help"><?php echo __("The role(s) of the new user."); ?> </td> </tr> </table> <p class="buttons"> <input type="hidden" name="user[token]" value="<?php echo $token; ?> " />
<input type="radio" name="blacklist[settings][username]" value="contain" <?php if (isset($settings["username"])) { paw_check("contain", $settings["username"]); } else { echo "checked"; } ?> /> <?php echo __("If the username contains this word."); ?> </label><br /> <label> <input type="radio" name="blacklist[settings][username]" value="consist" <?php if (isset($settings["username"])) { paw_check("consist", $settings["username"]); } ?> /> <?php echo __("If the username consists only of this word."); ?> </label> </span> <span class="blacklist-settings-email" style="display: none;"> <span style="font-style:italic;"><?php echo __("No settings available!"); ?> </span> </span>
<label><input type="checkbox" name="security_password[]" value="lower" <?php paw_check("lower", $config["security_password"]); ?> /> <?php echo __("Lowercase Characters"); ?> </label><br /> <label><input type="checkbox" name="security_password[]" value="numeric" <?php paw_check("numeric", $config["security_password"]); ?> /> <?php echo __("Numeric Characters"); ?> </label><br /> <label><input type="checkbox" name="security_password[]" value="special" <?php paw_check("special", $config["security_password"]); ?> /> <?php echo __("Special Characters"); ?> </label> </td> <td class="help"><?php echo __("Choose the requirements for a Password."); ?> </td> </tr> <tr> <td class="label"><label for="security_blowfish"><?php echo __("Blowfish Encryption");