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.129.21.240 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : view_cir_articles.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Conflict Reader</title>
<style>
.normal {
text-transform: none;
}
</style>
<? $current = basename($_SERVER["PHP_SELF"]); ?>
<!-- Bootstrap -->
<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/animate.css/3.5.1/animate.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Signika:300,400,600" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--menu html start here-->
<div class="header container-fluid">
<div class="container">
<div class="row clearfix">
</div>
<div class="clearfix" style="margin-bottom:20px;"></div>
<div class="container-fluid">
<!-- Second navbar for categories -->
<nav class="navbar navbar-default">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
class="icon-bar"></span> </button>
<a class="navbar-brand" href="index.php"></a> </div>
<?php if(($current == 'index.php') or ($current == '') ) {echo "active";} ?><a href="index.php"><img width="24" height="23" src="images/download.jpg"></a>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- <div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav ">
<li class="<?php if(($current == 'index.php') or ($current == '') ) {echo "active";} ?>"><a href="index.php">Home</a></li>
<li class="<?php if($current == 'about-us.php') {echo "active";} ?>"><a href="about-us.php">About</a></li>
<li class="<?php if($current == 'conflict-reader.php') {echo "active";} ?>"><a href="conflict-reader.php">Conflict Primer</a></li>
<li class="<?php if($current == 'peace-builder.php') {echo "active";} ?>"><a href="peace-builder.php"> Peace Scroll</a></li>
<li class="<?php if($current == 'radicalism-project.php') {echo "active";} ?>"><a href="radicalism-project.php">Radicalism Project</a></li>
<li class="<?php if($current == 'water-conflicts.php') {echo "active";} ?>"><a href="water-conflicts.php">Water Conflicts</a></li>
<li class="<?php if($current == 'conflict-database.php') {echo "active";} ?>"><a href="conflict-database.php">Conflict Database </a></li>
<li class="soical-btn"><a href="#"><span class="icon-social"> </span> </a></li>
<li class="soical-btn"><a href="#"><span class="icon-twitter"></span> </a></li>
<li class="soical-btn"><a href="#"><span class="icon-youtube"></span> </a></li>
<li class="soical-btn"><a href="#"><span class="icon-google"></span> </a></li>
</ul>
</div> -->
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- /.navbar -->
</div>
</div>
</div>
<div class="clearfix"></div>
<!--menu html start here-->
<!--banner html start here-->
<!-- Carousel
================================================== -->
<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>CIR Commentary</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;
$cirarticleNo=$rows_articles->cirarticleNo;
$cirauthorName=$rows_articles->cirauthorName;
$cirauthorDesc=$rows_articles->cirauthorDesc;
$cirimageName=$rows_articles->cirimageName;
$authorDesc=$rows_articles->authorDesc;
?>
<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"> CIR # <?=$rows_articles->cirarticleNo?>, <?=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"><table><tr><td><img src="<?=DIR_FS_EVENT_THUMBNAIL_IMAGES.$cirimageName?>" width="96" height="116" class="img-responsive" > </td><td> </td><td>
<b><?=$cirauthorName?></b> <br>
<font color="#f26f1f"><?=$cirauthorDesc?></font> <br>
<p class="last" align="justify"><font color="#f26f1f"><i><?=$authorDesc?></i></font></p>
</td></tr></table>
</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.* from tbl_articles a where a.keyword12 like '%Contemporary International Relations%' and a.cirarticleNo != $cirarticleNo group by a.`cirarticleNo` order by a.cirarticleNo 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 CIR Publications</span></h3>
<?
$length = count($data_array);
//echo $length ;
$x = 0;
$counter = 0;
for($i=0;$i<$length ;$i++)
{
$articleNo=$data_array[$i][articleNo]; $cirarticleNo=$data_array[$i][cirarticleNo];
$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];
$cirarticleNo=$data_array[$i][cirarticleNo];
$cirauthorName=$data_array[$i][cirauthorName];
$cirauthorDesc=$data_array[$i][cirauthorDesc];
$cirimageName=$data_array[$i][cirimageName];
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=" 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">CIR #
<?=$cirarticleNo?></span> </div>
<?if($cirauthorName !=''){?><p class="naming-heading"> <?=$cirauthorName?> <? } ?> <?if($cirauthorDesc!=''){?><span class="blue-sub-heading">| </span> <?=$cirauthorDesc?></p> <? } ?>
<h4><?=$articleTitle?></h4><a href="view_cir_articles.php?url=<?=$articleTitle1?>&recordNo=<?=$articleNo?>" class="read-more-txt">read more</a></div>
<? } ?>
</div>
</div>
<!--Conflict Alters section html ends here-->
<!--on peace html start here-->
<? include('footer.php');?>