Esempio n. 1
0
<?php

require_once 'includes/site.inc.php';
require_once '../radmin/automacusers.php';
echo $_GET['callback'] . '(' . automacuser(true) . ')';
Esempio n. 2
0
 */
if (!isset($_GET['res'])) {
    // Redirect to prelogin
    header("Location: http://{$lanIP}:3990/prelogin");
}
// Already been through prelogin
/*$jsloginlink = "http://$lanIP/grase/uam/mini?$query";
$nojsloginlink = $_GET['loginurl'];*/
require_once '../radmin/automacusers.php';
if (@$_GET['automac']) {
    // TODO only if this is enabled? (Although the function will do that
    // anyway) so maybe only show the link if this is enabled?
    //
    // TODO need to ensure we have a challenge otherwise we need a fresh one,
    // maybe if we AJAX the call so we always have a challenge?
    automacuser();
    exit;
}
switch ($res) {
    case 'already':
        //if ($userurl) header("Location: $userurl");
        // Fall through to welcome page?
        if ($nojs) {
            $smarty->display('loggedin.tpl');
            exit;
        }
        break;
    case 'failed':
        // Login failed? Show error and display login again
        $reply = array("Login Failed");
        if ($_GET['reply'] != '') {