Author |
Message |
daemon
Worker


Joined: Jan 07, 2005
Posts: 163
|
Posted:
Mon Apr 10, 2006 2:29 am |
|
got a quick question.... in the forums footer theres {PHPBB_VERSION} which I'm assuming is pose to a call to get version number? anyway how would be the best way to call the config_value from database or the version number whichever its called? |
|
|
|
 |
VinDSL
Life Cycles Becoming CPU Cycles

Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Mon Apr 10, 2006 6:11 am |
|
Here's how I do it...
Code:$sql = "SELECT config_value FROM " . $prefix . "_bbconfig WHERE config_name = 'version'";
$result = $db->sql_query($sql);
$phpBB_Version = $db->sql_fetchrow($result);
|
|
_________________ .:: "The further in you go, the bigger it gets!" ::.
.:: 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! ::. |
|
 |
 |
daemon

|
Posted:
Mon Apr 10, 2006 10:23 am |
|
was this removed at one point or another? |
|
|
|
 |
daemon

|
Posted:
Mon Apr 10, 2006 10:43 am |
|
where are these set?, they really need updated rather than leaving the old code in there, any ideas to where {PHPBB_VERSION} and {ADMIN_LINK} are actually at?
i'm looking and dont see em  |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Apr 10, 2006 12:24 pm |
|
The version was removed from the main Forums page, it is now in the Forums admin panel
It is assigned in modules/Forums/page_footer_admin.php |
_________________ - 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! |
|
|
 |
daemon

|
Posted:
Mon Apr 10, 2006 1:40 pm |
|
ah ha..... can i still display it on the old page? {PHPBB_VERSION} is obvisouly not the right way. |
|
|
|
 |
evaders99

|
Posted:
Mon Apr 10, 2006 10:09 pm |
|
Well, you'd have to re-add the code back into the page_tail.php - time to go back a couple of phpBB versions |
|
|
|
 |
daemon

|
Posted:
Mon Apr 10, 2006 10:19 pm |
|
ah i said forget it, hehe isnt worth all that  |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Apr 11, 2006 5:53 am |
|
Yeah, it was moved so that hackers wouldn't know the exact version of phpBB you were using... you know, anything to help slow them down a little... |
_________________ 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! |
|
|
 |
|