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/aboutus/controllers/aboutus.php [ 62 ] » Modules::load(arguments)
modulebanner
57 $group_id = array(); 58 59 foreach ($output['list_aboutus'] as $rs) { 60 $group_id[] = $rs->id; 61 } 62 $output['banner_render'] = modules::load('banner')->banner_all_render(7); 63 $output['first_group'] = !empty($aboutus_id_onec) ? $aboutus_id_onec : reset($group_id); 64 $output['data_info'] = $this->aboutus_model->get_aboutus_detail($output['first_group'], $this->curent_lang_id); 65 $subject = isset($output['data_info']->subject) && !empty($output['data_info']->subject) ? $output['data_info']->subject : ''; 66 $breadcrumb = array($this->index_menu => site_url('home'), $this->main_menu_name => site_url('aboutus'), $subject => '#'); 67 $output['breadcrumb_front'] = $breadcrumb; -
FCPATH/modules/aboutus/controllers/aboutus.php [ 46 ] » aboutus->index(arguments)
aboutus_id_onec8
41 if (empty($get_id) || $get_id == 0) { 42 //show_404(); 43 redirect('error_404'); 44 } 45 // $method is parame 1 of method index 46 $this->index($get_id); 47 } 48 } 49 50 // _remap 51 -
FCPATH/system/core/CodeIgniter.php [ 325 ] » aboutus->_remap(arguments)
methodabout-tbs
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 */