Menu="UserList" Title="Edit User" Tag="user" ---

.


"; $icon = ""; $zxcvbn = file_exists('/boot/config/plugins/dynamix/zxcvbn.js'); $file = "/boot/config/ssh/root/authorized_keys"; $text = preg_replace(["/\r\n/","/\r/"],"\n", @file_get_contents($file) ?: ''); ?>
)"> _(User name)_: : _(Description)_: : :user_edit_description_help: _(Custom image)_: : _(Drag-n-drop a PNG file or click the image at the left)_ :user_edit_custom_image_help:   _(Delete)_ :


_(Password)_: : :user_password_help: _(Retype password)_: :   :
_(SSH authorized keys)_: :   :
"; echo ""._('Share').""._('Security').""._('User Access').""; echo ""; foreach ($shares as $share => $data) { if ($sec[$share]['export']=='-') continue; $security = $sec[$share]['security']; $read = in_array($name,explode(',',$sec[$share]['readList'])); $write = in_array($name,explode(',',$sec[$share]['writeList'])); switch ($security) { case 'public' : $access = $rw; break; case 'secure' : $access = $write ? $rw : $ro; break; case 'private': $access = $write ? $rw : ($read ? $ro : $no); break;} echo "$share"._(ucfirst($security)).""; } echo ""; echo ""; ?>   :