For those that would just want the corrected code update, here are the basic changes (functional changes) (compared to version 1.4.3), I am leaving out the additional words portion of the update at this time.
In YOUR_ADMIN/user_tracking.php
find:
Code:
$listed = 0;
if ($results)
while (($ut = each($user_tracking)) && !$user_tracking->EOF /*($listed++ < CONFIG_USER_TRACKING_SESSION_LIMIT)*/)
replace with (Change in red):
Code:
$listed = 0;
if ($results && is_array($user_tracking) == true)
while (($ut = each($user_tracking)) && !$user_tracking->EOF /*($listed++ < CONFIG_USER_TRACKING_SESSION_LIMIT)*/)
Find:
Code:
reset($user_tracking);
//End of v1.4.3 14 of 15
if ($results)
while (($ut = each($user_tracking)) && ($listed++ < CONFIG_USER_TRACKING_SESSION_LIMIT))
replace with (Change in red):
Code:
//End of v1.4.3 14 of 15
if ($results && is_array($user_tracking) == true) {
/* Begin v1.4.3b (Moved statement to within test) */
reset($user_tracking);
/* End v1.4.3b */
while (($ut = each($user_tracking)) && ($listed++ < CONFIG_USER_TRACKING_SESSION_LIMIT))
and
Find:
Code:
// End User Tracking - Spider Mod 6 of 7
}
Replace with (Change in red):
Code:
// End User Tracking - Spider Mod 6 of 7
}}
in \includes\functions\extra_functions\user_tracking.php
at approximately line 70 (after $page_desc asssignment) but before $db->Execute add:
Code:
/* Start - User tracking v1.4.3b modification*/
while (strpos(substr($page_desc, -1), '\\') !== false) {
$page_desc = substr($page_desc, 0, -1);
}
/* End - User tracking v1.4.3b modification*/
then after $wo_last_page_url assignment and before $db->Execute:
Code:
/* Start - User tracking v1.4.3b modification*/
while (strpos(substr($wo_last_page_url, -1), '\\') !== false) {
$wo_last_page_url = substr($wo_last_page_url, 0, -1);
}
/* End - User tracking v1.4.3b modification*/
/* Start - User tracking v1.4.3b modification*/
while (strpos(substr($referer_url, -1), '\\') !== false) {
$referer_url = substr($referer_url, 0, -1);
}
/* End - User tracking v1.4.3b modification*/
These last two changes need to be before the $db->Execute command.
No indicators have been added. This all will simply clean up the data going to be processed via SQL so that 1) a warning won't be generated when no data is present for the data reviewed, and 2) will prevent SQL injection of creating a \' situation unintentionally.
Tada done...
No, did not get to next set of features to be added, but I did see another forum where it was identified that a "Full" version was included. Might be able to keep with this single forum and upload both versions. Might need to have a discussion with the plug-in moderator(s) about how to identify that each upload should appear, but have slightly modified description to address handling the desired situation of not downloading EVERYTHING each time. (For those just catching up, there are files that are included that attempt to identify the location of a visitor; however, those portion of the files have not been updated in many years and are outdated. A change is needed to handle the newer version(s); however, I have another project on which I'm working at the moment that has a higher priority. For the curious, other tools are available to lookup the current location of an IP address. That said, maintaining a long historical list of IP addresses, may not be significantly beneficial as the IP address may be reallocated to another location in the world. Maintaining this type of list for a long period of time may require maintaining other information to associate with the date/time of that IP addresses visit.) Anyways, I digress.
Above is the corrected presentation of the code that was updated. I have submitted a rev 1.4.4 that provides the corrected code, which yes I had provided the wrong information both in a previous post and in the file(s) that were uploaded under version 1.4.3b. The issue identified in the user_tracking_config.php file was also corrected.
Good luck!!! Thanks for the helpful feedback!
Bookmarks