##################################################################### # YOU MUST EDIT THE FOLLOWING VARIABLES: ##################################################################### # Your domain name WITHOUT the "www." NO TRAILING SLASHES ("/") # Just the actual domain name: "yourdomain.com" $domain = "YOURDOMAIN.com"; # The relative path to your users directory, ex: # if your users directory is installed in yourdomain.com/users you # should enter only $userdir = "user"; $userdir = "users"; # The default page that the visitors should be redirected to if # they don't request a subdomain or they request a non-existing # subdomain. This page should be your main index page. You can # simply rename your existing index.html file to main.html This # index.php file must be the default file that users are first # directed on your site, so you must remove any other index.html or # index.xxx file that may conflict. The main.html page should be # located in your document root:"http://yourdomain.com/main.html" $default_page = "main.html"; # Do you want to use frames? $use_frames = "yes"; ##################################################################### # CONFIGURATION COMPLETE... DO NOT EDIT ANYTHING BELOW HERE ##################################################################### $sub = $HTTP_HOST; $sub = eregi_replace("\.".$domain, "", $sub); $sub = eregi_replace("www\.", "", $sub); $sub = strtolower($sub); if (is_dir("$DOCUMENT_ROOT/$userdir/$sub")) { if ($use_frames == "yes") { echo "