disabled === '1') { $auth['success'] = false; $auth['error'] = "Error: User Disabled please contact Admin"; } // if user disabled } // if we aren't in demo mode } // // If we succeeded in authenticating, create a session // if ( ($auth['success'] == 1)) { // $auth->info are the fields specified in the config file // to retrieve for each user make_local_session_only($auth); // // Not sure if it was me or php tripping out, // but naming this 'user' didn't work at all // $_SESSION['userdata'] = $auth['info']; /* Make sure they are actually trying to get to this site and don't try to redirect them back into * an admin section **/ if (strstr($_POST['referrer'], conf('web_path')) AND !strstr($_POST['referrer'],"install.php") AND !strstr($_POST['referrer'],"login.php") AND !strstr($_POST['referrer'],"update.php") AND !strstr($_POST['referrer'],"admin")) { header("Location: " . $_POST['referrer']); exit(); } // if we've got a referrer header("Location: " . conf('web_path') . "/index.php"); exit(); } // auth success $htmllang = str_replace("_","-",conf('lang')); ?> <?php echo conf('site_title'); ?>