| 
      
          
            
  function connect() {
    if(!$db = @mysql_pconnect("localhost","root","janganmasuk")){
      print("Cannot Connect to the DB!\n");
      return 0;
    } else {
      mysql_select_db("iix", $db);
      return 1;
    }
  }
  function check_user($user, $password) {
    if(connect()) {
      $password = md5($password); 
      $sql = "select * from user_auth where user_name = '$user' and passwd = '$password'";
      $result = mysql_query($sql);
      if (mysql_num_rows($result) == 1) {
       // setcookie("user", $user, time()+5);
       // setcookie("password", $password, time()+5); 
        return 1;
      } else {
        ?>
        Sorry, you are not authorized!
        
        return 0;
      }
    }
  }
  /***** MAIN *****/
  if(!isset($user) or !check_user($user, $password)) {
    ?>
    You must log in to view this page!
    
    
  } else {
    ?>
IIX JK1
 
 
echo "
    | NO | 
    NAMA ISP | 
    AS NUMBER | 
    ONLINE | 
    TELEPHONE | 
    FAX | 
    ADMIN | 
    EMAIL | 
   ";
?>
  |    |