| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/www/cropandweed/ |
Upload File : |
<?php
session_start();
require_once('inc/config.php');
require_once(INC.'functions.php');
$stmt = $mysqli->prepare("SELECT websitename, websiteemail, fromname, fromemail, replyname, replyemail, mailer, extensions, signature FROM settings ORDER BY settingsid DESC LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->execute();
$stmt->bind_result($websitename, $websiteemail, $fromname, $fromemail, $replyname, $replyemail, $mailer, $extensions, $signature);
$stmt->fetch();
$stmt->close();
if(!isset($_SESSION['HAS_VISITED'])):
$_SESSION['HAS_VISITED'] = true;
$stmt = $mysqli->prepare("SELECT visitorid, totalvisitors FROM visitors ORDER BY visitorid DESC LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->execute();
$stmt->bind_result($visitorid, $totalvisitors);
$stmt->fetch();
$stmt->close();
$totalvisitors = $totalvisitors + 1;
$stmt = $mysqli->prepare("UPDATE visitors SET totalvisitors = ? WHERE visitorid = ?") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ii', $totalvisitors, $visitorid);
$stmt->execute();
$stmt->close();
endif;
$pathinfo = pathinfo($_SERVER['PHP_SELF']);
$filename = $pathinfo['filename'];
$encrypt_token = isset($_POST['token']) ? sanitize(escape($_POST['token'])) : NULL;
$decrypt_token = decrypt($encrypt_token);
$encrypt_focus = isset($_POST['focus']) ? sanitize(escape($_POST['focus'])) : NULL;
$decrypt_focus = decrypt($encrypt_focus);
if((isset($_POST)) && ($encrypt_token && $decrypt_token === TOKEN.session_id()) && ($encrypt_focus)):
function output($stat, $text){
return json_encode(array('stat' => $stat, 'text' => $text));
}
function ismscURL($link){
$http = curl_init($link);
curl_setopt($http, CURLOPT_RETURNTRANSFER, TRUE);
$http_result = curl_exec($http);
$http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);
curl_close($http);
return $http_result;
}
function gCAPTCHA($reCAPTCHA){
$secret = '6Lcvno4UAAAAACUImZKMms8SxbkRnj4UPbFHXyDk';
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$reCAPTCHA);
return json_decode($verifyResponse);
}
if((file_exists(INC.'SendMail.php') && file_exists('inc/'.$filename.'.php'))):
require_once(INC.'SendMail.php');
require_once('inc/'.$filename.'.php');
exit();
else:
die(output(false, 'Required file is missing.'));
endif;
endif;
$pagename = ($filename == 'index') ? basename(getcwd()) : $filename;
$webbasename = basename(dirname(__FILE__));
$year = isset($_GET['year']) ? strip_tags(sanitize(escape($_GET['year']))) : NULL;
$volume = isset($_GET['vol']) ? strip_tags(sanitize(escape($_GET['vol']))) : NULL;
$issue = isset($_GET['issue']) ? strip_tags(sanitize(escape($_GET['issue']))) : NULL;
$archivesid = isset($_GET['article_id']) ? strip_tags(sanitize(escape($_GET['article_id']))) : NULL;
$article_status = 'enabled';
$stmt = $mysqli->prepare("SELECT title, metadescription, metakeyword, content FROM pages WHERE name = ?") or die('An error occurred. Please try after some time.');
$stmt->bind_param('s', $pagename);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($page_title, $page_meta_desc, $page_meta_keyword, $page_content);
$stmt->fetch();
$stmt->close();
if($count_rows == 0):
$head_title = ucwords(basename(getcwd())).' | '.$websitename;
$page_title = '';$page_meta_desc = '';$page_meta_keyword = '';$page_content = '';
else:
$head_title = ($pagename == $webbasename) ? '' : $page_title.' | ';
endif;
$page_content = ($page_content) ? html_entity_decode($page_content) : NULL;
$protocol = !empty($_SERVER['HTTPS']) ? 'https' : 'http';
$canonicalUrl = $protocol . '://' . $_SERVER['HTTP_HOST'] . strtok($_SERVER['REQUEST_URI'], '?');
echo <<<EOJ
<!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">
<meta name="description" content="{$page_meta_desc}" />
<meta name="keywords" content="{$page_meta_keyword}" />
<meta name="Author" content="{$websitename}-{$fromemail}" />
<meta name="Robots" content="index, follow" />
<title>{$head_title}{$websitename}</title>
EOJ;
echo PHP_EOL;
?>
<link rel="canonical" href="<?php echo $canonicalUrl;?>">
<link rel="shortcut icon" href="<?php echo $imageurl;?>favicon.ico" />
<script type="text/javascript" src="https://www.akinik.com/js/jquery.js" defer></script>
<script type="text/javascript" src="https://www.akinik.com/js/jquery.form.min.js" defer></script>
<style type="text/css">
*{margin:0px;padding:0px;outline:none;box-sizing:border-box}
body{width:100%;height:100%;background-color:#fff;color:#333;font-size:13px;font-family:'Roboto-Regular';overflow-y:scroll}
@font-face{font-family:'Cambria';src:url('<?php echo $fontsdir;?>Cambria.ttf')}
@font-face{font-family:'Roboto-Regular';src:url('<?php echo $fontsdir;?>Roboto-Regular.ttf')}
@font-face{font-family:'Roboto-Medium';src:url('<?php echo $fontsdir;?>Roboto-Medium.ttf')}
a{text-decoration:none}a:hover{text-decoration:underline}img,a img{border:none;overflow:hidden}select{padding:0px}textarea{resize:none}
b,strong,label,h1,h2,h3,h4,h5,h6,th{font-family:'Roboto-Medium';font-weight:normal}
.holder,.header,.nav,.footer,.fluid,.head,.body,.foot,.row,.form,.flbl,.field,.output{float:left;width:100%;height:auto}
.fl{float:left;width:auto;height:auto}
.fr{float:right;width:auto;height:auto}
.container{width:960px;height:auto;margin:0px auto}
.topbar{padding:7px 0px;background-color:#333}
.topbar .fr a{color:#fff;font-size:11px;font-family:'Roboto-Medium';text-transform:uppercase}
.header{padding:10px 0px}
.header form{width:280px;border:1px solid #ccc;border-radius:2px;overflow:hidden;display:flex}
.header form .field{width:100%;height:28px;border:none;box-shadow:none;flex:1}
.header form .btn{width:28px;height:28px;background-color:#fff;fill:#999;border:none;cursor:pointer}
.banner{margin-bottom:10px}
.banner img{float:left;width:100%;max-width:100%}
marquee{float:left;width:100%;height:26px;line-height:26px;margin-bottom:10px;background-color:#ffecb3;color:#f00;font-family:'Roboto-Medium'}
marquee img{margin:0 10px;display:inline-block}
marquee a{color:#567f15}
.nav{background:#094382 url('<?php echo $imageurl;?>nav-bg.png') left top repeat-x;border-top:1px solid #fff}
.nav ul{list-style:none;display:flex;flex-direction:row;justify-content:space-between;flex-flow:row wrap;overflow:hidden}
.nav ul li{float:left;width:auto;height:auto;border-right:1px dashed #146c19;flex-grow:1}
.nav ul li:last-child{border:none}
.nav ul li a{padding:14px 0px;color:#fff;font-size:11px;font-family:'Roboto-Regular';text-align:center;text-transform:uppercase;display:block}
.nav ul li a:hover{text-decoration:none}
.sidebar{width:20%}
.sidebar .head{padding:9px 7px;background:#2874f0 url('<?php echo $imageurl;?>sidebar-head-bg.png') left top repeat-x;border:1px solid #567f15;border-radius:3px;color:#fff;font-size:12px;text-transform:uppercase}
.sidebar .body{background-color:#fff}
.sidebar .body img{max-width:100%}
.sidebar ul{list-style:none}
.sidebar ul li{float:left;width:100%;padding:7px;border-bottom:1px dashed #ddd}
.sidebar ul li:last-child{border:none}
.sidebar ul li a{color:#567f15}
.sidebar img{max-width:100%;height:auto !important}
.sidebar table{margin-top:10px;table-layout:fixed}
.sidebar table td{height:32px;background-color:#444;border:1px solid #000;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;color:#fff;font-size:21px;text-align:center;vertical-align:middle;font-family:"Times New Roman", Times, serif;font-weight:bold;text-shadow:0px -1px 1px #000}
.justify{width:60%;padding:0px 15px;line-height:18px;text-align:justify;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
.justify .phead{margin-bottom:15px;text-align:center}
.justify .phead h1{font-size:20px;font-family:'Cambria';font-weight:bold}
.justify .phead b{font-family:'Cambria';font-weight:bold}
.justify .chead{margin-bottom:10px;padding-bottom:5px;border-bottom:1px dashed #e5e5e5;font-size:18px;font-family:'Cambria'; font-weight:bold;text-align:center}
.justify a{color:#567f15}.justify img{max-width:100%;height:auto}.justify ul,.justify ol{float:left;padding-left:15px}
.boards{background-color:#fff;border-collapse:collapse}
.boards th{border:1px solid #eee;color:#f00;font-size:11px;font-weight:normal;text-transform:uppercase;padding:7px 6px 5px}
.boards td{padding:6px;border:1px solid #eee;font-size:12px}
.archives{margin-bottom:10px;border:1px solid #e5e5e5;border-top:none;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}
.archives .head{padding:7px 10px;background-color:#fff;border-top:1px solid #e5e5e5;border-bottom:2px solid #567f15;color:#a80209;font-family:'Roboto-Medium';text-transform:uppercase}
.archives .body{margin-bottom:10px;padding:10px 10px 5px}
.archives .body ul{margin-bottom:10px;clear:both}
.archives .body ul li{float:left;width:100%;margin-bottom:10px;list-style-type:square}
.archives .body ul li a{color:#567f15;font-size:12px;font-family:'Roboto-Medium';text-transform:uppercase}
.articles{background-color:#fff;border-collapse:collapse}
.articles th,.articles td{padding:5px;border:1px solid #000}
.articles th.xs{width:50px}
.articles th.sm{width:70px}
.articles .foot{margin-top:10px;font-size:11px;font-family:'Roboto-Medium';text-transform:uppercase}
.abstract .head{color:#f00;font-size:16px;text-align:center}
.abstract .row{margin-top:10px}
.abstract .row b.heading{color:#fa0066}
.manuscriptstatus{border-collapse:collapse}
.manuscriptstatus th,.manuscriptstatus td{padding:5px;border:1px solid #e5e5e5}
.manuscriptstatus th{background-color:#eee;font-size:11px;text-transform:uppercase}
.form{margin-top:10px;border:1px solid #d9d9d9;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;overflow:hidden}
.form .body{padding:0px;background-color:#fff}
.form .body .row .fl,.form .body .row .fr{width:50%}
.form .body .row .focus{padding:6px 25px 10px}
.form .body .row .flbl{font-size:11px;text-transform:uppercase}
.form .body .row .flbl span{float:right;color:#f00}
.form .body .row span.e{color:#f00;font-size:11px;font-family:'Roboto-Medium'}
.form .body .row.pad{padding:10px 25px}
.form .body .row.pad span{color:#f00}
.form .body .row.pad label{float:left;margin-top:5px;font-family:'Roboto-Regular';clear:both}
.form .body .row.pad .chk{float:left;margin:2px 7px 0px 0px}
.form .body .row.pad ol li{float:left;line-height:18px;font-family:'Roboto-Medium';text-align:justify;clear:both}
.form .foot{margin-top:10px;padding:10px 10px 20px;text-align:center}
.field{height:31px;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;font-size:13px;font-family:'Roboto-Regular';padding:5px;resize:none}
.field-file{padding:2px}
.field-textarea{height:100px}
.field:disabled,.field[readonly]{background-color:#ebebe4}
.button,.loader{width:85px;height:36px;line-height:36px;margin:0px auto;background:linear-gradient(#ffdc50, #ffcc00);border:1px solid #000;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;color:#000;font-size:13px;font-family:'Roboto-Medium';text-align:center;text-transform:uppercase;cursor:pointer}
.button:active{background:#ffdc50}
.button.default{width:auto;padding:0 10px;background-color:#fff;border-color:#d9d9d9;color:#333}
.button.default:active{border-color:#1d89e4;box-shadow:0px 1px 1px #e5e5e5 inset;-moz-box-shadow:0px 1px 1px #e5e5e5 inset;-webkit-box-shadow:0px 1px 1px #e5e5e5 inset}
.loader{width:125px;background:#fde78e;border-color:#dbc364;color:#9f8311;text-shadow:0px 1px 0px #fff;cursor:default;*opacity:0.5;display:none}
.output{margin-top:10px;padding:6px 10px;border:1px solid transparent;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;text-align:center;display:none}
.output.s{color:#3c763d;background:#dff0d8;border-color:#d6e9c6}
.output.e{color:#a94442;background:#f2dede;border-color:#ebccd1}
.output.e a{color:#a94442}
.footer{margin-top:50px;padding:10px 0px;text-align:center}.footer a{color:#567f15}
</style>
<script src="https://www.google.com/recaptcha/api.js"></script>
</head>
<body>
<?php
function menubar(){
global $mysqli;
$list = '';
$alignment = 'T';
$status = 'enabled';
$stmt = $mysqli->prepare("SELECT content FROM menubar WHERE (alignment = ? AND status = ?) ORDER BY sortnumber ASC") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ss', $alignment, $status);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($content);
$list .= '<ul class="fluid">';
while($stmt->fetch()):
$list .= '<li>'.html_entity_decode($content).'</li>';
endwhile;
$stmt->close();
$list .= '</ul>';
endif;
return $list;
}
$menubar = menubar();
function banner(){
global $mysqli, $imageurl, $bannersuploadpath, $bannersdir, $websitename;
$status = 'enabled';
$stmt = $mysqli->prepare("SELECT image FROM banners WHERE status = ? ORDER BY bannerid ASC") or die('An error occurred. Please try after some time.');
$stmt->bind_param('s', $status);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($image);
$stmt->fetch();
$stmt->close();
if($count_rows > 0):
if(($image && file_exists($bannersuploadpath.$image))):
$image = '<div class="fluid banner"><img src="'.$bannersdir.$image.'" alt="'.$websitename.'" /></div>';
else:
$image = '';
endif;
else:
$image = '';
endif;
return $image;
}
$banner = banner();
function sidebarcontent($category){
global $mysqli;
$list = '';
$status = 'enabled';
$stmt = $mysqli->prepare("SELECT content FROM menubar WHERE (category = ? AND status = ?) ORDER BY sortnumber ASC") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ss', $category, $status);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($content);
while($stmt->fetch()):
$list .= '<li>'.html_entity_decode($content).'</li>';
endwhile;
$stmt->close();
endif;
return $list;
}
function sidebar($alignment){
global $mysqli;
$list = '';
$status = 'enabled';
$stmt = $mysqli->prepare("SELECT category FROM menubar WHERE (alignment = ? AND status = ?) GROUP BY category ORDER BY catsortnumber ASC") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ss', $alignment, $status);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($category);
while($stmt->fetch()):
$list .= '<div class="fluid box">';
$list .= '<div class="head">'.html_entity_decode($category).'</div>';
$list .= '<ul class="body">'.sidebarcontent($category).'</ul>';
$list .= '</div>';
endwhile;
$stmt->close();
endif;
return $list;
}
$lsidebar = sidebar('L');
$rsidebar = sidebar('R');
echo <<<EOJ
<div class="fluid topbar">
<div class="container">
<div class="fr">
<a href="{$baseurl}submission_form">Submit Your Article</a>
</div>
</div>
</div>
<div class="container">
<div class="holder">
<div class="header">
<div class="fr">
<form action="{$baseurl}search" method="get" name="searchform" class="fluid" onsubmit="return q.value!='';">
<input type="text" name="q" placeholder="Search" autocomplete="off" class="field" />
<button type="submit" class="btn"><svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 20"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg></button>
</form>
</div>
</div>
<div class="nav">{$menubar}</div>
{$banner}
<div class="sidebar fl">{$lsidebar}</div>
<div class="justify fl">
EOJ;
if($pagename == $webbasename):
echo '<div class="head phead"><h1>Welcome to <span style="color:#f00">"' . $websitename . '"</span></h1><br><b>Affiliated to: CROP AND WEED SCIENCE SOCIETY (CWSS),<br>Registration No. S/IL/24559 - 2004</b></div>';
endif;
if(($pagename !== $webbasename && $pagename !== 'archives')):
echo '<div class="head chead">' . $page_title . '</div>';
endif;
?>