Fuel\Core\PhpErrorException [ Notice ]:
Constant EMAIL_HOST already defined
59 } 60 61 public static function getEmailConfig() { 62 $c = DB::query("SELECT valor FROM config WHERE clave = 'email_host' OR clave = 'email_password' OR clave = 'email_port' OR clave = 'email_starttls' OR clave = 'email_timeout' OR clave = 'email_username'")->execute(); 63 64 define("EMAIL_HOST", @$c[0]["valor"]); 65 define("EMAIL_PASSWORD", @$c[1]["valor"]); 66 define("EMAIL_PORT", @$c[2]["valor"]); 67 define("EMAIL_STARTTLS", @$c[3]["valor"]); 68 define("EMAIL_TIMEOUT", @$c[4]["valor"]); 69 define("EMAIL_USERNAME", @$c[5]["valor"]);
107 include COREPATH.'classes/errorhandler.php'; 108 class_alias('\Fuel\Core\Errorhandler', 'Errorhandler'); 109 class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException'); 110 } 111 112 return \Errorhandler::error_handler($severity, $message, $filepath, $line); 113}); 114 115function setup_autoloader() 116{ 117 \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
59 } 60 61 public static function getEmailConfig() { 62 $c = DB::query("SELECT valor FROM config WHERE clave = 'email_host' OR clave = 'email_password' OR clave = 'email_port' OR clave = 'email_starttls' OR clave = 'email_timeout' OR clave = 'email_username'")->execute(); 63 64 define("EMAIL_HOST", @$c[0]["valor"]); 65 define("EMAIL_PASSWORD", @$c[1]["valor"]); 66 define("EMAIL_PORT", @$c[2]["valor"]); 67 define("EMAIL_STARTTLS", @$c[3]["valor"]); 68 define("EMAIL_TIMEOUT", @$c[4]["valor"]); 69 define("EMAIL_USERNAME", @$c[5]["valor"]);
71 } 72 73 $tienda = $_SERVER['REQUEST_SCHEME'] .'://'. str_replace($subdominio[0].".", "", $_SERVER['HTTP_HOST']) ; 74 Session::set("tienda", $tienda); 75 76 \Model::getEmailConfig(); 77 \Model::getGeneralConfig(); 78 Session::set("logo",\Model::getConfig("general_logo")); 79 define("RFCFORM", \Model::getConfig("rfcform")); 80 $lang = \Model::getLanguage(""); 81 $txt = array();
476 } 477 478 // fire any controller started events 479 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 480 481 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 482 483 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 484 485 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 486
140 { 141 $response = Request::forge()->execute()->response(); 142 } 143 elseif ($route) 144 { 145 $response = Request::forge($route, false)->execute(array($e))->response(); 146 } 147 elseif ($request) 148 { 149 $response = Request::forge($request)->execute(array($e))->response(); 150 }
187{ 188 $response = $routerequest('_403_', $e); 189} 190catch (HttpNotFoundException $e) 191{ 192 $response = $routerequest('_404_', $e); 193} 194catch (HttpServerErrorException $e) 195{ 196 $response = $routerequest('_500_', $e); 197}