Location: PHPKode > projects > proManager > proman/www/user_profile.inc
<?php
  if (!$user_id) {

    // User not loged in yet!
    // so it shouldn't be here
    // let's send him to login screen

    // maybe he has cookies disabled in his browser

    Header ("Location: index.php");
    exit;

  } else {

    if (GetUserInfo($user_id,$name,$can_add_user,$active,$d,$d,$d))
    {
      $name = StripSlashes($name);
      GetNodeLeafFromTree($user_id,$node,$leaf);
      // how many subusers does this user have?
      GetSlaves($node,$leaf,$slaves);

      if (!$active) Header ("Location: log_out.php");

    }else{
            // User has an id which doesn't exist,
            // he probably got fired :) or is trying
            // some cookie hacking attempt.
            // Let's kill that cookie and send him back
            // to login screen!
      Header ("Location: log_out.php");
      exit;
    }

  }

?>
Return current item: proManager