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_authors.php
<? require_once("functions_admin.php"); ?> <? include_once('../ip2country.inc.php'); ?> <?php require_once ('../jpgraph/jpgraph.php'); require_once ('../jpgraph/jpgraph_pie.php'); require_once ('../jpgraph/jpgraph_pie3d.php'); $lang=take_variable("lang"); if (!is_valid_language($lang)) $lang=guess_client_language(); $cc = mysql_query("select _countries.TLD,count(*) from Institutions LEFT JOIN _countries ON Institutions.country=_countries.TLD LEFT JOIN AI on AI.institution_id=Institutions.id LEFT JOIN AA on AI.author_id=AA.author_id GROUP BY _countries.TLD order by count(*) DESC"); $n = mysql_num_rows($cc); $m = 11; while ($c = mysql_fetch_row($cc)) { $k = $c[0]; $d[$k] = $c[1]; $l[$k] = country_meaning($c[0]); } $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(array_merge(array_slice($l,0,$m-1),array(enruua("Others","Прочие","Інші")))); //$N = array_sum($data); //$subtitle = enruua("Total authors","Всего авторов","Разом авторів").": ".$N; $graph = new PieGraph(600,400); $graph->SetShadow(); $graph->title->Set(enruua("Statistics of authors by country","Статистика авторов по странам","Статистика авторів за країнами")); //$graph->subtitle->Set($subtitle); $graph->title->SetFont(FF_DV_SANSSERIF,FS_BOLD); $p1 = new PiePlot3D($data); //$p1->value->SetFormat('%d'); //$p1->SetLabelType(PIE_VALUE_ABS); $p1->SetAngle(30); $p1->SetSize(0.5); $p1->SetCenter(0.5,0.40); $p1->SetLegends($legend); $p1 -> ExplodeSlice(0); //$p1->ExplodeAll(10); $graph->Add($p1); $graph->img->SetTransparent("white"); $graph->Stroke(); ?>
Simpan