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_pending.php
<? require_once("functions_admin.php"); ?> <? include_once('../ip2country.inc.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(); //$author_id = user_person_id(); $something_pending=0; /* $pending_arts = mysql_query("SELECT * FROM Articles LEFT JOIN AA ON Articles.id=AA.article_id WHERE AA.author_id=".$author_id." AND ((DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= DATE(Articles.finalised)) || Articles.finalised IS NULL || !UNIX_TIMESTAMP(Articles.finalised)) AND (Articles.status<=0 || Articles.status IS NULL) ORDER BY Articles.status,Articles.finalised");*/ //pending $pending_arts = mysql_query("SELECT * FROM Articles WHERE (Articles.status <=1) || (Articles.status IS NULL) ORDER BY status,id"); $num = mysql_num_rows($pending_arts); if ($num) { $something_pending=1; if ($num>1) { $title = enruua("Portfolio","Портфель","Портфель"); } else $title = enruua("Submitted paper","Поданная статья","Подана стаття"); $subtitle = enruua("Total pending papers","Всего статей","Разом статей").": ".$num; //$m = array("complete"=>0,"pending"=>0,"assigned"=>0,"unmanaged"=>0,"accepted"=>0); $m = array(-3=>0,-2=>0,-1=>0,0=>0,1=>0); $ss = array_keys($m); while ($a = mysql_fetch_array($pending_arts)) { $i = get_article_info($a); $s = $i['status']; //$a['s'] = $s; //$a['article_id'] = $a['id']; // $smeaning = article_status_meaning($a['s']); if (in_array($s,$ss)) { $m[$s]++; } } // $m=array(10,10,20,20,60); foreach ($m as $k => $val) { $legend[] = print_article_status($k); } //graph $graph = new PieGraph(600,500); $graph->SetShadow(); $data = array_values($m);// // $legend = $ss; $graph->title->Set($title); $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); $graph->Add($p1); $p1->SetAngle(30); $p1->SetSize(0.5); $p1->SetCenter(0.5,0.40); //$m = array("complete"=>0,"pending"=>0,"assigned"=>0,"unmanaged"=>0,"accepted"=>0); $p1->SetSliceColors(array('#A1E4FF','#F2F0BE','#FFFF00','#FF7F55','#96BE8C')); $p1->SetLegends($legend); //$p1 -> ExplodeSlice(0); $p1->ExplodeAll(10); $graph -> legend->SetColumns(1); $graph->Stroke(); } ?>
Simpan