Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Nov 16, 2008 2:24 pm Reply with quote

In the user info block (block-User_Info.php) $prefix is used instead of $user_prefix.

Change line 250 of /blocks/block-User_Info.php:
Code:
$sql = 'SELECT username, user_regdate, user_email, user_website FROM '.$prefix.'_users where user_regdate IN (\''.date('M d, Y',time()).'\', \''.date('M d, Y',time()-86400).'\') order by user_regdate DESC, username';

To this:
Code:
$sql = 'SELECT username, user_regdate, user_email, user_website FROM '.$user_prefix.'_users where user_regdate IN (\''.date('M d, Y',time()).'\', \''.date('M d, Y',time()-86400).'\') order by user_regdate DESC, username';
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 17, 2008 8:01 am Reply with quote

This was changed a few month's ago but somehow got overwritten. Thanks for the catch!
 
View user's profile Send private message
Palbin







PostPosted: Mon Nov 17, 2008 8:30 am Reply with quote

FYI There are some other ones. I just haven't had time to track them down yet. I think they might be in the shoutbox addon, but not sure.
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Nov 17, 2008 9:45 am Reply with quote

Did global search on a distribution.

It's in the upgrade script (oops) and also in

/includes/nukeSEO/content/Forums.php

Also as Palbin reported in that block. I am not seeing them in the addons. I am searching on $prefix.'_users.
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Mon Nov 17, 2008 10:02 am Reply with quote

You will also need to search on $prefix."_users
 
fkelly







PostPosted: Mon Nov 17, 2008 10:15 am Reply with quote

No hits on that. $prefix."_users I mean.
 
Raven







PostPosted: Mon Nov 17, 2008 10:54 am Reply with quote

The only others I found were 7 in the rndb_upgrade.php file. All have been corrected and SVN'd
 
Palbin







PostPosted: Mon Nov 17, 2008 11:13 am Reply with quote

[\RavenNuke_v2.30.00\AddOnFiles\Shout_Box\public_html\blocks\block-Shout_Box.php]
Line 463 :
Code:
$sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";

[\RavenNuke_v2.30.00\AddOnFiles\Shout_Box\public_html\modules\Shout_Box\admin\index.php]
Line 190 :
Code:
$sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";

[\RavenNuke_v2.30.00\AddOnFiles\Shout_Box\public_html\modules\Shout_Box\index.php]
Line 88 :
Code:
$sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";

Line 763 :
Code:
$sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";
 
Raven







PostPosted: Mon Nov 17, 2008 11:19 am Reply with quote

Interesting. Then there may be more. My regular expression didn't catch that and it should have <grrr>. guess It needs a tune up ROTFL. Thanks. I'll get that corrected ASAP.
 
Raven







PostPosted: Mon Nov 17, 2008 11:56 am Reply with quote

I think I just found 75 more. I'm verifying now.
 
Raven







PostPosted: Mon Nov 17, 2008 12:07 pm Reply with quote

Yep. I'm correcting them now.
 
Raven







PostPosted: Mon Nov 17, 2008 12:31 pm Reply with quote

I've committed all the ones I found. There are still a few in the RNYA folder but I accidentally closed them before I corrected them Laughing. I will clean the rest up when I get back.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©