Codice: |
global $prefix, $db, $admin, $language, $currentlang; |
Codice: |
global $user, $cookie, $user_prefix, $prefix, $db, $admin, $language, $currentlang; |
Codice: |
/* Now we make the Modules block with the correspondent links */ |
Codice: |
// Inizio script avviso nuovi messaggi privati (by Sniffer)
cookiedecode($user);
if (isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; }
if (is_user($user))
{
$uname = $cookie[1];
}
if (is_user($user)) {
if (is_active("Private_Messages")) {
$sql_pm = "SELECT user_id FROM ".$user_prefix."_users WHERE username='$uname'";
$query_pm = $db->sql_query($sql_pm);
list($user_id) = $db->sql_fetchrow($query_pm);
$uid = intval($user_id);
$nuovopm = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM ".$prefix."_bbprivmsgs WHERE privmsgs_to_userid = '$uid' AND (privmsgs_type = '5' OR privmsgs_type = '1')"));
if ($nuovopm > 0)
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Private_Messages\"><img src=\"images/pm.gif\" border=\"0\"></a><br />";
}
}
// Fine script |