Hmmm, still not working. I had taken that littke > out before as well...
This is the full code.
Quote:
<?php
// enter your URL below. It's the URL relative to your host:
chdir("/home/ac2hq/www/forum/");
require('./global.php');
if ($bbuserinfo[userid]>=1)
{
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");
$pmlink="http://www.ac2hq.com/forum/private.php?s=".$session[sessionhash];
}
if ($bbuserinfo[userid]>=1)
{
echo "Welcome ".$bbuserinfo['username']. ". You have ".$unreadpm['messages']. " Private Message." . '<br>';
echo "<href=".$pmlink.">your PMs</a>";
?>
<?php
}
else
{
?>
<form action="http://www.ac2hq.com/forum/member.php" method="post">
<font size="2">Please Login: </font>
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="2">
<input type="password" class="bginput" name="password" size="2">
<input type="submit" class="bginput" value="Login!">
</form>
<?php
}
chdir("/home/ac2hq/www/");
?>
|