uawdijnntqw1x1x1
IP : 3.137.223.8
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
modules
/
statistic
/
admin
/
country_graph.php
/
/
<?php define("STOP_STATISTICS", true); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); /** @var CMain $APPLICATION */ $STAT_RIGHT = $APPLICATION->GetGroupRight("statistic"); if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); $width = intval($_GET["width"]); $max_width = COption::GetOptionInt("statistic", "GRAPH_WEIGHT"); if($width <= 0 || $width > $max_width) $width = $max_width; $height = intval($_GET["height"]); $max_height = COption::GetOptionInt("statistic", "GRAPH_HEIGHT"); if($height <= 0 || $height > $max_height) $height = $max_height; // create image $ImageHandle = CreateImageHandle($width, $height); $arrX=Array(); // data points X $arrY=Array(); // data points Y $arrayX=Array(); // axis X $arrayY=Array(); // axis Y /****************************************************** Get data *******************************************************/ $str = (is_array($find_country_id)) ? implode(" | ",$find_country_id) : ""; $arF = array( "COUNTRY_ID" => $str, "DATE1" => $find_date1, "DATE2" => $find_date2 ); $arrDays = CCountry::GetGraphArray($arF, $arrLegend); reset($arrDays); while (list($keyD,$arD) = each($arrDays)) { $date = mktime(0,0,0,$arD["M"],$arD["D"],$arD["Y"]); $date_tmp = 0; $next_date = AddTime($prev_date,1,"D"); if ($date>$next_date && intval($prev_date)>0) { $date_tmp = $next_date; while ($date_tmp<$date) { $arrX[] = $date_tmp; reset($arrLegend); while(list($keyL, $arrL) = each($arrLegend)) { $arrY_data[$keyL][] = 0; $arrY[] = 0; } $date_tmp = AddTime($date_tmp,1,"D"); } } $arrX[] = $date; reset($arrLegend); while(list($keyL, $arrL) = each($arrLegend)) { $value = $arD[$keyL][$find_data_type]; $arrY_data[$keyL][] = $value; $arrY[] = $value; } $prev_date = $date; } /****************************************************** Axes X *******************************************************/ $arrayX = GetArrayX($arrX, $MinX, $MaxX); /****************************************************** Axes Y *******************************************************/ $arrayY = GetArrayY($arrY, $MinY, $MaxY); /****************************************************** Draw grid *******************************************************/ DrawCoordinatGrid($arrayX, $arrayY, $width, $height, $ImageHandle); /****************************************************** Plot data *******************************************************/ reset($arrLegend); while(list($keyL, $arrL) = each($arrLegend)) { if ($keyL <> '') { Graf($arrX, $arrY_data[$keyL], $ImageHandle, $MinX, $MaxX, $MinY, $MaxY, $arrL["COLOR"]); } } /****************************************************** Send image *******************************************************/ ShowImageHeader($ImageHandle);
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/statistic/admin/country_graph.php