Server Name:Linux webbox5.ncrdns.net 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64 | |
User :conflictreader (1363) Group : conflictreader (1367) | |
Server IP :103.104.73.69 [BING] [Dossier] | Port : 443 | Your IP: 3.144.96.66 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : ipri-comments.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<? include('header_ipri.php');?>
<div class="container-fluid peace-wrap">
<div class="container">
<h3><span>IPRI Comments</span></h3>
</div></div>
<? $sql_articles="select a.* from tbl_ipri a where a.publication_type='2' group by a.`articleNo` order by a.articleNo desc , a.recNo desc ";
$result_articles= mysql_query($sql_articles) ;
$data_array=array();
while ($row = mysql_fetch_array($result_articles, MYSQL_ASSOC))
{
array_push($data_array,$row);
}
?>
<div class="four-col-wrap container-fluid">
<div class="container m-t-b-30">
<?
$length = count($data_array);
//echo $length ;
$x = 0;
$counter = 0;
for($i=0;$i<$length ;$i++)
{
$recNo=$data_array[$i][recNo];
$articleNo=$data_array[$i][articleNo];
$imageName= $data_array[$i][imageName];
$articleTitle =$data_array[$i][articleTitle];
$articleDate=$data_array[$i][articleDate];
$articleTitle1=$data_array[$i][articleTitle1];
$publication_type= $data_array[$i][publication_type];
if($publication_type=="1"){$publication_type= "Peace Lectures";}
else if($publication_type=="2"){$publication_type= "IPRI Comments";}
else if ($publication_type=="3"){$publication_type= "IPRI Briefs";}
else $publication_type= "";
$text= $data_array[$i][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 200);
switch ($x) {
case 0:
$background="sri-color";
break;
case 1:
$background="nepal-color";
break;
case 2:
$background="myanmar-color";
break;
case 3:
$background="north-east";
break;
case 4:
$background="jk-color";
break;
case 5:
$background="pak-color";
break;
case 6:
$background="naxal-color";
break;
default:
$background="jk-color";
}
$x++; if($x==6){$x=0;}
$counter++;
?>
<? if($counter==4){ ?><div class="row clearfix m-b-15"><? } ?>
<div class="col-sm-3 clearfix three-col-block">
<div class="img-wrap-country">
<div class="name-country <?=$background?>" style="font-size:15px; left:auto;"><?=$articleTitle1?></div>
<img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style=" height:175px;"> </div>
<div class="clearfix"> </div>
<div class="clearfix m-b-15"><span class="blue-sub-heading"><?=getdatefullformat_month_year($articleDate)?> </span> </div>
<?if($cirauthorName !=''){?><p class="naming-heading"> <?=$cirauthorName?> <? } ?> <?if($cirauthorDesc!=''){?><span class="blue-sub-heading">| </span> <?=$cirauthorDesc?></p> <? } ?>
<h4><a href="view_ipri_articles.php?ArticleNo=<?=$articleNo?>&url=<?=preg_replace('/[^a-zA-Z0-9_ -]/s','', $articleTitle1);?>&recordNo=<?=$recNo?>"><font color="black"><?=$articleTitle?></font></a></h4><a
href="view_ipri_articles.php?ArticleNo=<?=$articleNo?>&url=<?=preg_replace('/[^a-zA-Z0-9_ -]/s','', $articleTitle1);?>&recordNo=<?=$recNo?>" class="read-more-txt">read more</a></div>
<? if($counter==4){ ?></div><? $counter=0; } ?>
<? } ?>
</div>
</div>
<? include('footer.php');?>