// Connect to DB$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK : false);// We do not need this any longer, unset for safety purposesunset($dbpasswd);$res = explode(' ', mysql_stat($db->db_connect_id));/*Array( [0] => Uptime: 1598 [1] => Threads: 3 [2] => Questions: 4764 [3] => Slow queries: 0 [4] => Opens: 1515 [5] => Flush tables: 1 [6] => Open tables: 4 [7] => Queries per second avg: 2.981)*/preg_match("/([0-9.]+)/i", $res['1'], $count_connect);if ($count_connect < 27){ die('Many connections please reload.');}