miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Specific miniBB Support Forums / Specific /  
 

Why IP in vthread has been lost?

 
Author Martin_cze
Guest
#1 · Posted: 17 Aug 2011 20:26Reply Quote
File bb_func_vthread.php, line 239: $cols[4]='';
It means, that poster_ip cannot be used in parseMessage() function. Why? Any reason?
I ask, because won't make any fatal mistake. This line looks useless and that's suspicious:-)

Author Paul
Lead Lead Developer
#2 · Posted: 17 Aug 2011 20:58Reply Quote
This value can be used in parseMessage() for sure (as $GLOBALS['cols'][4]); but make sure you are logged as admin or moderator to see this value, and most probably you need to put the proper condition in parseMessage() as well.

In bb_func_vthread.php, follow if then else condition which specifies this value. It appears untouched only in one place.

Author Martin_cze
Guest
#3 · Posted: 17 Aug 2011 22:51Reply Quote
Yes, I know that I can use $GLOBALS['cols'][4] in parseMessage() as admin or moderator, but I want to use poster_ip as internal value to determine some specific behaviour - the same for each registered member. So question is, NULL value is set for non admin and non moderators because of safety? If I delete line 239, no following problems are obvious?

Author Paul
Lead Lead Developer
#4 · Posted: 17 Aug 2011 23:12Reply Quote
Yes, it's (obviously) nulled because of safety.
Try to comment this line and let us know the results :) I don't suppose obvious problems at the moment because of that.

Author Martin_cze
Guest
#5 · Posted: 17 Aug 2011 23:21Reply Quote
I tried and it looked OK with my setting.

Specific miniBB Support Forums / Specific /
 Why IP in vthread has been lost?
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.