From 601c6601e608136f45d7fd15420d436572ca9e91 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Thu, 11 Dec 2008 22:13:56 +0000 Subject: [PATCH] add redirect git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@235 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/libs/common.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/libs/common.php b/site/libs/common.php index 0b56a7f4..41fac9cc 100644 --- a/site/libs/common.php +++ b/site/libs/common.php @@ -5,6 +5,11 @@ $default_locale = "en"; $siteroot = "/site"; $site_encoding = "utf-8"; +if(preg_match("/live-im/", $_SERVER['HTTP_HOST'])) { + header("Location: http://openwebim.org"); + exit; +} + function myiconv($in_enc, $out_enc, $string) { if($in_enc == $out_enc ) { return $string;