mirror of
https://github.com/Mibew/tray.git
synced 2025-01-23 18:40:33 +03:00
30 lines
919 B
PHP
30 lines
919 B
PHP
|
<?php
|
||
|
/*
|
||
|
* This file is part of Web Instant Messenger project.
|
||
|
*
|
||
|
* Copyright (c) 2005-2007 Internet Services Ltd.
|
||
|
* All rights reserved. This program and the accompanying materials
|
||
|
* are made available under the terms of the Eclipse Public License v1.0
|
||
|
* which accompanies this distribution, and is available at
|
||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||
|
*
|
||
|
* Contributors:
|
||
|
* Evgeny Gryaznov - initial API and implementation
|
||
|
*/
|
||
|
|
||
|
require('libs/common.php');
|
||
|
require('libs/operator.php');
|
||
|
|
||
|
$lang = verifyparam("lang", "/^\w\w$/", "");
|
||
|
if( !$lang || !in_array($lang,$available_locales) )
|
||
|
$lang = $current_locale;
|
||
|
|
||
|
$image_postfix = has_online_operators() ? "on" : "off";
|
||
|
$name = "images/webim/webim_${lang}_${image_postfix}.gif";
|
||
|
|
||
|
$fp = fopen($name, 'rb') or die("no image");
|
||
|
header("Content-Type: image/gif");
|
||
|
header("Content-Length: ".filesize($name));
|
||
|
fpassthru($fp);
|
||
|
exit;
|
||
|
?>
|