One Hat Cyber Team
Your IP :
216.73.216.24
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
nosc
/
public_html
/
admin
/
View File Name :
statistics_accrej.php
<? require_once("functions_admin.php"); ?> <? include_once('../ip2country.inc.php'); ?> <?php require_once ('../jpgraph/jpgraph.php'); require_once ('../jpgraph/jpgraph_line.php'); require_once ('../jpgraph/jpgraph_utils.inc.php'); $lang=take_variable("lang"); $yback = take_variable("yback"); if ($yback<=0) $yback = date('Y'); if (!is_valid_language($lang)) $lang=guess_client_language(); $Y = date('Y',strtotime('- '.$yback.' years')); ////,COUNT(IF(status=1,1,NULL)) AS accepted, $cc = mysql_query("SELECT finalised, COUNT(IF(status=1,1,NULL)) AS cacc,COUNT(IF(status=3,1,NULL)) AS crej, COUNT(IF(status=4,1,NULL)) AS cwit, COUNT(IF(status=5,1,NULL)) AS cfor from Articles ORDER BY accepted,finalised"); while ($c = mysql_fetch_array($cc)) { $k = $c['month']; // $accepted[$k] = $c['accepted']; $acc[$k] = $c['cacc']; $rej[$k] = $c['crej']; $wit[$k] = $c['cwit']; // $l[$k] = print_article_status($c[1]); } //$n = array_sum($cc); //$etc = array_sum(array_slice($d,$m,$n)); //$d = array_merge(array_slice($d,0,$m-1),array("O"=>$etc)); //$daccepted = array_values($accepted); $dpublished = array_values($published); $drejected = array_values($rejected); //$legend = array_values($l);//array_merge(array_slice($l,0,$m-1),array(enruua("Others","Прочие","Інші")))); $graph = new Graph(600,400,'auto'); $graph->title->Set(enruua("Published and rejected articles","Опубликованные и отклоненные статьи","Опубліковані та відхилені статті")); $graph->subtitle->Set($year.enruua(""," г."," р.")); $graph->title->SetFont(FF_DV_SANSSERIF,FS_BOLD); $graph->SetScale('intlin'); //$graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth()); //$graph->xaxis->SetTickLabels(array_keys($dpublished)); $graph->xaxis->SetLabelFormatString('M',true); $graph->xaxis->title->Set(enruua('Year '.$year,$year." г.", $year." р.")); //$pa = new BarPlot($daccepted); //$pa -> SetFillColor('green'); $pp = new LinePlot($dpublished); $pp -> SetFillColor('green'); //$pp -> SetFillGradient('olivedrab1','olivedrab4',GRAD_VERT); $pp -> SetFillGradient('olivedrab1','olivedrab4',GRAD_VERT); $pr = new BarPlot($drejected); $pr -> SetFillColor('red'); //$pr -> SetFillGradient('AntiqueWhite2','AntiqueWhite4:0.8',GRAD_VERT); $pr -> SetFillGradient('red','AntiqueWhite4:0.8',GRAD_VERT); $graph -> legend->SetColumns(1); //$gbplot = new GroupBarPlot (array( $pp , $pr )); $gbplot = new AccBarPlot (array( $pp , $pr )); $gbplot -> SetShadow(); $graph->Add($gbplot); $graph->Stroke(); ?>