-- Document example php Created on Jun 12 2008 36 44 PM Author tek --

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--
Document : example.php
Created on : Jun 12, 2008, 3:36:44 PM
Author : tek
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php include("login.php") ?>
<html>
<head>
<title>PHP Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<hr>
<p align="left">
<?php
print_r($_COOKIE);
if (get_auth_username()){
echo "Now you are logined as " . get_auth_username();
echo ' <a href="http://127.0.0.1/test/NetBeansProjects/PhpProject1/login.php?get=logout">Logout</a>';
}else{
echo "Guest. Please login in";
}
?>
</p>
<hr>
</body>
</html>