Esempio n. 1
0
function form_access_post($dta) {
	global $OUTJSON;
	global $CMD;
	global $WEBGUI;
	global $APPL;
	  
	$usr = WGSessionUser();
	if ($usr===false) FatalError("Access denied");
	if ($dta['f2']!=$dta['f3']) {
		WGSetActivity("error");
	        return;
		}
		
	$x = WGPasswd($usr['name'],$dta['f1'],$dta['f2']);
	
	if ($x==false) {
	        WGSetActivity("error");
	        return;
		}
		
	WGSetActivity("accessok");
	}               
Esempio n. 2
0
function EWGLogon($login,$pass) {
	$x = WGLogonUser($login,$pass);
	if ($x===false) return false;
	$x = WGSession();
	if (!$x) return false;
	WGKillAll();
	$usr = WGSessionUser();
	EWGLoadProfile();
	return $usr;
	}	
Esempio n. 3
0
<?
$usr = WGSessionUser();
if ($usr===false) FatalError("Access denied");
WGSetTitle(WGSL("chg","Change password").": {$usr['name']}");
?><div class="WGWActivity" data-wgid="access">
<br><img src="<%<APPPATH>%>/icon.png" alt=""><br>Loading...<br>
</div>
<div class="WGWActivity" data-wgid="accessok">
<br><img src="<%<APPPATH>%>/icon.png" alt=""><br>
<%<chgd_h>%>.<br>
<a href="#_close()" class="WGButton" data-wgpox="-8,-8">Ok</a>
</div>
<div class="WGWActivity SysAppLogonErr" data-wgid="error">
<br><img src="<%<APPPATH>%>/icon.png" alt=""><br>
<%<error_h>%>:<br>
<%<perr_h>%>.
<a href="#main" class="WGButton" data-wgpox="-8,-8"><%<retry_h>%></a>
</div>