Advertisement
englishextra

regional.inc

Sep 28th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. <?php
  2. /**
  3.  * shimansky.biz, mobile-english.ru
  4.  *
  5.  * Static web site core scripts
  6.  * @package shimansky.biz
  7.  * @author Serguei Shimansky <englishextra@yandex.ru>
  8.  * @copyright Serguei Shimansky 11:28 23.07.2011
  9.  * @access public
  10.  * @version 0.1
  11.  * @link https://bitbucket.org/englishextra/shimansky.biz
  12.  * @link https://bitbucket.org/englishextra/mobile-english.ru
  13.  * @link https://github.com/englishextra/shimansky.biz.git
  14.  * @link https://github.com/englishextra/mobile-english.ru.git
  15.  */
  16.  
  17. $relpa = ($relpa0 = preg_replace("/[\/]+/", "/", $_SERVER['DOCUMENT_ROOT'] . '/')) ? $relpa0 : '';
  18.  
  19. $regional_file_path = ($server_http_host = $_SERVER['HTTP_HOST']) ? $relpa . 'inc/regional_' . str_replace('www.', '', $server_http_host) . '.inc' : '';
  20.  
  21. $pt_regional = null;
  22.  
  23. if (file_exists($regional_file_path)) {include $regional_file_path;}
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement