| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/penpaleurope.com/backup/app/Penpal/ |
Upload File : |
<?php
include "general.php";
include "onlineupdate.php";
//include "photoupdate.php";
include "connect.php";
include 'sendmailclient.php';
//include "penpalonline.php";
$friendpalid =$_GET['id'];
$query ="update penpalvisitors set messageread='1' where palidsender ='$friendpalid' and palidreceiver ='$palid'";
updateQuery($query);
$query ="update penpallikes set messageread='1' where palidsender ='$friendpalid' and palidreceiver ='$palid'";
updateQuery($query);
$likeother=0;
$visitorother=0;
$chatmessageother=0;
$query = "select count(*) as tot from penpallikes where palidreceiver = '$friendpalid'";
$queryresponse = getQuery1($query);
$likeother= $queryresponse;
$query = "select count(*) as tot from penpalvisitors where palidreceiver = '$friendpalid'";
$queryresponse = getQuery1($query);
$visitorother= $queryresponse;
//$query = "select count(*) as tot from penpalchatmessages where palidreceiver = '$friendpalid'";
$query = "select count(*) as tot from penpalchatmessages where palidsender = '$friendpalid'";
$queryresponse = getQuery1($query);
$chatmessageother= $queryresponse;
//$username = $_SESSION['username'];
//$receiver = $_SESSION['receiver'];
function rand_string( $length ) {
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
function rand_string2( $length ) {
$chars = "0123456789";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
function trackOfflineMessage($mpalid, $mpalidother){
//echo "nosa";
$query = "select status from penpalmessageoffline where palid ='$mpalid' and palidother ='$mpalidother'";
//echo $query;
//die();
$queryresponse = getQuery1($query);
if ($queryresponse != "#"){
$query = "Update penpalmessageoffline set status='1',LastMsgDate=now() where palid ='$mpalid' and palidother ='$mpalidother'";
updateQuery($query);
// echo $query;
}
else{
$query = "insert into penpalmessageoffline (palid,palidother,status,LastMsgDate) values ('$mpalid','$mpalidother','1',now())";
// echo $query;
//die();
updateQuery($query);
}
return "done";
}//penpalsessionsearch
function trackOfflineVisitor($mpalid, $mpalidother){
//echo "nosa";
$query = "select status from penpalvisitoroffline where palid ='$mpalid' and palidother ='$mpalidother'";
//echo $query;
//die();
$queryresponse = getQuery1($query);
if ($queryresponse != "#"){
$query = "Update penpalvisitoroffline set status='1',LastMsgDate=now() where palid ='$mpalid' and palidother ='$mpalidother'";
updateQuery($query);
// echo $query;
}
else{
$query = "insert into penpalvisitoroffline (palid,palidother,status,LastMsgDate) values ('$mpalid','$mpalidother','1',now())";
// echo $query;
//die();
updateQuery($query);
}
return "done";
}//penpalsessionsearch
function updateVisitor($mpalid,$mpalidother,$domain,$sender,$mfrom,$mfromname,$gate,$palsender,$palreceiver){
$query = "select palsender from penpalvisitors where palidsender ='$mpalid' and palidreceiver ='$mpalidother'";
$response = getQuery1($query);
if ($response != "#"){
$query = "Update penpalvisitors set datesent = now() where palidsender ='$mpalid' and palidreceiver ='$mpalidother'";
updateQuery($query);
}
else{
//int totalmessage = stoi(counter) + 1;
if($mpalid != $mpalidother){
$query = "insert into penpalvisitors (palidsender,palidreceiver) values ('" . $mpalid . "','" . $mpalidother . "')";
updateQuery($query);
}
}
//start of offline message.
//Get other pal status
$palidsender = $mpalid;
$palidreceiver=$mpalidother;
$query = "select online from penpalsubscriber where palid ='$palidreceiver'";
$queryresponse = getQuery1($query);
if ($queryresponse =="0"){
//check if pending offmessage
$query = "select status from penpalmessageoffline where palid ='$palidsender' and palidother ='$palidreceiver'";
$queryresponse = getQuery1($query);
if (($queryresponse =="0" ) || ($queryresponse =="#")){
$query = "select age,sex,country from penpalsubscriber where palid ='$palidsender'";
$queryresponse = getQuery3($query);
$profilesub="";
if ($queryresponse != "#"){
$sep= explode(",", $queryresponse);
$age =$sep[0]; // piece1
$sex= $sep[1]; // piece2
$country =$sep[2]; // piece1
$profilesub ="Nickname : $palsender, Age: $age, Sex: $sex, Country: $country ";
}
$mysub =ucwords($palsender)." viewed your Profile";
$palid =$palidsender;
$nickname=$palsender;
$nicknameother=$palreceiver;
$emailID = rand_string(30);
$encryID = rand_string(20);
$query = "insert into penpalemailmessage ( palid,palidother,messageid,encryption,status) values ('$palidsender','$palidreceiver','$emailID','$encryID','0')";
$queryresponse=updateQuery($query);
$myMessage ="<!doctype html> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <title>Responsive Email Template</title> <style type='text/css'> .ReadMsgBody {width: 100%; background-color: #ffffff;} .ExternalClass {width: 100%; background-color: #ffffff;} body {width: 100%; background-color: #ffffff; margin:0; padding:0; -webkit-font-smoothing: antialiased;font-family: Georgia, Times, serif} table {border-collapse: collapse;} @media only screen and (max-width: 640px) { body[yahoo] .deviceWidth {width:440px!important; padding:0;} body[yahoo] .center {text-align: center!important;} } @media only screen and (max-width: 479px) { body[yahoo] .deviceWidth {width:280px!important; padding:0;} body[yahoo] .center {text-align: center!important;} } </style> </head> <body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' yahoo='fix' style='font-family: Georgia, Times, serif'> <!-- Wrapper --> <table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'> <tr> <td width='100%' valign='top' bgcolor='#ffffff' style='padding-top:20px'> <!-- Start Header--> <table width='580' border='0' cellpadding='0' cellspacing='0' align='center' class='deviceWidth' style='margin:0 auto;'> <tr> <td width='100%' bgcolor='#ffffff'> <!-- Logo --> <table border='0' cellpadding='0' cellspacing='0' align='left' class='deviceWidth'> <tr> <td style='padding:10px 20px' class='center'> <a href='#'><img src='http://www.penpalafrica.com/email/penpalemaillogo.png' alt='PenpalAfrica Logo' border='0' /></a> </td> </tr> </table><!-- End Logo --> <!-- Nav --> <table border='0' cellpadding='0' cellspacing='0' align='right' class='deviceWidth'> <tr> <td class='center' style='font-size: 13px; color: #272727; font-weight: light; text-align: right; font-family: Georgia, Times, serif; line-height: 20px; vertical-align: middle; padding:10px 20px; font-style:italic'> <a href='http://www.penpalafrica.com/index.php' style='text-decoration: none; color: #3b3b3b;'>Home</a> <a href='http://www.penpalafrica.com/login.php' style='text-decoration: none; color: #3b3b3b;'>Login</a> <a href='http://www.penpalafrica.com/faq.html' style='text-decoration: none; color: #3b3b3b;'>FAQ</a> </td> </tr> </table><!-- End Nav --> </td> </tr> </table><!-- End Header --> <!-- 2 Column Images & Text Side by SIde --> <table width='580' border='0' cellpadding='0' cellspacing='0' align='center' class='deviceWidth' bgcolor='#202022' style='margin:0 auto;'> <tr> <td style='padding:10px 0'> <table align='left' width='49%' cellpadding='0' cellspacing='0' border='0' class='deviceWidth'> <tr> <td valign='top' align='center' class='center' style='padding-top:20px'> <a href='#' padding:0 10px 10px 0'><a href='#' style='text-decoration: none; font-size: 10px; color: #ccc; font-weight: bold; font-family:Arial, sans-serif '><img width='200' src='http://penpalafrica.com/penpal/assets/img/subscribers/##palid##/thumbnail/##palid##.jpg' alt='' border='0' style='border-radius: 4px; width: 200px; display: block;' class='deviceWidth' />##profile##</a> </td> </tr> </table> <table align='right' width='49%' cellpadding='0' cellspacing='0' border='0' class='deviceWidth'> <tr> <td style='font-size: 12px; color: #959595; font-weight: normal; text-align: left; font-family: Georgia, Times, serif; line-height: 24px; vertical-align: top; padding:10px 8px 10px 8px'> <table> <tr> <td valign='middle' style='padding:0 10px 10px 0'><a href='#' style='text-decoration: none; font-size: 16px; color: #ccc; font-weight: bold; font-family:Arial, sans-serif '>##nickname## viewed your Profile</a> </td> </tr> </table> <p style='mso-table-lspace:0;mso-table-rspace:0; margin:0'> ##nicknameother##, your profile has just been viewed by ##nickname##. Kindly click on the button below to read more about ##nickname##. <br/><br/> <table width='100' align='right'> <tr> <td bgcolor='#409ea8' style='padding:5px 0;background-color:#409ea8; border-top:1px solid #77d5ea; background-repeat:repeat-x' align='center'> <a href='http://www.penpalafrica.com/visitoroffline.php?id=##messageid##&en=##encry##' style=' color:#ffffff; font-size:13px; font-weight:bold; text-align:center; text-decoration:none; font-family:Arial, sans-serif; -webkit-text-size-adjust:none;'> Read Message </a> </td> </tr> </table> </p> </td> </tr> </table> </td> </tr> <tr> <td bgcolor='#fe7f00'><div style='height:6px'> </div></td> </tr> </table><!-- End 2 Column Images & Text Side by SIde --> <!-- 4 Columns --> <table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'> <tr> <td bgcolor='#363636' style='padding:30px 0'> <table width='580' border='0' cellpadding='10' cellspacing='0' align='center' class='deviceWidth' style='margin:0 auto;'> <tr> <td> <table width='45%' cellpadding='0' cellspacing='0' border='0' align='left' class='deviceWidth'> <tr> <td valign='top' style='font-size: 11px; color: #f1f1f1; color:#999; font-family: Arial, sans-serif; padding-bottom:20px' class='center'> You are receiving this email because<br/> 1.) You are subscriber of penpalafrica.com or<br/> 2.) You subscribed via <a href='http://www.penpalafrica.com' style='color:#999;text-decoration:underline;'>our website</a><br/> <br/><br/> Want to be removed? No problem, <a href='http://www.penpalafrica.com/unsubscribe.php?id=##messageid##&en=##encry##' style='color:#999;text-decoration:underline;'>click here</a> and we will not send you messages again. </td> </tr> </table> <table width='40%' cellpadding='0' cellspacing='0' border='0' align='right' class='deviceWidth'> <tr> <td valign='top' style='font-size: 11px; color: #f1f1f1; font-weight: normal; font-family: Georgia, Times, serif; line-height: 26px; vertical-align: top; text-align:right' class='center'> <a href=''><img src='http://www.penpalafrica.com/email/footer_rss.gif' width='42' height='42' alt='RSS Feed' title='RSS Feed' border='0' /></a> <a href=''><img src='http://www.penpalafrica.com/email/footer_twitter.gif' width='42' height='42' alt='Twitter' title='Twitter' border='0' /></a> <a href=''><img src='http://www.penpalafrica.com/email/footer_vm.gif' width='42' height='42' alt='Vimeo' title='Vimeo' border='0' /></a> <a href=''><img src='http://www.penpalafrica.com/email/footer_fb.gif' width='42' height='42' alt='Facebook' title='Facebook' border='0' /></a> <br /> <a href='#' style='text-decoration: none; color: #848484; font-weight: normal;'>support@penpalafrica.com</a> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table><!-- End 4 Columns --> </td> </tr> </table> <!-- End Wrapper --> <div style='display:none; white-space:nowrap; font:15px courier; color:#ffffff;'> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div> </body> </html> ";
//replace emailid and encryid in email messages
$myMessage =str_replace("##palid##",$palid,$myMessage);
$myMessage =str_replace("##nickname##",$nickname,$myMessage);
$myMessage =str_replace("##nicknameother##",$nicknameother,$myMessage);
$myMessage =str_replace("##profile##",$profilesub,$myMessage);
$myMessage =str_replace("##messageid##",$emailID,$myMessage);
$myMessage =str_replace("##encry##",$encryID,$myMessage);
$query = "select email from penpalsubscriber where palid ='$palidreceiver'";
$queryresponse = getQuery1($query);
$email = $queryresponse;
// echo $email. $gate;
$mymail = sendmailtoclient($email,$myMessage,$myMmessage,$mysub,$mfrom,$mfromname,$gate);
//update the penpalmessageoffline;
$response = trackOfflineVisitor($palidsender, $palidreceiver);
}
}
///end of offline message
}//end of updateVisitor
$query = $db->prepare("SELECT nickname,profile,online,palid FROM Penpalsubscriber where photo ='1' and palid !='".$_SESSION['palid'] ."' order by sn desc limit 100") ;
$query->execute();
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="UTF-8" />
<title>PenpalAfrica | Meet New Friends In Africa </title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="keywords" content="penpal, penpals, pen, pens, friend, friends, nigeria, africa, ghana, south africa, kenya, meet, new, friendship, boys, girls, male friends, female friends" />
<meta name="description" content="Penpal Africa, Meet New Friends in Africa, pan social network, connect with Africa people, Meet people from Africa, great africa countries, meet new frineds in Nigeria, Ghana and South Africa" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<!-- GLOBAL STYLES -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/theme.css" />
<link rel="stylesheet" href="assets/css/MoneAdmin2.css" />
<link rel="stylesheet" href="assets/plugins/Font-Awesome/css/font-awesome.css" />
<!--END GLOBAL STYLES -->
<!-- PAGE LEVEL STYLES -->
<link href="assets/css/layout2.css" rel="stylesheet" />
<link href="assets/plugins/flot/examples/examples.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/plugins/timeline/timeline.css" />
<!-- END PAGE LEVEL STYLES -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(document).ready(function() {
$("#likes").click(function(){
var palidsender ="<?php echo $palid ?>";
var palidreceiver ="<?php echo $friendpalid ?>";
$.ajax({
url : 'chatlikes.php',
type: 'Post',
data:{
palidsender:palidsender,
palidreceiver:palidreceiver
}
});
});
});
</script>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="padTop53 " >
<!-- MAIN WRAPPER -->
<div id="wrap" >
<!-- HEADER SECTION -->
<div id="top">
<nav class="navbar navbar-inverse navbar-fixed-top " style="padding-top: 10px;">
<a data-original-title="Show/Hide Menu" data-placement="bottom" data-tooltip="tooltip" class="accordion-toggle btn btn-primary btn-sm visible-xs" data-toggle="collapse" href="#menu" id="menu-toggle">
<i class="icon-align-justify"></i>
</a>
<!-- LOGO SECTION -->
<header class="navbar-header">
<a href="index.php" class="navbar-brand">
<img src="assets/img/penpallogo.png" alt="PenpalAfrica" />
</a>
</header>
<!-- END LOGO SECTION -->
<ul class="nav navbar-top-links navbar-right">
<!-- MESSAGES SECTION -->
<?php if ($expireDate < date('Y-m-d')) {
echo "<li><span class='label label-danger'>Your Subscription Expires $expireDate </span></span></li>";
}
else {
echo "<li><span class='label label-success'>Your Subscription Expires $expireDate </span></span></li>";
}
?>
<li> <a href="#buttonedModalRecharge" data-toggle="modal"><span class="label label-info">Recharge Your Account </span></a></li>
<!--ADMIN SETTINGS SECTIONS -->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-user "></i> <i class="icon-chevron-down "></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="icon-user"></i> User Profile </a>
</li>
<li><a href="#"><i class="icon-gear"></i> Settings </a>
</li>
<li class="divider"></li>
<li><a href="#buttonedModal" data-toggle="modal"><i class="icon-signout"></i> Logout</a>
</li>
</ul>
</li>
<!--END ADMIN SETTINGS -->
</ul>
</nav>
</div>
<!-- END HEADER SECTION -->
<!-- MENU SECTION -->
<div id="left" >
<div class="media user-media well-small">
<a class="user-link" href="gallery.php?id=<?php echo $_SESSION['palid'];?>">
<?php
if($photo == "1")
echo "<img class='media-object img-thumbnail user-img' alt='User Picture' src='assets/img/subscribers/".$_SESSION['palid']."/profile/". $_SESSION['palid'].".jpg' />";
else {
echo "<img class='media-object img-thumbnail user-img' alt='User Picture' src='assets/img/default/48.jpg' />";
}
?>
</a>
<br />
<div class="media-body">
<h5 class="media-heading"> <?php echo ucwords($_SESSION['nickname']); ?></h5>
<ul class="list-unstyled user-info">
<li>
<a class="btn btn-success btn-xs btn-circle" style="width: 10px;height: 12px;"></a> Online
</li>
</ul>
</div>
<br />
</div>
<ul id="menu" class="collapse">
<li class="panel active">
<a href="index.php" >
<i class="icon-table"></i> Home
</a>
</li>
<li class="panel ">
<li> <a href="#buttonedModalRecharge" data-toggle="modal"><i class="icon-user"></i> Recharge Your Account <span class="pull-right">
<i class="icon-angle-left"></i></a>
</span>
</a>
</li>
</li>
<li class="panel ">
<li><a href="palonline.php"><i class="icon-time"></i> Pals Online <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
<span class="label label-success"><?php echo $online; ?></span> </a>
</li>
</li>
<li class="panel ">
<li><a href="search.php"><i class="icon-search"></i> Search Pals<span class="pull-right">
<i class="icon-angle-left"></i>
</span></a>
</li>
</li>
<li class="panel ">
<li><a href="photo.php"><i class="icon-picture"></i> Add Photos <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
</a>
</li>
</li>
<li class="panel ">
<li><a href="messagebox.php"><i class="icon-envelope"></i> Messages <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
<?php
if($messageread >0)
echo " <span class='label label-danger'> $messageread</span> </a>";
else {
echo "</a>";
}
?>
</li>
</li>
<li class="panel ">
<li><a href="gallery.php"><i class="icon-film"></i> Gallery <span class="pull-right">
<i class="icon-angle-left"></i>
</span></a>
</li>
</li>
<li class="panel ">
<li><a href="likes.php"><i class="icon-heart"></i> Likes <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
<?php
if($likes >0)
echo " <span class='label label-info'> $likes</span> </a>";
else {
echo "</a>";
}
?>
</li>
</li>
<li class="panel ">
<li><a href="visitors.php"><i class="icon-globe"></i> Visitors <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
<?php
if($visitor >0)
echo " <span class='label label-warning'> $visitor</span> </a>";
else {
echo "</a>";
}
?>
</li>
</li>
<li class="panel ">
<li><a href="settings.php"><i class="icon-road"></i> Settings <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
</a>
</li>
</li>
<li class="panel ">
<li><a href="#buttonedModal" data-toggle="modal"><i class="icon-signout"></i> Logout Page <span class="pull-right">
<i class="icon-angle-left"></i>
</span>
</a>
</li>
</li>
</ul>
</div>
<!--END MENU SECTION -->
<!--PAGE CONTENT -->
<div id="content">
<!-- inner wrapper -->
<div class="inner" style="min-height: 700px;">
<!-- ONLINE SECTION -->
<br/><br/>
<div class="row">
<div class="col-lg-12">
<div class="chat-panel panel panel-success">
<div class="panel-heading">
<strong class="primary-font">
<?php
//echo $subpalID;
if($friendpalid ==""){
//header('Location: index.php');
echo "error loading profile";
die();
}
else {
$query = "select nickname from penpalsubscriber where palid = '$friendpalid'";
// echo $query;
$queryresponse = getQuery1($query);
$otherpalnickname= $queryresponse;
echo $otherpalnickname . "'s Gallery";
$queryresponse = updateVisitor($palid,$friendpalid,$domain,$sender,$mfrom,$mfromname,$gate,$nickname,$otherpalnickname);
}
?>
</strong>
</div>
<div class="panel-body">
<ul>
<?php
$db = new PDO('mysql:host=127.0.0.1;dbname=smartsmsrouter','smsEngine','guEnaR28T');
//$username = $_SESSION['username'];
//$receiver = $_SESSION['receiver'];
$query = $db->prepare("SELECT nickname,profile,palid,age,sex,country, location,lastlogin,likes,visitors,chatmessages,photo FROM Penpalsubscriber where vemail ='1' and palid='$friendpalid' order by sn") ;
//echo $query;
$query->execute();
//Fetch
while ($fetch = $query->fetch(PDO::FETCH_ASSOC))
{
$nicknameother =$fetch['nickname'];
$profileother =$fetch['profile'];
$palidother =$fetch['palid'];
$ageother = $fetch['age'];
$sexother =$fetch['sex'];
$countryother = $fetch['country'];
$locationother =$fetch['location'];
$lastlogin =$fetch['lastlogin'];
$myphoto =$fetch['photo'];
// $likes =$fetch['likes'];
//$visitors =$fetch['visitors'];
//$chatmessages =$fetch['chatmessages'];
echo "<div class='right clearfix'>
<a href='gallery.php?id=". $palidother ."'>
<span class='chat-img pull-left'>";
if($myphoto =="1")
echo "<img src='assets/img/subscribers/$palidother/thumbnail/$palidother.jpg' alt='User Avatar' class='img-circle' />";
else {
echo "<img src='assets/img/default/default.jpg' alt='User Avatar' class='img-circle' />";
}
echo "</span>
</a>
<div class='chat-body clearfix'>
<div class='header'>
<p class='primary-font '><b>Nickname</b><br>".ucwords($nicknameother)." </p>
</div>
<p>
<b>Profile</b><br>".ucwords($profileother)."
</p>
<p>
<b>Age</b>: $ageother <b>Sex</b>: $sexother <b>Location</b>: $locationother <b>Country</b>: $countryother <b>Likes</b>: $likeother <b>Vistors</b>: $visitorother <b>Chatmessages</b>: $chatmessageother <b>Last Seen</b>: $lastlogin
</p>
<p>
<span>
<a href='message.php?id=$palidother' class='btn btn-success btn-lg'>Chat</a>
<a href='gallery.php?id=$palidother' class='btn btn-primary btn-lg'>Gallery</a>
<a href='#likesModal' data-toggle='modal' class='btn btn-info btn-lg'>Likes</a>
</span>
</p>
</div>
</div>";
}
?>
</ul>
</div>
</div>
</div>
</div>
<!-- END ONLINE SECTION -->
<div class="row">
<div class="col-lg-12">
<div class="modal fade" id="likesModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content panel-primary">
<div class="modal-header panel-heading">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title center" id="H1" >Likes Page of <?php echo ucwords($nicknameother); ?></h4>
</div>
<div class="modal-body">
<?php
echo "<div class='right clearfix'>
<a href='gallery.php?id=". $palidother ."'>
<span class='chat-img pull-left'>
<img src='assets/img/subscribers/". $palidother."/thumbnail/". $palidother.".jpg' alt='User Profile' class='img-circle' />
</span></a>
</div>";
echo "<h3>Do you like ".ucwords($nicknameother)."?</h3>"
?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger pull-left" data-dismiss="modal" >No</button>
<a href ="#likes" id ="likes"><button type="button" class="btn btn-primary" data-dismiss="modal">Yes</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="modal fade" id="buttonedModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content panel-primary">
<div class="modal-header panel-heading">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="H1">Logout Page</h4>
</div>
<div class="modal-body">
Are you sure you want to Logout?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
<a href ="logout.php"><button type="button" class="btn btn-primary">Yes</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="modal fade" id="buttonedModalRecharge" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content panel-primary">
<div class="modal-header panel-heading">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="H1">Upgrade to Premium Membership (via SMS)</h4>
</div>
<div class="modal-body">
<?
$query = "select country,msisdn,date(expirydate) from penpalsubscriber where palid ='$palid'";
$queryresponse = getQuery3($query);
if ($queryresponse != "#"){
$sep= explode(",", $queryresponse);
$country =$sep[0]; // piece1
$msisdn= $sep[1]; // piece2
$expireDate =$sep[2]; // piece1
$newExpiryDate =getNewExpiryDate($expireDate);
$cnt =0;
if($country == "Nigeria"){
$rechargemessage ="<strong>Send Penpal to 33811 from $msisdn</strong>. <br><br>After Sending the SMS, You will get below response<br>Present Expiry Date: $expireDate <br> New Expiry Date: $newExpiryDate <br>SMS Costs N50.00 <br>For Two Weeks Subscription";
$rechargemessage .="<br><br><strong>Why Being a Premium Member?</strong><ul><li>Your Subscription is extended by Two Weeks</li><li>You enjoy unlimited chatting with members</li><li>You have access to chat with our popular members</li></ul>";
echo $rechargemessage;
$cnt =1;
}
if($country == "Ghana"){
$rechargemessage ="<strong>Send Penpal to 1903 from $msisdn</strong>. <br>Present Expiry Date: $expireDate <br> New Expiry Date: $newExpiryDate <br>SMS Costs CH₵0.50p <br>For Two Weeks Subscription";
$rechargemessage .="<br><br><strong>Why Being a Premium Member?</strong><ul><li>Your Subscription is extended by Two Weeks</li><li>You enjoy unlimited chatting with members</li><li>You have access to chat with our popular members</li></ul>";
echo $rechargemessage;
$cnt =1;
}
if($country == "South Africa"){
$rechargemessage ="<strong>Send Penpal to 33282 from $msisdn</strong>. <br>Present Expiry Date: $expireDate <br> New Expiry Date: $newExpiryDate <br>SMS Costs R1.50 <br>For Two Weeks Subscription";
$rechargemessage .="<br><br><strong>Why Being a Premium Member?</strong><ul><li>Your Subscription is extended by Two Weeks</li><li>You enjoy unlimited chatting with members</li><li>You have access to chat with our popular members</li></ul>";
echo $rechargemessage;
$cnt =1;
}
if($cnt ==0){
$query = "select displaymessage from penpalfortumocountry where country ='$country'";
$queryresponse = getQuery1($query);
if($queryresponse != "#"){
if(!empty($queryresponse)){
$queryresponse =str_replace("#msisdn#",$msisdn,$queryresponse);
$queryresponse =str_replace("#expirydate#",$expireDate,$queryresponse);
$queryresponse =str_replace("#newexpirydate#",$newExpiryDate,$queryresponse);
$queryresponse .="<br><br><strong>Why Being a Premium Member?</strong><ul><li>Your Subscription is extended by Two Weeks</li><li>You enjoy unlimited chatting with members</li><li>You have access to chat with our popular members</li></ul>";
$rechargemessage =$queryresponse;
echo $rechargemessage;
}else {
// call credit card
echo "<a href ='paypal.php' class='btn btn-warning btn-sm'>Pay with PayPal</a>";
}
}else{
//call credit card
echo "<a href ='paypal.php' class='btn btn-warning btn-sm'>Pay with PayPal</a>";
//header('Location: paypal.php');
//die();
}
}
}
?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div><!-- Inner wrapper -->
</div>
<!--END PAGE CONTENT -->
<!-- RIGHT STRIP SECTION -->
<div id="right">
<!--
<div class="well well-small">
<ul class="list-unstyled">
<li> online : <span>20%</span></li>
<li> Male : <span30>30%</span></li>
<li> Female : <span>70%</span></li>
</ul>
</div>
-->
<div class="well well-small">
<span>Pals Online </span><span class="pull-right"><small><? echo $online ?></small></span>
<br><br>
<span>Female Pals</span><span class="pull-right"><small><? echo $female ?>%</small></span>
<div class="progress mini">
<div class="progress-bar progress-bar-success" style="width: <? echo $female ?>%"></div>
</div>
<span>Male Pals</span><span class="pull-right"><small><? echo $male ?>%</small></span>
<div class="progress mini">
<div class="progress-bar progress-bar-info" style="width: <? echo $male ?>%"></div>
</div>
</div>
</div>
<!-- END RIGHT STRIP SECTION -->
</div>
<!--END MAIN WRAPPER -->
<!-- FOOTER -->
<div id="footer">
<p>© PenpalAfrica.com 2017 </p>
</div>
<!--END FOOTER -->
<!-- GLOBAL SCRIPTS -->
<script src="assets/plugins/jquery-2.0.3.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<!-- END GLOBAL SCRIPTS -->
<!-- END PAGE LEVEL SCRIPTS -->
<script src="assets/plugins/gritter/js/jquery.gritter.js"></script>
<script src="assets/js/moreNoti.js"></script>
</body>
<!-- END BODY -->
</html>