array( name => "subdomain", url => "http://sd.example.com", framed => true), friendlyname = Anything. name = The subdomain you want redirected. url = The url it should go to. framed = true / flase If true it will load the url in a frameset (keeping the address in the address bar), if false it will just redirect them. isstats = Optional, true / false. If true, it will replace [domain] in the url with the correct domain, eg going to stats. customer.com will redirect to: http://stats.host.com/script.php?u=customer.com&a=true or: http://stats.host.com/cgi-bin/awstats.pl?config=customer.com etc... title = Optional. The title of the frameset. $missingtext = The html that is displayed if a subdomain is entered that is not in the list. */ $redirects = array( "sql" => array( name => "sql", title => "ASPnet :: SQL Enterprise Manager", url => "http://sql.aspnet.hu", framed => false), "mysql" => array( name => "mysql", title => "ASPnet :: MySQL ADMIN", url => "http://mysql.aspnet.hu", framed => false), "mail" => array( name => "mail", title => "WebMail", url => "http://mail.aspnet.hu", framed => false), "webmail" => array( name => "webmail", title => "WebMail", url => "http://mail.aspnet.hu", framed => false), "stats" => array( name => "stats", title => "ASPnet :: Statisztikák", isstats => true, url => "http://statistic.aspnet.hu/stats.vs?site=[domain]", framed => tru), "awstats" => array( name => "awstats", title => "ASPnet :: Statisztikák", isstats => true, url => "http://awstats.aspnet.hu/cgi-bin/awstats.pl?config=[domain]", framed => true), "ssl" => array( name => "ssl", title => "ASPnet :: SSL", isstats => true, url => "https://alpha.aspnet.hu/[domain]/ssl", framed => false), "admin" => array( name => "admin", title => "ASPnet :: Web Admin Felület", url => "http://admin.aspnet.hu", framed => false) ); $missingtext = "

Tisztelt látogató ! A kért aldomain nem elérhető. http://www.aspnet.hu

"; /* ignore below */ $host = strtok($_SERVER['HTTP_HOST'], '.'); $domain = strtok('\0'); foreach ($redirects as $redirect) { strchr($redirect['name'], '.'); } foreach($redirects as $redirect) { if (strcasecmp($redirect['name'], $host) == 0) { if (!$redirect['framed']) { if ( $redirect['isstats'] == true) { $redirect['url'] = str_replace("[domain]", $domain, $redirect['url']); } $url = sprintf("Location: %s", $redirect['url']); header($url); exit(0); } else { if ( $redirect['isstats'] == true) { $redirect['url'] = str_replace("[domain]", $domain, $redirect['url']); } $url = $redirect['url']; $useframes = $redirect['framed']; $title = !empty($redirect['title']) ? $redirect['title'] : $host; } } } if ($useframes && !empty($url)) { ?>

Kért oldal :  nem található

A hiba oka lehet:


- A kért domain jelenleg még nincs beállítva.
- Hibás hivatkozási útvonal.
- A szolgáltatást időlegesen felfüggesztettük.