Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro
Author Message
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Mon Dec 13, 2004 8:17 pm Reply with quote

I made my own security block and it worked great up untill 7.0....now i can't see the graphic on the home login...
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=\"account-new_user.html\">"._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=\"account.html\" 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 .="&nbsp;<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?

_________________
DaRk-DuDe 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Dec 13, 2004 9:02 pm Reply with quote

Since it was working and now it's not, that's a pretty good indication of a space or blank line after the closing ?> tag in some included file. Inspect all the recent files you have editted (config, language, etc) to make sure they do not have the extra line. See also [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
dark-dude







PostPosted: Tue Dec 14, 2004 11:24 am Reply with quote

well only thing i did was add theblock. I haven't edited anything...
 
dark-dude







PostPosted: Thu Dec 16, 2004 8:47 pm Reply with quote

Where can I send the block code for you to look and see whats wrong with it? i will add it here http://www.dark-dude.net/downloads/block-dduserinfo.zip
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©