Пример #1
0
<?php

header('Content-Type: text/html; charset=utf-8');
require_once 'systemstatus.common.php';
require_once 'systemstatus.server.php';
$GLOBALS['locate'] = new Localization($_SESSION['curuser']['country'], $_SESSION['curuser']['language'], 'systemstatus');
$reseller = astercc::readField('resellergroup', 'resellername', 'id', $_SESSION['curuser']['resellerid']);
$callshop = astercc::readField('accountgroup', 'groupname', 'id', $_SESSION['curuser']['groupid']);
$group_row = astercrm::getRecord($_SESSION['curuser']['groupid'], 'accountgroup');
if ($group_row['grouplogo'] != '' && $group_row['grouplogostatus']) {
    $logoPath = $config['system']['upload_file_path'] . '/callshoplogo/' . $group_row['grouplogo'];
    if (is_file($logoPath)) {
        $titleHtml = '<img src="' . $logoPath . '" style="float:left;" width="80" height="80">';
    }
}
if ($group_row['grouptitle'] != '') {
    $titleHtml .= '<h1 style="padding: 0 0 0 0;position: relative;font-size: 16pt;">' . $group_row['grouptitle'] . '</h1>';
}
if ($group_row['grouptagline'] != '') {
    $titleHtml .= '<h2 style="padding: 0 0 0 0;position: relative;font-size: 11pt;">' . $group_row['grouptagline'] . '</h2>';
}
if (strstr($_REQUEST['peer'], 'local/')) {
    //for callback
    $peer = ltrim($peer, 'local/');
    foreach ($_SESSION['callbacks'] as $key => $callback) {
        if ($key == $peer . $callback['legA'] && $callback['legB'] == $peer) {
            $leg = $callback['legA'];
        }
    }
} else {
    $peer = trim($_REQUEST['peer']);