Author |
Message |
phoenix-cms
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Aug 05, 2005
Posts: 139
|
Posted:
Thu Aug 03, 2006 5:39 am |
|
hi guys there should be some fixes in sentinal so i post them here if you want to add this to next release as you may of missed it Bob.
Open: admin/modules/nukesentinel/ABPrintTracked.php
FIND:
Code:$result = $db->sql_query("SELECT `user_id`, `username`, `ip_addr`, `hostname`, MAX(`date`), COUNT(*), MIN(`tid`), `c2c` FROM `".$prefix."_nsnst_tracked_ips` $modfilter GROUP BY 2,3,4 ORDER BY `ip_addr`");
|
REPLACE WITH:
Code:$result = $db->sql_query("SELECT `user_id`, `username`, `ip_addr`, `ip_long`, MAX(`date`), COUNT(*), MIN(`tid`), `c2c` FROM `".$prefix."_nsnst_tracked_ips` $modfilter GROUP BY 2,3,4 ORDER BY `ip_addr`");
|
FIND:
Code:while(list($userid,$username,$ipaddr,$hostnm,$lastview,$hits,$tid,$c2c) = $db->sql_fetchrow($result)){
|
REPLACE WITH:
Code:while(list($userid,$username,$ipaddr,$ip_long,$lastview,$hits,$tid,$c2c) = $db->sql_fetchrow($result)){
|
FIND:
Code:echo "<td align='center'>$hostnm</td>";
|
REPLACE WITH:
Code:echo "<td align='center'>$ip_long</td>";
|
Open: admin/modules/nukesentinel/ABPrintTrackedPages.php
FIND:
Code:$result = $db->sql_query("SELECT `hostname` FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' AND `ip_addr`='$ip_addr'");
|
REPLACE WITH:
Code:$result = $db->sql_query("SELECT `ip_long` FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' AND `ip_addr`='$ip_addr'");
|
FIND:
Code:list($hostname) = $db->sql_fetchrow($result);
|
REPLACE WITH
Code:list($ip_long) = $db->sql_fetchrow($result);
|
FIND:
Code:echo "<center><b>$ip_addr ($hostname)</b></center><br>";
|
REPLACE WITH:
Code:echo "<center><b>$ip_addr ($ip_long)</b></center><br>";
|
Open: admin/modules/nukesentinel/ABTrackedPages.php
FIND:
Code:$result = $db->sql_query("SELECT `hostname` FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' AND `ip_addr`='$ip_addr'");
|
REPLACEWITH:
Code:$result = $db->sql_query("SELECT `ip_long` FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' AND `ip_addr`='$ip_addr'");
|
FIND:
Code:list($hostname) = $db->sql_fetchrow($result);
|
REPLACE WITH:
Code:list($ip_long) = $db->sql_fetchrow($result);
|
thanks
Steve |
_________________ Evo 3.0 Developer & nukecops.com Admin
coming soon www.www.cmsrevolution.com |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
BobMarion
Former Admin in Good Standing
![](modules/Forums/images/avatars/4a8223e348325d1641ec3.png)
Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Thu Aug 03, 2006 1:06 pm |
|
Your right, I did miss them and will add the corrections to the 2.5.01 on my desktop today |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
phoenix-cms
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 04, 2006 9:03 pm |
|
raven had quick check of your update, you attached one wrong file i think,
i speak with you soon anyway i hate work
Steve |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/0cdd311a44513690aeca6.gif)
Joined: Mar 03, 2005
Posts: 94
Location: OZ
|
Posted:
Sat Aug 05, 2006 3:04 am |
|
edit the nuke_nsnst_config table and change the version_number
I do not,completely understand all so update your nuke_nsnst_ip2country tables
does all need to be done even if you have a particular country ban? |
_________________ Member Of The Windows Vista help and Support Community |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utssace
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/18fec4b5450beb2041ec2.gif)
Joined: Feb 18, 2006
Posts: 155
Location: Virginia
|
Posted:
Sat Aug 05, 2006 8:36 pm |
|
I have applied this latest fix. BUT I am unclear about how to change the version number in the table.
I browsed the nuke_nsnst_config table, but couldn't find where the version number goes. I didn't see a version field.
Also, will this change fix the occurrances of 2.5.0 on the site (ie, in NS blocks and the admin panel) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Aug 05, 2006 10:32 pm |
|
utssace,
Quote: |
I browsed the nuke_nsnst_config table, but couldn't find where the version number goes. I didn't see a version field.
|
If you are using phpMyAdmin, most likely it is only showing you the first 30 records and it is on the second page. It is there...
Quote: |
Also, will this change fix the occurrances of 2.5.0 on the site (ie, in NS blocks and the admin panel)
|
Yes. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 05, 2006 11:20 pm |
|
I guess my question wasn't worth a reply |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 05, 2006 11:31 pm |
|
nb1 wrote: | I guess my question wasn't worth a reply |
No need for the sarcasm. I missed your question.
Yes, given that 2.5.x now has a very strong reliance on the IP2C data, as we have seen in quite a few other threads, I strongly encourage everyone to keep their IP2County data up-to-date.
Bob has posted another update with 2.5.1 which should also be done. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gregexp
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/458c161744a70db912a6e.jpg)
Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sat Aug 05, 2006 11:31 pm |
|
I wouldnt say that at all.
This is just me personally, I didnt realize there was a question in there.
So heres an attempt to answer it, Updating the ip2country is always a good idea, It may undo a banning of an entire country but you now know that if you rebann the entire country, you wont be missing any ips that are located in that country so you may need to redo the banning, Its more dependant on HOW you banned the country that makes this answer so vague.
If you would please clarify as to your question.
And remember this is a support forum, people will answer to help, sometimes they cant or dont know and that just means that someone with either more time or knowledge would be better suited to answer your question, it does NOT mean your question was without merit or ,as you put it, worthy of a reply.
Sorry montego, I edited this to show we were typing at the same time. |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 05, 2006 11:52 pm |
|
Thank you very much montego
(so update your nuke_nsnst_ip2country tables
does all need to be done even if you have a particular country ban? ) was the
question darklord In case you missed it
And I refer people to this forum for help maybe my statement was a little short I don't see as well as others and have difficulties typing so sometimes Things does not come out as I intended for them to |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utssace
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 06, 2006 6:21 am |
|
Thx alot. Yep, now I know there are sometimes more than 1 page...hehe |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FireATST
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/1890b00a421a4615ecd23.jpg)
Joined: Jun 12, 2004
Posts: 654
Location: Ohio
|
Posted:
Sun Aug 06, 2006 10:00 am |
|
When I attempt to do an SQL query of Moldova.sql I receive this error message:
SQL query:
INSERT INTO `nuke_nsnst_ip2country`
VALUES ( 1449840640, 1449840895, 1150779921, 'md', 'Moldova' ) ;
MySQL said: Documentation
#1062 - Duplicate entry '1449840640-1449840895' for key 1
All the other sql's queries went just fine..... ![Question](modules/Forums/images/smiles/icon_question.gif) |
|
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
FireATST
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 06, 2006 10:03 am |
|
hummm.....I tried doing an import of the file and it worked ok then instead of a select all, copy and paste in Sql window. BTW...I use Crimson Editor as a text editor. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 06, 2006 11:25 am |
|
Crimson Editor Is is a great little tool sometimes notepad or word will add some extra chatters I think that's the reason you should use something besides those two |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FireATST
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 06, 2006 12:04 pm |
|
exactly why I use it....![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utssace
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 06, 2006 4:54 pm |
|
I didn't do the copy & paste thing....to much work
I just imported each SQL file one at a time.
I also had a blurp with the Maldova file. I just refreshed my sign-in and imported it again & it worked. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Loki
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/4acf103e48de6aa494ee4.jpg)
Joined: Oct 05, 2003
Posts: 107
Location: Illinois
|
Posted:
Mon Aug 21, 2006 6:24 pm |
|
utssace wrote: | I have applied this latest fix. BUT I am unclear about how to change the version number in the table.
I browsed the nuke_nsnst_config table, but couldn't find where the version number goes. I didn't see a version field.
Also, will this change fix the occurrances of 2.5.0 on the site (ie, in NS blocks and the admin panel) |
Run this line through phpmyadmin
UPDATE nuke_nsnst_config SET config_value ='2.5.1' where config_name='version_number'; |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|