Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // SET DOCUMENT_ROOT
- define('DOC_ROOT_REAL', $_SERVER['DOCUMENT_ROOT']);
- if (strpos($_SERVER['DOCUMENT_ROOT'], '/internacional/public') === false)
- $_SERVER['DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'].'/internacional/public';
- require_once $_SERVER['DOCUMENT_ROOT'].'/../../config_init_env.php';
- if (APPLICATION_ENV == 'testing' && $_COOKIE['omb100_env_testing'] != 'b483d605972be69f11a6') {
- header("HTTP/1.1 301 Moved Permanently");
- header("Location: http://www.omb100.com".$_SERVER['REQUEST_URI']);
- exit;
- }
- // Define path to application directory
- defined('APPLICATION_PATH')
- || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
- // Ensure library/ is on include_path
- set_include_path(implode(PATH_SEPARATOR, array(
- realpath(APPLICATION_PATH . '/../library'),
- get_include_path(),
- )));
- define('BLOG_RESPONSIVE', APPLICATION_ENV == 'development' ? true : false);
- /*
- * Redireciona o dominio antigo funildevendasmmn.com para o omb100.com
- */
- if ($_SERVER['SERVER_NAME'] == 'office.funildevendasmmn.com' || $_SERVER['SERVER_NAME'] == 'www.office.funildevendasmmn.com') {
- $url_redir_funil = 'http://www.omb100.com';
- if ($_SERVER['REQUEST_URI'] == '/br/redir_omb100') {
- if (!empty($_COOKIE['IdPaiOffice']))
- $url_redir_funil .= '/br/share/'.$_COOKIE['IdPaiOffice'];
- } else {
- $url_redir_funil .= $_SERVER['REQUEST_URI']; //'/br/office';
- }
- header("HTTP/1.1 301 Moved Permanently");
- header("Location: ".$url_redir_funil);
- exit;
- }
- if (get_magic_quotes_gpc()) {
- function stripslashes_gpc(&$value) {
- $value = stripslashes($value);
- }
- array_walk_recursive($_GET, 'stripslashes_gpc');
- array_walk_recursive($_POST, 'stripslashes_gpc');
- array_walk_recursive($_COOKIE, 'stripslashes_gpc');
- array_walk_recursive($_REQUEST, 'stripslashes_gpc');
- }
- /** Zend_Application */
- require_once 'Zend/Application.php';
- $confPATH = APPLICATION_PATH . '/configs/application.ini';
- // Create application, bootstrap, and run
- $application = new Zend_Application(APPLICATION_ENV, $confPATH);
- $application->bootstrap()->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement