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
/
Edit File:
statistics_submissions.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_pie.php'); //require_once ('../jpgraph/jpgraph_pie3d.php'); $lang=take_variable("lang"); $yback = take_variable("yback"); if ($yback<=0) $yback = 10; if (!is_valid_language($lang)) $lang=guess_client_language(); $Y = date('Y',strtotime('- '.$yback.' years')); //$cc = mysql_query("select article_id,count(*) from Revisions where (YEAR(created) >= '".$Y."') GROUP BY article_id"); $cc = mysql_query("select YEAR(created),count(*) from Revisions where (YEAR(created) >= '".$Y."') GROUP BY YEAR(created)"); $n = mysql_num_rows($cc); $m = $n; while ($c = mysql_fetch_row($cc)) { $k = $c[0]; $d[$k] = $c[1]; $l[$k] = $k; } //$etc = array_sum(array_slice($d,$m,$n)); //$d = array_merge(array_slice($d,0,$m-1),array("O"=>$etc)); $data = array_values($d); $legend = array_values($l);//array_merge(array_slice($l,0,$m-1),array(enruua("Others","Прочие","Інші")))); $graph = new Graph(600,400); $graph->SetScale("textlin"); $N= array_sum($data); $graph->title->Set(enruua("Statistics of finalised articles","Статистика рассмотренных статей","Статистика розглянутих статей") . " (".$Y."-".date('Y').enruua(""," гг."," рр.").", ".enruua("total","всего","разом")." ".$N.")"); $graph->title->SetFont(FF_DV_SANSSERIF,FS_BOLD); $p1 = new LinePlot($data); //$p1->SetLegends($legend); //$graph->xaxis->SetTickLabels(); $graph -> legend->SetColumns(1); $graph->Add($p1); $graph->Stroke(); ?>
Simpan