Advertisement
Guest User

sites.php

a guest
Dec 19th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2.  
  3. if (strpos($_ENV["HTTP_HOST"], 'site1', 0) === 0) {
  4.   $sites[$_ENV["HTTP_HOST"]] = 'site1';
  5. }
  6.  
  7. if (strpos($_ENV["HTTP_HOST"], 'site2', 0) === 0) {
  8.   $sites[$_ENV["HTTP_HOST"]] = 'site2';
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement