PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   5.13 - Users with the same IP not counted(NOT A BUG) (http://www.photopost.com/forum/photopost-pro-bug-reports/114901-5-13-users-same-ip-not-counted-not-bug.html)

Sebbb July 17th, 2005 05:46 AM

5.13 - Users with the same IP not counted(NOT A BUG)
 
Not really a bug in the sense it prevents the program from working, but the "ip_online" table uses MysQL "UPDATE"s based on the primary key "ipaddr" (IP address) in function update_whoonline (vb3.php in my case)

This as the side effect to "hide" different users surfing with the same IP (intranet, universities, or... me testing my website with 2 browsers).

There should be a real "unique key" not based on the sole IP.

You can do this this way :
1) DROP the primary key based on "ipaddr".
2) ALTER TABLE pp_iponline ADD PRIMARY KEY (userid,ipaddr)

Sebbb July 17th, 2005 05:56 AM

I also think this piece of code

Code:

Content visible to verified customers only.
in pp-inc.php

Should actually be part of vb3.php's procedure "update_whoonline" as it's only used once. The "600" should be a control panel option imho, as this "session timeout" can be changed in Vbulletin .

Finally, ipaddr is defined as a varchar(75), not sure why (might be a reason for that), but an IP cannot be bigger than XXX.YYY.ZZZ.WWW (15 chars). Okay it's a detail :)

Just a couple of suggestions.

Chuck S July 21st, 2005 01:32 PM

This is not a bug and the code is fine in pp-inc.php as whether we run it there or in the function it does not matter.

If you call update_whosoonline the code in that function or in pp-inc.php does the same and in fact the reason it is in pp-inc.php so we are not placing the code in 15 different integration files which would be lengthy ;)


All times are GMT -5. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97