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_articles_rr.php
<? require_once("functions_admin.php"); ?> <? include_once('../ip2country.inc.php'); ?> <?php require_once ('../jpgraph/jpgraph.php'); require_once ('../jpgraph/jpgraph_bar.php'); require_once ('../jpgraph/jpgraph_utils.inc.php'); $lang=take_variable("lang"); $year = take_variable("year"); if ($year<=0) $year = 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 MONTH(finalised) as month, COUNT(IF(status=2,1,NULL)) AS published,COUNT(IF(status=3,1,NULL)) AS rejected, COUNT(IF(status=4,1,NULL)) AS withdrawn, COUNT(IF(status=5,1,NULL)) AS forwarded from Articles where (YEAR(finalised) = '".$year."') GROUP BY month ORDER BY finalised"); while ($c = mysql_fetch_array($cc)) { $k = $c['month']; // $accepted[$k] = $c['accepted']; $published[$k] = $c['published']; $rejected[$k] = $c['rejected']; $withdrawn[$k] = $c['withdrawn']; // $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)); $pkeys = array_keys($published); $rkeys = array_keys($rejected); $keys = //sort (array_merge($pkeys,$rkeys)); //$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); $graph->title->Set(enruua("Published and rejected articles","Опубликованные и отклоненные статьи","Опубліковані та відхилені статті")); $graph->subtitle->Set($year.enruua(""," г."," р.")); $graph->title->SetFont(FF_DV_SANSSERIF,FS_BOLD); $graph->SetScale('textlin'); //$graph->xaxis->SetTickLabels($gDateLocale->GetMonth()); foreach ($keys as $key) { $keysn[]= month_name($key);//date('m',strtotime($Y.'-'.$key.'-'.1)); } $graph->xaxis->SetTickLabels($keysn); //$graph->xaxis->SetLabelFormatString('M',true); $graph->xaxis->title->Set(enruua('Year '.$year,$year." г.", $year." р.")); //$pa = new BarPlot($daccepted); //$pa -> SetFillColor('green'); $pp = new BarPlot($dpublished,$pkeys); $pp -> SetFillColor('green'); //$pp -> SetFillGradient('olivedrab1','olivedrab4',GRAD_VERT); $pp -> SetFillGradient('olivedrab1','olivedrab4',GRAD_VERT); $pr = new BarPlot($drejected,$rkeys); $pr -> SetFillColor('red'); //$pr -> SetFillGradient('AntiqueWhite2','AntiqueWhite4:0.8',GRAD_VERT); $pr -> SetFillGradient('red','AntiqueWhite4:0.8',GRAD_VERT); $pr -> value->Show(); $pr->value->SetFormat('%d'); $pr->value->SetFont(FF_DV_SANSSERIF,FS_BOLD); $graph -> legend->SetColumns(1); $gbplot = new GroupBarPlot (array( $pp , $pr )); //$gbplot = new AccBarPlot (array( $pp , $pr )); $gbplot -> SetShadow(); $graph->Add($gbplot); $graph->Stroke(); ?>