Beispiel #1
0
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"));
	}
Beispiel #2
0
function WGNotify($text) { WGToast($text,false,-2,2); }	
Beispiel #3
0
function form_change_post($dta) {
	$thm = $dta['lang'];
	if (WGChangeTheme($thm)) WGToast(WGSL('newTheme',"Theme changed"));  
	WGSetActivity('main');
	}