2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2013-03-07 01:22:53 +04:00
|
|
|
* 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.
|
2007-10-10 19:15:47 +04:00
|
|
|
*/
|
|
|
|
|
2008-06-05 01:36:54 +04:00
|
|
|
require_once('../libs/common.php');
|
|
|
|
require_once('../libs/operator.php');
|
2011-02-26 14:57:56 +03:00
|
|
|
require_once('../libs/groups.php');
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
$operator = check_login();
|
2011-04-15 03:24:33 +04:00
|
|
|
force_password($operator);
|
|
|
|
|
2009-07-24 11:37:58 +04:00
|
|
|
$status = isset($_GET['away']) ? 1 : 0;
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-07-24 11:37:58 +04:00
|
|
|
notify_operator_alive($operator['operatorid'], $status);
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2011-02-26 14:57:56 +03:00
|
|
|
$link = connect();
|
|
|
|
loadsettings_($link);
|
2011-02-26 16:43:30 +03:00
|
|
|
$_SESSION["${mysqlprefix}operatorgroups"] = get_operator_groupslist($operator['operatorid'], $link);
|
2011-11-09 18:16:37 +04:00
|
|
|
close_connection($link);
|
2009-03-25 03:33:14 +03:00
|
|
|
|
2009-03-16 04:20:04 +03:00
|
|
|
$page = array();
|
2009-03-22 21:45:18 +03:00
|
|
|
$page['havemenu'] = isset($_GET['nomenu']) ? "0" : "1";
|
2009-04-10 19:41:05 +04:00
|
|
|
$page['showpopup'] = $settings['enablepopupnotification'] == '1' ? "1" : "0";
|
2009-06-09 03:19:21 +04:00
|
|
|
$page['frequency'] = $settings['updatefrequency_operator'];
|
2009-07-24 11:37:58 +04:00
|
|
|
$page['istatus'] = $status;
|
2011-02-21 03:02:39 +03:00
|
|
|
$page['showonline'] = $settings['showonlineoperators'] == '1' ? "1" : "0";
|
2011-04-07 12:34:04 +04:00
|
|
|
$page['showvisitors'] = $settings['enabletracking'] == '1' ? "1" : "0";
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-16 04:20:04 +03:00
|
|
|
prepare_menu($operator);
|
2007-10-10 19:15:47 +04:00
|
|
|
start_html_output();
|
|
|
|
require('../view/pending_users.php');
|
2007-05-10 21:31:10 +04:00
|
|
|
?>
|