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');
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
$operator = check_login();
|
2011-04-13 18:44:09 +04:00
|
|
|
force_password($operator);
|
2011-02-26 15:24:29 +03:00
|
|
|
|
|
|
|
$link = connect();
|
|
|
|
loadsettings_($link);
|
|
|
|
$isonline = is_operator_online($operator['operatorid'], $link);
|
2011-11-09 18:16:37 +04:00
|
|
|
close_connection($link);
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2008-09-30 02:46:27 +04:00
|
|
|
$page = array(
|
2007-10-17 14:43:34 +04:00
|
|
|
'version' => $version,
|
2008-10-04 03:35:17 +04:00
|
|
|
'localeLinks' => get_locale_links("$webimroot/operator/index.php"),
|
2009-02-04 03:31:26 +03:00
|
|
|
'needUpdate' => $settings['dbversion'] != $dbversion,
|
2011-04-15 03:24:33 +04:00
|
|
|
'needChangePassword' => $operator['vcpassword'] == md5(''),
|
|
|
|
'profilePage' => "$webimroot/operator/operator.php?op=".$operator['operatorid'],
|
2009-02-04 03:31:26 +03:00
|
|
|
'updateWizard' => "$webimroot/install/",
|
2011-02-26 15:15:35 +03:00
|
|
|
'newFeatures' => $settings['featuresversion'] != $featuresversion,
|
|
|
|
'featuresPage' => "$webimroot/operator/features.php",
|
2011-02-26 15:24:29 +03:00
|
|
|
'isOnline' => $isonline
|
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/menu.php');
|
2007-05-10 21:31:10 +04:00
|
|
|
?>
|