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.223.172.199 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : view_articles.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<? include('header.php');?>
<style>
p.small {
width: 100%;
text-align: left;
line-height: 1em;
margin-bottom:20px;
}
p.medium {
font-family: 'Roboto Slab', serif;
font-size: 16px;
font-size: 1.6rem;
font-weight: 400;
letter-spacing: normal;
margin: 0;
}
p.font {
font-size:28px;
}
<!--p class="small" -->
</style>
<?
$articleNo = $_REQUEST['recordNo'];
$url = $_GET['url'];
$_GET['cPath'] = get_one_record_from_table("tbl_categories", "categories_id", "categories_url='$url'");
if(!empty($_GET['cPath'])){
$cID = $_GET['cPath'];
}else{
$cID = 0;
}
?>
<div class="container-fluid peace-wrap">
<div class="container">
<h3><span>Conflict Reader</span></h3>
<?
$sql_articles = "select a.* from tbl_articles a where a.articleNo = '$articleNo' ";
$result_articles = mysql_query($sql_articles) or die(DB_QUERY_ERROR);
$rows_articles = mysql_fetch_object($result_articles);
$recNo =$rows_articles->recNo;
$total_num = mysql_num_rows($result_articles);
$articleTitle =$rows_articles->articleTitle;
$imageName= $rows_articles->imageName;
$publication_type= $rows_articles->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 if ($publication_type=="6"){$publication_type= "Review";}
else $publication_type= "Comment";
$text= $rows_articles->articleSummary;
$og_image="https://conflictreader.org/images/events/main/".$imageName;
?>
<div class="clearfix m-b-15">
<div class="col-sm-5">
<div class="right-hands-wrap">
<div class="m-b-15 "> <img src="<?=DIR_FS_EVENT_BIG_IMAGES.$imageName?>" class="img-responsive" style="width:540px; height:336px;"> </div>
<font size="1"> Photo Source: <?=$rows_articles->articleHeading?></font></div>
<div>
<div class="clearfix"></div>
<p class="last" align="justify"><font color="#f26f1f"><?=$rows_articles->articleSummary?></font></p>
</div>
<!-- <div class="row clearfix m-b-15 col-sm-12" >
-
</div>
<div class="row clearfix m-b-15 col-sm-12" >
++
</div>
-->
<div class="clearfix"></div>
</div>
<div class="col-sm-7 m-b-40">
<p class="small-text"> Conflict Reader # <?=$rows_articles->articleNo?>, <?=getdatefullformat_f($rows_articles->articleDate)?></p>
<h6 class="topic-heading"><font color="black" size="4"><?=$rows_articles->articleTitle1?></font></h6>
<h5 style="font-size:28px;"><?=$articleTitle?></h5>
<div class="item-content">
<p class="last" align="justify">CR <?=$publication_type?><br><br>
<b>D. Suba Chandran</b> <br>
<i>Professor <br>
International Strategic and Security Studies Programme (ISSSP)
<br>
National Institute of Advanced Studies (NIAS), Bangalore</i>
</p>
<p class="last" align="justify"><?=$rows_articles->articleText?> </p>
</div>
</div>
</div>
</div>
</div>
<!--fout section html ends here-- <div class="four-col-wrap container-fluid" container-fluid conflict-wrap >
<!--Conflict Alters section html start here-->
<? $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 and articleNo != '$articleNo'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">
<h3><span>Other Publications</span></h3>
<?
$length = count($data_array);
//echo $length ;
$counter = 0;
$x = 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');?>