APPPATH/core/MY_Router.php [ 87 ]
82 mysql_close( $link );
83 unset( $link, $db_selected );
84
85 }else if($database['dbdriver'] =='mysqli'){ // for mysqli
86
87 $link = mysqli_connect( $database['hostname'], $database['username'], $database['password'] ,$database['database'] ) or die( 'Can\'t connect to db.' );
88 mysqli_query($link,'SET character_set_results='.$database['char_set'] );
89 mysqli_query($link,'SET character_set_client='.$database['char_set'] );
90 mysqli_query($link,'SET character_set_connection='.$database['char_set'] );
91 $result = mysqli_query( $link,'select * from '.$database['dbprefix'].'modules where module_system_name = \''.$module.'\' and module_enable = 1');
92 if ( mysqli_num_rows($result) <= 0 ) {
-
{PHP internal call} » MY_Exceptions::error_handler(arguments)
code
2
error
mysqli_connect(): (HY000/2002): Connection refused
file
/home/cosmacare/domains/cosmacareclinic.com/public_html/application/core/MY_Router.php
line
87
4
Array ( [segments] => Array ( [0] => home ) [ext] => .php [routes] => [module] => home [directory] => [controller] => [location] => /home/cosmacare/domains/cosmacareclinic.com/public_html/modules/ [offset] => ../../modules/ [source] => /home/cosmacare/domains/cosmacareclinic.com/public_html/modules/home/controllers/ [active_group] => default [active_record] => 1 [db] => Array ( [default] => Array ( [hostname] => localhost [username] => cosmacare_biz [password] => lqGXUQ0X [database] => cosmacare_biz [dbdriver] => mysqli [dbprefix] => cmc_ [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] => cosmacare_biz [password] => lqGXUQ0X [database] => cosmacare_biz [dbdriver] => mysqli [dbprefix] => cmc_ [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 [ 87 ] » mysqli_connect(arguments)
host
localhost
user
cosmacare_biz
password
lqGXUQ0X
database
cosmacare_biz
82 mysql_close( $link ); 83 unset( $link, $db_selected ); 84 85 }else if($database['dbdriver'] =='mysqli'){ // for mysqli 86 87 $link = mysqli_connect( $database['hostname'], $database['username'], $database['password'] ,$database['database'] ) or die( 'Can\'t connect to db.' ); 88 mysqli_query($link,'SET character_set_results='.$database['char_set'] ); 89 mysqli_query($link,'SET character_set_client='.$database['char_set'] ); 90 mysqli_query($link,'SET character_set_connection='.$database['char_set'] ); 91 $result = mysqli_query( $link,'select * from '.$database['dbprefix'].'modules where module_system_name = \''.$module.'\' and module_enable = 1'); 92 if ( mysqli_num_rows($result) <= 0 ) {
-
APPPATH/third_party/MX/Router.php [ 51 ] » MY_Router->locate(arguments)
segments
Array ( [0] => home )
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] => home )
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] => home )
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/cosmacare/domains/cosmacareclinic.com/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 */