From 17532c2d922fc6e5227279149ce64ae46da24d10 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Tue, 1 Sep 2009 08:50:11 +0000 Subject: [PATCH] fix image= parameter for hostgator git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@653 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/button.php | 2 +- src/messenger/webim/operator/getcode.php | 4 ++-- src/messenger/webim/view/gen_button.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/messenger/webim/button.php b/src/messenger/webim/button.php index 4636506d..3b81d29f 100644 --- a/src/messenger/webim/button.php +++ b/src/messenger/webim/button.php @@ -35,7 +35,7 @@ if($referer && isset($_SESSION['threadid'])) { mysql_close($link); } -$image = verifyparam("image","/^\w+$/", "webim"); +$image = verifyparam(isset($_GET['image']) ? "image" : "i", "/^\w+$/", "webim"); $lang = verifyparam(isset($_GET['language']) ? "language" : "lang", "/^[\w-]{2,5}$/", ""); if(!$lang || !locale_exists($lang)) { $lang = $current_locale; diff --git a/src/messenger/webim/operator/getcode.php b/src/messenger/webim/operator/getcode.php index 34f22e8f..476bff03 100644 --- a/src/messenger/webim/operator/getcode.php +++ b/src/messenger/webim/operator/getcode.php @@ -45,7 +45,7 @@ foreach($allLocales as $curr) { } } -$image = verifyparam("image","/^\w+$/", "webim"); +$image = verifyparam(isset($_GET['image']) ? "image" : "i", "/^\w+$/", "webim"); $image_locales = $imageLocales[$image]; $stylelist = array("" => getlocal("page.preview.style_default")); @@ -87,7 +87,7 @@ if( !$lang || !in_array($lang,$image_locales) ) $file = "../locales/${lang}/button/${image}_on.gif"; $size = get_gifimage_size($file); -$imagehref = get_app_location($showhost,$forcesecure)."/button.php?image=$image&lang=$lang"; +$imagehref = get_app_location($showhost,$forcesecure)."/button.php?i=$image&lang=$lang"; if($groupid) { $imagehref .= "&group=$groupid"; } diff --git a/src/messenger/webim/view/gen_button.php b/src/messenger/webim/view/gen_button.php index e4deaeb9..440f92ba 100644 --- a/src/messenger/webim/view/gen_button.php +++ b/src/messenger/webim/view/gen_button.php @@ -47,7 +47,7 @@ require_once('inc_errors.php');
- +