Advertisement
roniewill

erro na linha 7

Jul 16th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <?php
  2. // SET DOCUMENT_ROOT
  3. define('DOC_ROOT_REAL', $_SERVER['DOCUMENT_ROOT']);
  4. if (strpos($_SERVER['DOCUMENT_ROOT'], '/internacional/public') === false)
  5.     $_SERVER['DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'].'/internacional/public';
  6.  
  7. require_once $_SERVER['DOCUMENT_ROOT'].'/../../config_init_env.php';
  8.  
  9. if (APPLICATION_ENV == 'testing' && $_COOKIE['omb100_env_testing'] != 'b483d605972be69f11a6') {
  10.     header("HTTP/1.1 301 Moved Permanently");
  11.     header("Location: http://www.omb100.com".$_SERVER['REQUEST_URI']);
  12.     exit;
  13. }
  14.  
  15. // Define path to application directory
  16. defined('APPLICATION_PATH')
  17. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  18.  
  19. // Ensure library/ is on include_path
  20. set_include_path(implode(PATH_SEPARATOR, array(
  21.     realpath(APPLICATION_PATH . '/../library'),
  22.     get_include_path(),
  23. )));
  24.  
  25. define('BLOG_RESPONSIVE', APPLICATION_ENV == 'development' ? true : false);
  26.  
  27. /*
  28.  * Redireciona o dominio antigo funildevendasmmn.com para o omb100.com
  29.  */
  30. if ($_SERVER['SERVER_NAME'] == 'office.funildevendasmmn.com' || $_SERVER['SERVER_NAME'] == 'www.office.funildevendasmmn.com') {
  31.     $url_redir_funil = 'http://www.omb100.com';
  32.     if ($_SERVER['REQUEST_URI'] == '/br/redir_omb100') {
  33.         if (!empty($_COOKIE['IdPaiOffice']))
  34.             $url_redir_funil .= '/br/share/'.$_COOKIE['IdPaiOffice'];
  35.        
  36.     } else {
  37.         $url_redir_funil .= $_SERVER['REQUEST_URI']; //'/br/office';
  38.     }
  39.    
  40.     header("HTTP/1.1 301 Moved Permanently");
  41.     header("Location: ".$url_redir_funil);
  42.     exit;
  43. }
  44.  
  45. if (get_magic_quotes_gpc()) {
  46.     function stripslashes_gpc(&$value) {
  47.         $value = stripslashes($value);
  48.     }
  49.     array_walk_recursive($_GET, 'stripslashes_gpc');
  50.     array_walk_recursive($_POST, 'stripslashes_gpc');
  51.     array_walk_recursive($_COOKIE, 'stripslashes_gpc');
  52.     array_walk_recursive($_REQUEST, 'stripslashes_gpc');
  53. }
  54.  
  55. /** Zend_Application */
  56. require_once 'Zend/Application.php';
  57.  
  58. $confPATH = APPLICATION_PATH . '/configs/application.ini';
  59.  
  60. // Create application, bootstrap, and run
  61. $application = new Zend_Application(APPLICATION_ENV, $confPATH);
  62. $application->bootstrap()->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement