View Single Post
Old 02-24-2012, 02:13 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
On that index.php, put
<?php echo $_SERVER['HTTP_HOST']; ?>

That will print out the name of the domain you are on.
You can then do something like:
<img src='/images/<?php echo $_SERVER['HTTP_HOST']; ?>.jpg'>
for instance to pull a custom logo for that site, or grab <?php echo $_SERVER['HTTP_HOST']; ?>.css to load a different template, or whatever.

That's a really simplified version of the idea but you should be able to elaborate from there.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote