<?
// Copy this file to phpBB directory (where is config.php file)

// Author: Predrag Damnjanovic     Email: peca@mycity.co.yu     Homepage: http://www.mycity.co.yu/

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);

// if you want that only admin can open this script
// if (isset($userdata['user_id'])==FALSE || intval($userdata['user_id'])==-1 || intval($userdata['user_level'])!=1) exit;

echo "<html><body bgcolor=\"#E5E5E5\">List of admin accounts :<br>";

	$result = mysql_query ("SELECT username from phpbb_users where user_level=1;");
	if (mysql_errno()>0) die (mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
		echo "<b>".$row['username']."</b><br/>\n";
	mysql_free_result($result);

echo "</body></html>";
?>