Author |
Topic |
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 13:29:34
|
quote: Originally posted by Carefree
quote: Originally posted by barrynet
Thanks Carefree
I had a thought this morning. I am not forcing that the first and last names be filled in. If they are both blank I think your code would not accept the registration. Really hate to ask but would it be possible for you to add a check for blank name fields and let the registration proceed if both are blank.
cheers
Barry
I edited the code above to include blank name checking.
Thanks
I am going to try that right now.
cheers
Barry< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 19 January 2009 : 16:39:35
|
Barry,
You need to check your web server logs, to find out how they got in there. Seeing the M_DATE would allow you to know the precise time of their registration, so it's easy to use server logs to find out what's happening.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 16:44:21
|
I had a thought this morning. I am not forcing that the first and last names be filled in. If they are both blank I think your code would not accept the registration. Really hate to ask but would it be possible for you to add a check for blank name fields and let the registration proceed if both are blank.
cheers
Barry
quote:
I edited the code above to include blank name checking.
Thanks
I am going to try that right now.
cheers
Barry [/quote]
< |
Edited by - barrynet on 19 January 2009 16:59:16 |
|
|
barrynet
Starting Member
36 Posts |
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 17:00:55
|
quote: Originally posted by ruirib
Barry,
You need to check your web server logs, to find out how they got in there. Seeing the M_DATE would allow you to know the precise time of their registration, so it's easy to use server logs to find out what's happening.
Thanks Rui
I will contact my web hosting service to see if I can get them
cheers
Barry< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 January 2009 : 18:05:17
|
quote: Originally posted by barrynet
Sorry Carefree it did not make any difference. Same first and last registered without any problem.
http://www.nwsca.com/scripts/gpz_forum_2005/register2.txt
image of registration information http://www.nwsca.com/scripts/gpz_forum_2005/barry8_details.jpg
Ahhh - NOW I see what you meant. I thought you wanted to prevent people registering with the same names as previous registrations (so that User1 named Frank Smith couldn't re-register as User 519 named Frank Smith again. That's what I wrote the mod to preclude.
What you want is even simpler - you want to make sure that Bob Bob doesn't register.
< |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 19:40:18
|
quote: Originally posted by Carefree
quote: Originally posted by barrynet
Sorry Carefree it did not make any difference. Same first and last registered without any problem.
http://www.nwsca.com/scripts/gpz_forum_2005/register2.txt
image of registration information http://www.nwsca.com/scripts/gpz_forum_2005/barry8_details.jpg
Ahhh - NOW I see what you meant. I thought you wanted to prevent people registering with the same names as previous registrations (so that User1 named Frank Smith couldn't re-register as User 519 named Frank Smith again. That's what I wrote the mod to preclude.
What you want is even simpler - you want to make sure that Bob Bob doesn't register.
That's what I wanted, thanks. Its another example of how people read things differently I will try this later tonight.
Could I just do this for a country check as well
< |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 19:54:20
|
Can anyone suggest why I see a different member list if I log on as administrator versus a regular user?
cheer
Barry< |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 January 2009 : 19:57:48
|
Albania would need to be in quotation marks.< |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 20:37:28
|
if M_LASTNAME=M_FIRSTNAME then 'duplicate names in registration Response.Clear Response.Redirect "Register.asp" Response.End end if
OK that works except if the first and surname fields are blank it kicks back to registration. Since I do not know yet how to make first and surname required I need a blank check (blanks are OK) so it does not kick out.
Once again thanks for your time.
cheers
Barry< |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 20:43:40
|
quote: Originally posted by Shaggy
Ah, fair enough, missed that bit in your original post (a weekend of insomnia can have that effect on a guy! ) If they're not going through register.asp then you need to investigate exactly how they're managing it; there may be a vulnerability in one of your scripts, not necessarily in your forum, though, that's open to SQL injections. A good place to start would be your log files; next time it happens have a look for anything out of the ordinary.
Missed this post - Thanks, I am trying to get my web site logs
cheers Barry< |
Edited by - barrynet on 19 January 2009 20:44:06 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 January 2009 : 22:49:31
|
quote: OK that works except if the first and surname fields are blank it kicks back to registration. Since I do not know yet how to make first and surname required I need a blank check (blanks are OK) so it does not kick out.
< |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 23:18:21
|
quote: Originally posted by Carefree
Albania would need to be in quotation marks.
if M_COUNTRY="Albania" then 'bad country in registration Response.Clear Response.Redirect "Register.asp" Response.End end if
This code is totally ignored. Would it have anything to do with the selection being done from a drop down menu. < |
|
|
barrynet
Starting Member
36 Posts |
Posted - 19 January 2009 : 23:49:05
|
Your new code is also ignored
' ################################## following added to check names ' ################################## change from carefree v3 if M_LASTNAME=M_FIRSTNAME and (M_LASTNAME<>"" or M_FIRSTNAME<>"") then 'duplicate names in registration Response.Clear Response.Redirect "Register.asp" Response.End end if ' ################################## end of add
This is getting frustrating. Perhaps its just the flu giving my old an extra workout.
I will look carefully tomorrow to ensure everything is where it should be in the code and the script dir.
cheers
Barry< |
|
|
Topic |
|