[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/template/inc_script/frontend_init/disabled/ -> domaincheck.php (source)

   1  <?php
   2  
   3  // compare against current domain and redirect to correct if neccessary
   4  
   5  if(isset($LEVEL_ID[1])) {
   6   //check active Domain
   7   if($LEVEL_ID[1] == 1 && strpos(PHPWCMS_URL, 'mydomain1.com') === false) {
   8   
   9       headerRedirect('http://www.mydomain1.com/index.php'.returnGlobalGET_QueryString());
  10   
  11   }
  12   
  13   if($LEVEL_ID[1] == 2 && strpos(PHPWCMS_URL, 'mydomain2.com') === false) {
  14   
  15       headerRedirect('http://www.mydomain2.com/index.php'.returnGlobalGET_QueryString());
  16   
  17   }
  18  
  19  
  20  }
  21  
  22  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7