I'm trying to convert my files to PHP but there is something wrong with the this code. Try to register an account, then login and go the the 2 links below, you will notice that from the index.shtml you the system managed to detect that you are login but from index.php you are still not login??
This file call the header from header.shtml
http://www.certifyexpress.com/microsoft/index.shtml
Quote:
<tr>
<td width="100%"><font face="verdana" size="2"> <!--#include virtual="/forum/homelogin.php" -->, <b>Total Registered Members : <font color="#FF3300"><!--#include virtual="/forum/registered.php" --> </b></font></font>
<br>
</td>
|
This file call the header from header.php
http://www.certifyexpress.com/micros...kpro/index.php
Quote:
echo "<td width=100%><font face=verdana size=2> ";
include("http://www.certifyexpress.com/forum/homelogin.php");
echo " <b>Total Registered Members : <font color=#FF3300>";
include ("http://www.certifyexpress.com/forum/registered.php");
echo " </b></font></font>";
echo "<br>";
echo "</td>";
|
Below are the codes for homelogin.php
PHP Code:
require("global.php");
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo "<font face=\"verdana\" size=\"2\"> <b>Welcome back, <font color=\"#FF3300\">$username</font> !</b> [<a href=\"http://www.certifyexpress.com/forum/member.php?s=&action=logout\">Logout</a>]</font>";
} else {
?>
<font face="verdana" size="2">You are not login. <b><a href="http://www.certifyexpress.com/forum/pageregister.php?action=login">Login</a></b> or <b><a href="http://www.certifyexpress.com/forum/register.php">Register</a></b></font>
<?
}
?>