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)
code
2
error
mysql_connect(): Connection refused
file
/home/ibmp/domains/ibmp.tbs.tu.ac.th/public_html/application/core/MY_Router.php
line
66
4
Array ( [segments] => Array ( [0] => news [1] => detail [2] => 228 ) [ext] => .php [routes] => [module] => news [directory] => detail [controller] => 228 [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/news/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)
hostname
localhost
username
ibmp_ibmp
password
1bmpd6pa5s
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/Router.php [ 51 ] » MY_Router->locate(arguments)
segments
Array ( [0] => news [1] => detail [2] => 228 )
46 public function _validate_request($segments) { 47 48 if (count($segments) == 0) return $segments; 49 50 /* locate module controller */ 51 if ($located = $this->locate($segments)) return $located; 52 53 /* use a default 404_override controller */ 54 if (isset($this->routes['404_override']) AND $this->routes['404_override']) { 55 $segments = explode('/', $this->routes['404_override']); 56 if ($located = $this->locate($segments)) return $located;
-
FCPATH/system/core/Router.php [ 227 ] » MX_Router->_validate_request(arguments)
segments
Array ( [0] => news [1] => detail [2] => 228 )
222 * @param bool 223 * @return void 224 */ 225 function _set_request($segments = array()) 226 { 227 $segments = $this->_validate_request($segments); 228 229 if (count($segments) == 0) 230 { 231 return $this->_set_default_controller(); 232 }
-
FCPATH/system/core/Router.php [ 395 ] » CI_Router->_set_request(arguments)
segments
Array ( [0] => news [1] => detail [2] => 228 )
390 } 391 } 392 393 // If we got this far it means we didn't encounter a 394 // matching route so we'll set the site default route 395 $this->_set_request($this->uri->segments); 396 } 397 398 // -------------------------------------------------------------------- 399 400 /**
-
FCPATH/system/core/Router.php [ 170 ] » CI_Router->_parse_routes()
165 166 // Compile the segments into an array 167 $this->uri->_explode_segments(); 168 169 // Parse any custom routing that may exist 170 $this->_parse_routes(); 171 172 // Re-index the segment array so that it starts with 1 rather than 0 173 $this->uri->_reindex_segments(); 174 } 175
-
FCPATH/system/core/CodeIgniter.php [ 173 ] » CI_Router->_set_routing()
168 * ------------------------------------------------------ 169 * Instantiate the routing class and set the routing 170 * ------------------------------------------------------ 171 */ 172 $RTR =& load_class('Router', 'core'); 173 $RTR->_set_routing(); 174 175 // Set any routing overrides that may exist in the main index file 176 if (isset($routing)) 177 { 178 $RTR->_set_overrides($routing);
-
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 */