You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
529 B

<?php
include_once("config.php");
function safe_session_start($flag = 0) {
session_start();
$uname = $_SESSION['uname'];
if($flag == 1) {
if ( $uname == null || $_SERVER['HTTP_REFERER'] == null) {
//// if ( $uname == null) {
// session_destroy();
echo "<script language=\"JavaScript\">
// parent.document.location.href=\"../../index.php?task=logout\";
// parent.document.location.href=\"/avw/navy/go/index.php?task=logout\";
</script>";
}
}
}
$ip = $config['avw_ip'];
?>