function form_newusr_post($raw,$data) { checkAccess(); if ($data['f1']!=$data['f2']) return LocalError(WGSL("perr","Password error")); $x = WGCreateUser($data['login'],$data['f1'],$data['group']); if ($x) { WGToast(WGSL("nus","User created")); updateUserList(); WGSetActivity('main'); } else LocalError(WGSL("nusc","User not created")); }
function WGNotify($text) { WGToast($text,false,-2,2); }
function form_change_post($dta) { $thm = $dta['lang']; if (WGChangeTheme($thm)) WGToast(WGSL('newTheme',"Theme changed")); WGSetActivity('main'); }