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; }
<? if (!isset($ini)) return; if (count($_POST) and $_POST['logonui']==1) { if (!$DBH) dbopen($DBH); if (WGLogonUser($_POST['a'],$_POST['b']) and WGSession()) { $WEBGUIhttpAuth=true; return; } } ?> <!doctype html> <html> <head> <meta charset="utf-8"/> <title><?php echo htmlspecialchars(@$ini['webgui']['title'], ENT_QUOTES); ?> </title> <? if (@$ini['webgui']['cookie']) echo "<script src=\"/sys/cookie.js\"></script>\n"; ?> <link rel="stylesheet" href="/sys/win.css"> <link rel="stylesheet" href="/img/style.css"> <!-- EPTO WebGui V 8.0 (C) 2015 EPTO (A) --> </head> <body>