• FICHEIRO: /home/termasda/termasdafelgueira.pt/html/library/Goweb/Application.php
  • LINHA:    69
  • MENSAGEM: A seccao 'production' não foi encontrada em '/home/termasda/termasdafelgueira.pt/html/config_grandehoteldafelgueira:80.ini'
  •  60.      *
  •  61.      * @param   Goweb_Config  $config  Objecto do tipo Goweb_Config
  •  62.      * @return  Goweb_Config
  •  63.      * Martelado
  •  64.      */
  •  65.     public function initConfig($config = null) {
  •  66.         if ($config && $config instanceof Goweb_Config) {
  •  67.             $this->_config = $config;
  •  68.         }else if ($config && is_string($config)) {           
  •  69.             $this->_config = new Goweb_Config(Goweb_Config_Ini::load(ROOT_PATH.'/' . $config, 'production'), true);       
  •  70.         } else {
  •  71.             // carrega as configuracoes de producao
  •  72.             $this->_config = new Goweb_Config(Goweb_Config_Ini::load(ROOT_PATH.'/config.ini', 'production'), true);
  •  73.         }
  •  74.        
  •  75.         // regista o objecto config no registry
  •  76.         Goweb::register('config', $this->_config);
  •  77.         return $this->_config;
  •  78.     }
  •  79.

  • FICHEIRO: /home/termasda/termasdafelgueira.pt/html/index.php
  • LINHA:    43
  •  34. $dominio = str_replace(array('www.', 'http://', 'https://', '.org', '.com', '.pt', '.biz', '.goweb', '.go'), "",strtolower($_SERVER['HTTP_HOST']));
  •  35. if (trim($dominio)){
  •  36.     $config_name = 'config_' . $dominio . ".ini";
  •  37. }
  •  38. //goweb::dump($config_name);
  •  39. if ($dominio == 'grandehotel-caldasdafelgueira') {
  •  40.     header('Location: http://www.grandehoteldafelgueira.pt');
  •  41. }
  •  42.
  •  43. $config = $application->initConfig($config_name);
  •  44.
  •  45.
  •  46.
  •  47. #$application = new Goweb_Application();
  •  48. #$config = $application->initConfig();
  •  49. $application->initTimezone();
  •  50. $application->initDatabase();
  •  51. $application->initPainel();
  •  52. $application->initSession('_FRONT', true);
  •  53. $request = $application->initRequest();