mirror of
				https://github.com/Mibew/design.git
				synced 2025-10-31 10:31:05 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /*
 | |
|  * Copyright 2005-2013 the original author or authors.
 | |
|  *
 | |
|  * Licensed under the Apache License, Version 2.0 (the "License");
 | |
|  * you may not use this file except in compliance with the License.
 | |
|  * You may obtain a copy of the License at
 | |
|  *
 | |
|  *     http://www.apache.org/licenses/LICENSE-2.0
 | |
|  *
 | |
|  * Unless required by applicable law or agreed to in writing, software
 | |
|  * distributed under the License is distributed on an "AS IS" BASIS,
 | |
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|  * See the License for the specific language governing permissions and
 | |
|  * limitations under the License.
 | |
|  */
 | |
| 
 | |
| require_once('../libs/init.php');
 | |
| require_once('../libs/operator.php');
 | |
| require_once('../libs/groups.php');
 | |
| 
 | |
| $operator = check_login();
 | |
| force_password($operator);
 | |
| 
 | |
| $status = isset($_GET['away']) ? 1 : 0;
 | |
| 
 | |
| notify_operator_alive($operator['operatorid'], $status);
 | |
| 
 | |
| $_SESSION[$session_prefix."operatorgroups"] = get_operator_groupslist($operator['operatorid']);
 | |
| 
 | |
| $page = array();
 | |
| $page['havemenu'] = isset($_GET['nomenu']) ? "0" : "1";
 | |
| $page['showpopup'] = Settings::get('enablepopupnotification') == '1' ? "1" : "0";
 | |
| $page['frequency'] = Settings::get('updatefrequency_operator');
 | |
| $page['istatus'] = $status;
 | |
| $page['showonline'] = Settings::get('showonlineoperators') == '1' ? "1" : "0";
 | |
| $page['showvisitors'] = Settings::get('enabletracking') == '1' ? "1" : "0";
 | |
| $page['agentId'] = $operator['operatorid'];
 | |
| $page['geoLink'] = Settings::get('geolink');
 | |
| $page['geoWindowParams'] = Settings::get('geolinkparams');
 | |
| 
 | |
| // Load dialogs style options
 | |
| $style_config = get_dialogs_style_config(getchatstyle());
 | |
| $page['chatStyles.chatWindowParams'] = $style_config['chat']['window_params'];
 | |
| 
 | |
| // Load core style options
 | |
| $style_config = get_core_style_config();
 | |
| $page['coreStyles.threadTag'] = $style_config['users']['thread_tag'];
 | |
| $page['coreStyles.visitorTag'] = $style_config['users']['visitor_tag'];
 | |
| $page['coreStyles.trackedUserWindowParams'] = $style_config['tracked']['user_window_params'];
 | |
| $page['coreStyles.trackedVisitorWindowParams'] = $style_config['tracked']['visitor_window_params'];
 | |
| $page['coreStyles.inviteWindowParams'] = $style_config['invitation']['window_params'];
 | |
| $page['coreStyles.banWindowParams'] = $style_config['ban']['window_params'];
 | |
| 
 | |
| prepare_menu($operator);
 | |
| start_html_output();
 | |
| require('../view/pending_users.php');
 | |
| ?>
 |