APPPATH/core/MY_Router.php [ 66 ]
61 show_error('Cannot load database active group.');
62 }
63
64 $database = $db[$active_group];
65
66 $link = mysql_connect( $database['hostname'], $database['username'], $database['password'] ) or die( 'Can\'t connect to db.' );
67 $db_selected = mysql_select_db( $database['database'] ) or die( 'Can\'t select db.' );
68 mysql_query( 'SET character_set_results='.$database['char_set'] );
69 mysql_query( 'SET character_set_client='.$database['char_set'] );
70 mysql_query( 'SET character_set_connection='.$database['char_set'] );
71 $result = mysql_query( 'select * from '.$database['dbprefix'].'modules where module_system_name = \''.$module.'\' and module_enable = 1');
-
{PHP internal call} » MY_Exceptions::error_handler(arguments)
code2
errormysql_connect(): Too many connections
file/home/ibmp/domains/ibmp.tbs.tu.ac.th/public_html/application/core/MY_Router.php
line66
4Array ( [segments] => Array ( [0] => banner ) [ext] => .php [routes] => [module] => banner [directory] => [controller] => [location] => /home/ibmp/domains/ibmp.tbs.tu.ac.th/public_html/modules/ [offset] => ../../modules/ [source] => /home/ibmp/domains/ibmp.tbs.tu.ac.th/public_html/modules/banner/controllers/ [active_group] => default [active_record] => 1 [db] => Array ( [default] => Array ( [hostname] => localhost [username] => ibmp_ibmp [password] => 1bmpd6pa5s [database] => ibmp_ibmpdb [dbdriver] => mysqli [dbprefix] => ibmp_ [pconnect] => 1 [db_debug] => 1 [cache_on] => [cachedir] => application/cache/ [char_set] => utf8 [dbcollat] => utf8_general_ci [swap_pre] => [autoinit] => 1 [stricton] => ) ) [database] => Array ( [hostname] => localhost [username] => ibmp_ibmp [password] => 1bmpd6pa5s [database] => ibmp_ibmpdb [dbdriver] => mysqli [dbprefix] => ibmp_ [pconnect] => 1 [db_debug] => 1 [cache_on] => [cachedir] => application/cache/ [char_set] => utf8 [dbcollat] => utf8_general_ci [swap_pre] => [autoinit] => 1 [stricton] => ) ) -
APPPATH/core/MY_Router.php [ 66 ] » mysql_connect(arguments)
hostnamelocalhost
usernameibmp_ibmp
password1bmpd6pa5s
61 show_error('Cannot load database active group.'); 62 } 63 64 $database = $db[$active_group]; 65 66 $link = mysql_connect( $database['hostname'], $database['username'], $database['password'] ) or die( 'Can\'t connect to db.' ); 67 $db_selected = mysql_select_db( $database['database'] ) or die( 'Can\'t select db.' ); 68 mysql_query( 'SET character_set_results='.$database['char_set'] ); 69 mysql_query( 'SET character_set_client='.$database['char_set'] ); 70 mysql_query( 'SET character_set_connection='.$database['char_set'] ); 71 $result = mysql_query( 'select * from '.$database['dbprefix'].'modules where module_system_name = \''.$module.'\' and module_enable = 1'); -
APPPATH/third_party/MX/Modules.php [ 91 ] » MY_Router->locate(arguments)
segmentsArray ( [0] => banner )86 87 /* create or return an existing controller from the registry */ 88 if ( ! isset(self::$registry[$alias])) { 89 90 /* find the controller */ 91 list($class) = CI::$APP->router->locate(explode('/', $module)); 92 93 /* controller cannot be located */ 94 if (empty($class)) return; 95 96 /* set the module directory */ -
FCPATH/modules/news/controllers/news.php [ 71 ] » Modules::load(arguments)
modulebanner
66 67 $output['current_group'] = $group_id; 68 $output['data_info'] = $this->news_model->get_news_category_detail($output['current_group'], $this->curent_lang_id, 'front'); 69 $output['category_name'] = !empty($output['data_info'][0]->subject) ? $output['data_info'][0]->subject : ''; 70 $output['list_news'] = $this->news_model->get_news_list('front', $this->curent_lang_id, $output['current_group'], 6); 71 $output['banner_render'] = modules::load('banner')->banner_all_render(6); 72 $output['pagination'] = ''; 73 if (!empty($output['list_news']) && $output['list_news']['total'] > 0) { 74 $output['pagination'] = $this->pagination->create_links(); 75 } 76 $breadcrumb = array($this->index_menu => site_url('home'), $this->lang->line('front_news') => site_url('news'), $output['category_name'] => '#'); -
FCPATH/modules/news/controllers/news.php [ 53 ] » news->index(arguments)
group_id2
48 49 if (empty($get_id) || $get_id == 0) { 50 redirect('not_found'); 51 } else { 52 // $method is parame 1 of method index 53 $this->index($get_id); 54 } 55 } 56 } 57 58 // _remap -
FCPATH/system/core/CodeIgniter.php [ 325 ] » news->_remap(arguments)
method2
paramsArray ( )
320 * ------------------------------------------------------ 321 */ 322 // Is there a "remap" function? If so, we call it instead 323 if (method_exists($CI, '_remap')) 324 { 325 $CI->_remap($method, array_slice($URI->rsegments, 2)); 326 } 327 else 328 { 329 // is_callable() returns TRUE on some versions of PHP 5 for private and protected 330 // methods, so we'll use this workaround for consistent behavior -
FCPATH/index.php [ 222 ] » require_once(arguments)
0/home/ibmp/domains/ibmp.tbs.tu.ac.th/public_html/system/core/CodeIgniter.php
217 * 218 * And away we go... 219 * 220 */ 221 222 require_once BASEPATH.'core/CodeIgniter.php'; 223 224 /* End of file index.php */ 225 /* Location: ./index.php */