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: 18.118.137.78 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : index-cr.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<? include('header.php');?>
<style>
.normal {
text-transform: none;
}
</style>
<link rel="shortcut icon" href="images/favicon.ico" />
<!--menu html start here-->
<!--banner html start here-->
<!-- Carousel
================================================== -->
<? $sql_articles="select a.*,c.categories_url from tbl_articles a, tbl_articles_to_categories ac, tbl_categories c where a.recNo=ac.recNo_id and ac.categories_id =c.categories_id group by a.`articleNo` order by a.articleNo desc , a.recNo
desc limit 0,13 ";
$result_articles= mysql_query($sql_articles) ;
$data_array=array();
while ($row = mysql_fetch_array($result_articles, MYSQL_ASSOC))
{
array_push($data_array,$row);
}
$articleNo=$data_array[0][articleNo];
$imageName= $data_array[0][imageName];
$articleTitle =$data_array[0][articleTitle];
$articleDate=$data_array[0][articleDate];
$articleTitle1=$data_array[0][articleTitle1];
$publication_type= $data_array[0][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[0][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 200);
?>
<div id="myCarousel" class="carousel slide">
<div class="blue-wrap container-fluid" >
<div class="container">
<div class=" col-sm-12">
<h2><a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo?>">
<span class="normal"><?=$articleTitle?></span></a></h2>
<div class="clearfix m-b-15"><span class="white-text"><span class="icon-calendar"></span> <?=getdatefullformat_month_year($articleDate)?> </span>
<span class="white-text">| </span> <span class="white-text"><span class="icon-user"></span> <?=$publication_type?> </span> </div>
<p><?=$text?></p>
</div>
</div>
</div>
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<? $imageName= "_153218640_Rohingya-Unknowncopy.jpg";//$data_array[0][imageName];
?>
<div class="carousel-inner">
<div class="item active"> <img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive">
<div class="container">
<div class="carousel-caption">
<p></p>
</div>
</div>
</div>
<? $imageName1= "_1301411310_Kashmir-RK.jpg";//$data_array[1][imageName];
?>
<div class="item"> <img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName1?>" class="img-responsive">
<div class="container">
<div class="carousel-caption"> <p></p></div>
</div>
</div>
<? $imageName2= "_957133688_Rohingya-Week.jpg"; //$data_array[2][imageName];
?>
<div class="item"> <img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName2?>" class="img-responsive">
<div class="container">
<div class="carousel-caption">
<p></p>
</div>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<div class="cruve-box m-b-110"> <span class="fa fa-angle-left line-height"></span> </div>
</a> <a class="right carousel-control" href="#myCarousel" data-slide="next">
<div class="cruve-box"> <span class="fa fa-angle-right line-height"> </span> </div>
</a> </div>
<!-- /.carousel -->
</div>
<!-- /.container -->
<!--blue html start here-->
<!--blue html ends here-->
<!--fout section html start here-->
<div class="four-col-wrap container-fluid">
<div class="container">
<div class="row">
<?
$articleNo=$data_array[1][articleNo];
$imageName= $data_array[1][imageName];
$articleTitle =$data_array[1][articleTitle];
$articleDate=$data_array[1][articleDate];
$articleTitle1=$data_array[1][articleTitle1];
$publication_type= $data_array[1][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[1][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 100);
?>
<div class="col-sm-3 clearfix four-col-block">
<div class="img-wrap"> <a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>"><img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style="height:168px; width:280px;"> </a></div>
<span class="heading-text clearfix"> <?=$articleTitle?></span>
<span class="blue-sub-heading"><?=getdatefullformat_month_year($articleDate)?> | <?=$publication_type?></span>
<p><?=$text?></p>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>" class="read-more-txt">READ MORE</a> </div>
<?
// $result_articles = showdata_details('tbl_articles','tbl_articles_to_categories',1,'limit 5',$_REQUEST['M_ID']);
$articleNo=$data_array[2][articleNo];
$imageName= $data_array[2][imageName];
$articleTitle =$data_array[2][articleTitle];
$articleDate=$data_array[2][articleDate];
$articleTitle1=$data_array[2][articleTitle1];
$publication_type= $data_array[2][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[2][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 100);
?>
<div class="col-sm-3 clearfix four-col-block">
<div class="img-wrap"> <img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style="height:168px; width:280px;"> </div>
<span class="heading-text clearfix"> <?=$articleTitle?></span>
<span class="blue-sub-heading"><?=getdatefullformat_month_year($articleDate)?> | <?=$publication_type?></span>
<p><?=$text?></p>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>" class="read-more-txt">READ MORE</a> </div>
<?
// $result_articles = showdata_details('tbl_articles','tbl_articles_to_categories',1,'limit 5',$_REQUEST['M_ID']);
$articleNo=$data_array[3][articleNo];
$imageName= $data_array[3][imageName];
$articleTitle =$data_array[3][articleTitle];
$articleDate=$data_array[3][articleDate];
$articleTitle1=$data_array[3][articleTitle1];
$publication_type= $data_array[3][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[3][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 100);
?>
<div class="col-sm-3 clearfix four-col-block">
<div class="img-wrap"> <a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>"><img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style="height:168px; width:280px;"> </a></div>
<span class="heading-text clearfix"> <?=$articleTitle?></span>
<span class="blue-sub-heading"><?=getdatefullformat_month_year($articleDate)?> | <?=$publication_type?></span>
<p><?=$text?></p>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>" class="read-more-txt">READ MORE</a> </div>
<?
// $result_articles = showdata_details('tbl_articles','tbl_articles_to_categories',1,'limit 5',$_REQUEST['M_ID']);
$articleNo=$data_array[4][articleNo];
$imageName= $data_array[4][imageName];
$articleTitle =$data_array[4][articleTitle];
$articleDate=$data_array[4][articleDate];
$articleTitle1=$data_array[4][articleTitle1];
$publication_type= $data_array[4][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[4][articleSummary];
$text = preg_replace("/<.*?>/", "", $text);
$text=elliStr("$text", 100);
?>
<div class="col-sm-3 clearfix four-col-block">
<div class="img-wrap"> <a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>"><img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style="height:168px; width:280px;"> </a></div>
<span class="heading-text clearfix"> <?=$articleTitle?></span>
<span class="blue-sub-heading"><?=getdatefullformat_month_year($articleDate)?> | <?=$publication_type?></span>
<p><?=$text?></p>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>" class="read-more-txt">READ MORE</a> </div>
</div>
</div>
</div>
<!--fout section html ends here-->
<!--Conflict Alerts section html start here-->
<div class="container-fluid conflict-wrap">
<div class="container m-t-b-30">
<?
$length = count($data_array);
//echo $length ;
$x = 0;
$counter = 0;
for($i=5;$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", 70);
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>
<a href="view_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo ?>"><img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style=" width:280px; height:175px;"> </a></div>
<div class="clearfix"> </div>
<div class="clearfix m-b-15"><span class="white-text"><span class="icon-calendar"></span> <?=getdatefullformat_month_year($articleDate)?></span> <span class="white-text">| </span> <span class="white-text"><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>
<div class="container-fluid">
<div class="container">
<? $sql_news = "select * from tbl_newsline order by recNo desc LIMIT 0, 6";
$sql_news = mysql_query($sql_news) or die(DB_QUERY_ERROR);
?>
<div class="col-sm-6 reviews-wrap ">
<h3><span>CR Newsline</span></h3>
<div class="col-sm-12"> <? while($fetch_row_data = mysql_fetch_object($sql_news))
{
$reportTitle=$fetch_row_data->reportTitle;
$type1 =$fetch_row_data->type1;
$newsPaperDate=$fetch_row_data->newsPaperDate;
$newsPaperName=$fetch_row_data->newsPaperName;
?>
<p class="text-blurb"><a href="<?=$type1?>" target="_blank" style="text-decoration:none"><span class="sub-hightlight-text"><?=$reportTitle?></span></a><br> <strong>
<?=$newsPaperName?>, <?=getdatefullformat_f($fetch_row_data->newsPaperDate)?> </strong>
</p>
<? } ?>
<a href="newsline.php" class="read-more-txt">read more</a>
</div>
</div>
<? $sql_database = "select * from tbl_notes order by newsPaperDate desc ,recNo desc limit 0,6 " ;
// select * from tbl_database order by newsPaperDate desc ,recNo desc LIMIT 0, 6";
$sql_database = mysql_query($sql_database) or die(DB_QUERY_ERROR);
?>
<div class="col-sm-6 editorial-wrap">
<h3><span>Conflict Alerts</span></h3>
<div class="col-sm-12">
<? while($fetch_row_data = mysql_fetch_object($sql_database))
{
$articleTitle =$fetch_row_data->reportTitle;
$imageName= $fetch_row_data->imageName;
$text= $fetch_row_data->reportText;
$type1= $fetch_row_data->type1;
?>
<p class="text-blurb"><a href="conflict-database.php" style="text-decoration:none">
<span class="sub-hightlight-text"><?=$articleTitle?></span></a> <br><strong>
Conflict Alerts # <?=$fetch_row_data->noteNo?>, <?=getdatefullformat_f($fetch_row_data->newsPaperDate)?></strong>
</p>
<? } ?>
<a href="conflict-alerts.php" class="read-more-txt">read more</a>
</div>
</div>
</div>
</div>
<!-- <div class="container stories-wrap">
<h3><span>Photo Stories</span></h3>
</div>-->
</div>
<?
$select_eve="select * from tbl_events_gallery order by id desc limit 0,5";
$result_2=mysql_query($select_eve);
$data_array_gallery=array();
while ($row_gallery = mysql_fetch_array($result_2, MYSQL_ASSOC))
{
array_push($data_array_gallery,$row_gallery);
}
$photo= $data_array_gallery[0][photo];
$title =$data_array_gallery[0][title];
$link=$data_array_gallery[0][link];
$descp=$data_array_gallery[0][descp];
?>
<!--
<div class="container-fluid top-wrap">
<div class="container">
<div class="clearfix m-b-15">
<div class="col-sm-6">
<div class="right-hands-wrap">
<div class="m-b-15 "> <a href="more-photo.php"><img src="<?=DIR_FS_EVENT_GALLERY_IMAGES.$photo?>" class="img-responsive" style=" width:647px; height:402px;"> </a></div>
<div class="col-sm-1"><span class="icon-photo-camera"></span></div>
<div class="col-sm-11">
<p class="source-col pull-left ">Photo Source: <?=$link?></p>
<div class="clearfix"></div>
<h4 class="f-22"><?=$title?></h4>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="col-sm-6 four-col-block txt-align">
<p> <font size="4"><?=$descp?></font></p>
<a href="more-photo.php" class="pull-right"><i class="fa fa-external-link" aria-hidden="true"></i></a> </div>
</div>
<?
$photo= $data_array_gallery[1][photo];
$title =$data_array_gallery[1][title];
$link=$data_array_gallery[1][link];
?>
<div class="news-wrap">
<div class="col-sm-3 four-col-block">
<div class="right-hands-wrap p-0">
<div class=" m-b-15"> <a href="more-photo.php"><img src="<?=DIR_FS_EVENT_GALLERY_IMAGES.$photo?>" class="img-responsive" style="width:283px; height:195px;"> </a></div>
<div class="col-sm-12">
<p class="source-col pull-left ">Photo Source: <?=$link?></p>
<span class=" clearfix"></span>
<h4 ><?=$title?></h4>
<a href="more-photo.php" class="pull-right icon-position"><i class="fa fa-external-link" aria-hidden="true"></i></a> </div>
<span class=" clearfix"></span> </div>
</div>
</div>
<?
$photo= $data_array_gallery[2][photo];
$title =$data_array_gallery[2][title];
$link=$data_array_gallery[2][link];
?>
<?if($photo!= '') {?>
<div class="news-wrap">
<div class="col-sm-3 four-col-block">
<div class="right-hands-wrap p-0">
<div class=" m-b-15"> <a href="more-photo.php"> <img src="<?=DIR_FS_EVENT_GALLERY_IMAGES.$photo?>" class="img-responsive" style="width:283px; height:195px;"> </a></div>
<div class="col-sm-12">
<p class="source-col pull-left ">Photo Source: <?=$link?></p>
<span class=" clearfix"></span>
<h4><?=$title?></h4>
<a href="more-photo.php" class="pull-right icon-position"><i class="fa fa-external-link" aria-hidden="true"></i></a> </div>
<span class=" clearfix"></span> </div>
</div>
<? } ?>
<?
$photo= $data_array_gallery[3][photo];
$title =$data_array_gallery[3][title];
$link=$data_array_gallery[3][link];
?>
<?if($photo!= '') {?>
<div class="col-sm-3 four-col-block">
<div class="right-hands-wrap p-0">
<div class=" m-b-15"> <a href="more-photo.php"><img src="<?=DIR_FS_EVENT_GALLERY_IMAGES.$photo?>" class="img-responsive" style="width:283px; height:195px;"></a> </div>
<div class="col-sm-12">
<p class="source-col pull-left ">Photo Source: <?=$link?></p>
<span class=" clearfix"></span>
<h4><?=$title?></h4>
<a href="more-photo.php" class="pull-right icon-position"><i class="fa fa-external-link" aria-hidden="true"></i></a> </div>
<span class=" clearfix"></span> </div>
</div>
<? } ?>
<?
$photo= $data_array_gallery[4][photo];
$title =$data_array_gallery[4][title];
$link=$data_array_gallery[4][link];
?>
<?if($photo!= '') {?>
<div class="col-sm-3 four-col-block">
<div class="right-hands-wrap p-0">
<div class=" m-b-15"> <a href="more-photo.php"><img src="<?=DIR_FS_EVENT_GALLERY_IMAGES.$photo?>" class="img-responsive" style="width:283px; height:195px;"></a> </div>
<div class="col-sm-12">
<p class="source-col pull-left ">Photo Source: <?=$link?></p>
<span class=" clearfix"></span>
<h4><?=$title?></h4>
<a href="more-photo.php" class="pull-right icon-position"><i class="fa fa-external-link" aria-hidden="true"></i></a> </div>
<span class=" clearfix"></span> </div>
</div>
<? }?>
</div>
</div>
</div>
-->
<!--top sotries section ends here-->
<!--Subscribe html section start here-->
<!--
<div class="container-fluid">
<div class="container subscribe-wrap">
<div class="col-sm-6">
<div class="col-sm-3">
<div class="img-circle blue-stripe"> <span class="icon-mail"></span> </div>
</div>
<div class="col-sm-9">
<p class="news-text-sub">Newsletter</p>
<p class="b-news-text">We love our followers.
Subscribe for Monthly CR Newsletter.</p>
</div>
</div>
<div class="col-sm-6">
<form action="index.php?action=newsletters" method="post" name="myForm">
<div class="input-group">
<input class="btn btn-lg" name="email" id="email" type="email" placeholder="Enter your Email ID" required>
<button class="btn btn-info btn-lg" type="submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
-->
<!--Subscribe html section ends here-->
<!--footer html section start here-->
<? include('footer.php');?>