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.30.01 RN All Other Issues
Author Message
bluerace
Regular
Regular



Joined: Apr 04, 2009
Posts: 85
Location: Behind you

PostPosted: Thu May 07, 2009 11:16 pm Reply with quote

Hi, all.
I would like to hear some good suggestions to detect RN 2.3.x because phpBB3ToNuke pack is about to reach the end line. However, installing it to normal (stupid, well not smart at least) phpnuke works with no flaws. And, our team just began to test phpBB3ToNuke with FiSubIce theme-style and had to make a decision on the following issue:

To give differential values to Raven's Nuke, we need a clue to find whether or not RN 2.3.xx is installed in user's back-end.

Let me know what the best way will be.

_________________
Make stupid PHP-NUKE Smart, that's my favorite chore in Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu May 07, 2009 11:35 pm Reply with quote

In rnconfig.php is defined
Code:


define('RAVENNUKE_VERSION', '023001');


What, you wanted something more complicated? Smile

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
bluerace







PostPosted: Thu May 07, 2009 11:55 pm Reply with quote

Oh no, evader99.
That's so so so simple.
You know, the simple one is the best one.
 
fkelly
Former Moderator in Good Standing



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

PostPosted: Fri May 08, 2009 7:33 am Reply with quote

Or, you can modify this code from the standard upgrade script that comes with RN:

Code:
$sql = "SELECT Version_Num FROM `${prefix}_config` WHERE 1";

$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if (!$result) {
   die ('<br /> An error occurred reading your configuration table; please check this since the program cannot continue without a value here.<br />');
}
$config_value = $row['Version_Num'];


It might be easier than reading the rnconfig file.
 
View user's profile Send private message Visit poster's website
eldorado
Involved
Involved



Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Fri May 08, 2009 4:14 pm Reply with quote

test if the rnconfig.php exists , that might be enough ?
 
View user's profile Send private message Visit poster's website MSN Messenger
bluerace







PostPosted: Fri May 08, 2009 5:46 pm Reply with quote

yes. i thought those all before when i looked at the new 2.3.x rn.
But, i would like to double-check if there exists a better way.

Your inputs are all so helpful, at any events.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other 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 ©