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.22.79.125 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : conflict-reader-more.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<? include('header.php');?>
<div class="container-fluid peace-wrap">
<div class="container">
<h3><span>Conflict Reader</span></h3>
</div></div>
<? $sql_articles="select a.* from tbl_articles a where a.keyword12 like '%Conflict Reader%' 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);
}
?>
<!--fout section html ends here-- <div class="four-col-wrap container-fluid" container-fluid conflict-wrap >
<!--Conflict Alters section html start here-->
<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++)
{
$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= "Comment";}
else if($publication_type=="2"){$publication_type= "Analysis";}
else if ($publication_type=="3"){$publication_type= "Brief";}
else if ($publication_type=="4"){$publication_type= "Update";}
else if ($publication_type=="5"){$publication_type= "Forecast";}
else $publication_type= "Comment";
$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 four-col-block">
<div class="img-wrap-country">
<div class="name-country <?=$background?>"><?=$articleTitle1?></div>
<img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style=" width:280px; height:175px;"> </div>
<div class="clearfix"> </div>
<div class="clearfix m-b-15"><span class="blue-sub-heading"><span class="icon-calendar"></span> <?=getdatefullformat_month_year($articleDate)?> </span> <span class="blue-sub-heading">| </span> <span class="blue-sub-heading"><span
class="icon-user"></span> <?=$publication_type?></span> </div>
<h4><?=$articleTitle?></h4>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo?>" class="read-more-txt">read more</a>
</div>
<? if($counter==4){ ?></div><? $counter=0; } ?>
<? } ?>
</div>
</div>
<!--Conflict Alters section html ends here-->
<!--on peace html start here-->
<? include('footer.php');?>