File phpbbinfo.php in PhpBBSessionManager
<?php /*************************************************************************** * phpbbinfo.php * ------------------- * begin : October 14, 2004 * copyright : (C) 2004 Christopher Sexton * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ if (isset($_GET['query'])) { $phpbb_root_path = urldecode($_GET['query']); echo "Setting phpbb_root_path to: '" . $phpbb_root_path . "'<br>"; define('IN_PHPBB', true); include($phpbb_root_path.'extension.inc'); include($phpbb_root_path.'common.'.$phpEx); include($phpbb_root_path.'config.'.$phpEx); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>phpBB Info</title> </head> <body> <?php echo "<br><br>/* Config Block */<br>"; echo "<br>define (\"SESSIONS_TABLE\", '" . SESSIONS_TABLE . "');"; echo "<br>define (\"USERS_TABLE\", '" . USERS_TABLE . "');"; echo "<br>define (\"BANLIST_TABLE\", '" . BANLIST_TABLE . "');"; echo "<br>define (\"USER_GROUP_TABLE\", '" . USER_GROUP_TABLE . "');"; echo "<br>define (\"GROUPS_TABLE\", '" . GROUPS_TABLE . "');"; echo "<br>define (\"ANONYMOUS\", '" . ANONYMOUS . "');"; echo "<br>"; echo "<br>\$phpbb_cookiename = '" . $board_config['cookie_name'] ."';"; echo "<br>\$phpbb_cookiepath = '" . $board_config['cookie_path'] ."';"; echo "<br>\$phpbb_cookiedomain = '" . $board_config['cookie_domain'] ."';"; echo "<br>\$phpbb_cookiesecure = '" . $board_config['cookie_secure'] ."';"; echo "<br>\$phpbb_session_length = '" . $board_config['session_length'] ."';"; echo "<br>\$phpbb_page_id = 0;"; echo "<br>"; echo "<br>\$phpbb_dbhost = '" . $dbhost ."';"; echo "<br>\$phpbb_dbuser = '" . $dbuser ."';"; echo "<br>\$phpbb_dbpass = '" . $dbpasswd ."';"; echo "<br>\$phpbb_dbname = '" . $dbname ."';"; echo "<br>"; echo "<br>/* End Config Block */"; } else { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>phpBB Info</title> </head> <body> <h2>Enter the full path to your phpBB2 forum</h2> ex. <i>/home/username/hostname.com/phpbb2/</i> <form action="phpbbinfo.php" method="get" name="Search" target="_self"> <input name="query" type="text" value="/home/username/hostname.com/phpbb2/"> <input name="submit" value="Submit" type="Submit"> </form> <?php } ?> </body> </html>
