| Code: |
// Info for guests (users who didn't log in)
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
}
$content .= "<img src=\"images/DDUser/group-4.gif\" height=\"14\" width=\"17\"> "._DD_GUEST." <b>$uname</b>\n<hr>";
$content .= "<br><img src=\"images/DDUser/arrow.gif\" height=\"9\" width=\"9\"> <a href=\"modules.php?name=Your_Account&op=new_user\">"._DD_UMBREG."</a>\n";
$content .= "<br><img src=\"images/DDUser/arrow.gif\" height=\"9\" width=\"9\"> <a href=\"modules.php?name=Your_Account&op=pass_lost\">"._DD_UMBLOST."</a><br><br>\n";
$content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
$content .="<table border=\"0\"><tr><td>\n";
$content .=""._DD_NICKNAME."</td></tr>\n";
$content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"><CENTER></td></tr>\n";
$content .="<tr><td>"._DD_PASSWORD."</td></tr>\n";
$content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
$content .="<tr><td colspan='2'>"._DD_SECURITYCODE." <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._DD_SECURITYCODE."' title='"._DD_SECURITYCODE."'></td></tr>\n";
$content .="<tr><td colspan='2'>"._DD_TYPESECCODE." <input type=\"text\" NAME=\"gfx_check\" SIZE=\"12\" MAXLENGTH=\"10\"></td></tr>\n";
$content .="<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
}
$content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
$content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
$content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
$content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
$content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
$content .=" <input type=\"submit\" value=\""._LOGIN."\"></form>\n";
}
// Info for users who logged in AND Guests |
thats what I have now and always worked. Rest of the graphics work throughout the page....any ideas?