mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@519 c66351dc-e62f-0410-b875-e3a5c0b9693f
		
			
				
	
	
		
			32 lines
		
	
	
		
			998 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			998 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /*
 | |
|  * This file is part of Mibew Messenger project.
 | |
|  *
 | |
|  * Copyright (c) 2005-2009 Mibew Messenger Community
 | |
|  * 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_once('libs/common.php');
 | |
| require_once('libs/operator.php');
 | |
| 
 | |
| $image = verifyparam("image","/^\w+$/", "webim");
 | |
| $lang = verifyparam(isset($_GET['language']) ? "language" : "lang", "/^[\w-]{2,5}$/", "");
 | |
| if(!$lang || !locale_exists($lang)) {
 | |
| 	$lang = $current_locale;
 | |
| }
 | |
| 
 | |
| $image_postfix = has_online_operators() ? "on" : "off";
 | |
| $filename = "locales/${lang}/button/${image}_${image_postfix}.gif";
 | |
| 
 | |
| $fp = fopen($filename, 'rb') or die("no image");
 | |
| header("Content-Type: image/gif");
 | |
| header("Content-Length: ".filesize($filename));
 | |
| fpassthru($fp);
 | |
| exit;
 | |
| ?>
 |