Esempio n. 1
0
function form_access_post($raw,$dta) {
	global $WEBGUI;
	$WEBGUI['win']['data']['access']=array(
		'f1'	=>	'',
		'f2'	=>	'')
		;
		
	$login = $dta['f1'];
	$pass = $dta['f2'];
	$x = EWGLogon($login,$pass);
	
	if ($x===false) {
	        WGSetActivity('error');
	        return array(
		        'f1'	=>	'',
		        'f2'	=>	'')
			;
		}
	return array();			
	}               
Esempio n. 2
0
<?
if (!defined("EWGINCLUDE")) exit;
if (EWGLogon(@$JSON['data']['a'],@$JSON['data']['b']) and WGSession()) $OUTJSON['ok']=true; else $OUTJSON['err']="Access Denied";
?>