Learn your phpBB version number |
Description: Quick way to get the phpBB version number. |
Author: who_cares |
Date: Sat Nov 12, 2005 8:53 pm |
Type: Info |
Keywords: version, version number, number, help |
Category: Miscellanea |
|
If your forum is hacked or just plain broken and someone in the support forum asks you what version of phpBB you have you can run this code in the phpBB folder to get the version number.
Instructions:
Save the code below as phpbbversion.php
Then upload it to your forum's phpBB directory.
Now go to youdomain.com/phpbb_directory/phpbbversion.php (this is just an example URL).
Code: | <?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
// Only administrators here, please
//
if( $userdata['user_level'] != ADMIN )
{
die('Hacking attempt!');
}
$sql = "SELECT *
FROM " . CONFIG_TABLE . "
WHERE config_name = 'version'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'SQL error', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
die('You are running phpbb version: <b>2.' . $row['config_value'] . '</b>');
}
?> |
Delete the file once you are done with it. |
|
|