pty($board_config[$config_name])) { if($add_config) { $this->_add_config($tpl, $tpl === $this->tpl ? true : false); } return $this->style_config; } $this->style_config = $this->_unserialize($board_config[$config_name]); if($tpl === $this->tpl) { foreach($this->style_config as $var => $value) { $this->vars['TPL_CFG_' . strtoupper($var)] = $value; } } return $this->style_config; } function get_config($tpl = '', $add_config = true) { if(empty($tpl)) { if(empty($this->tpl)) { return array(); } $this->_get_config($this->tpl, $add_config); return $this->style_config; } else { $old_config = $this->style_config; $result = $this->_get_config($tpl, $add_config); $this->style_config = $old_config; return $result; } } /* * Split/merge config data. * Using this function instead of (un)serialize because it generates smaller string so it can be stored in phpbb_config */ function _serialize($array) { if(!is_array($array)) { return ''; } $str = ''; foreach($array as $var => $value) { if($str) { $str .= '|'; } $str .= $var . '=' . str_replace('|', '', $value); } return $str; } function _unserialize($str) { $array = array(); $list = explode('|', $str); for($i=0; $i_tpldata[$name.'.']) && count($tpl->_tpldata[$name.'.']) > 0); } ?>
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'vikingre_mas'@'srv-hg2.netsons.net' (using password: YES) in /home/vikingre/public_html/Forum/phpBB2/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/vikingre/public_html/Forum/phpBB2/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/vikingre/public_html/Forum/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database