| 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 "penpalonline.php";
//$username = $_SESSION['username'];
//$receiver = $_SESSION['receiver'];
//$query = $db->prepare("SELECT nickname,profile,online,palid FROM Penpalsubscriber where photo ='$_SESSION['palid']'") ;
//$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" />
<link rel="stylesheet" href="assets/css/bootstrap-fileupload.min.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://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="uploadPhoto.js"></script>
<style>
#loading
{
display:none;
color:PURPLE;
}
</style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="padTop53 " >
<div id="wrap" >
<!-- 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>
<div class="row">
<div class="col-lg-12">
<div class="chat-panel panel panel-success">
<div class="panel-heading">
<strong class="primary-font">Upload Your Profile Picture ( before continuing)</strong>
</div>
<div class="body">
<?php
if ($photo =="0"){
//no profile picture
echo " <form class='form-horizontal' id ='idForm' enctype='multipart/form-data'>
<div class='form-group'>
<br />
<label class='control-label col-lg-1'></label>
<div class='col-lg-8'>
<div class='fileupload fileupload-new' data-provides='fileupload'>
<div class='fileupload-new thumbnail ' style='width: 180px; height: 180px;'><img src='assets/img/default/default.jpg' alt='' /></div>
<div class='fileupload-preview fileupload-exists thumbnail' style='max-width: 180px; max-height: 180px; line-height: 20px; '>
</div>
<br />
<div>
<span class='btn btn-file btn-primary'><span class='fileupload-new'>Select Profile Picture</span><span class='fileupload-exists'>Change Profile Picture</span><input type='file' name='file'/></span><br/><br/>
<button type='submit' class='btn btn-success fileupload-exists' >Save Picture</button>
</div>
</div>
<a href='index.php' class='btn btn-warning fileupload-exists' >Back To Main Menu</a>
<div id='loading'>Please wait! Loading...</div>
<div id='uploadResult'></div>
</div>
</div>
</form>";
}else {
// photo uploaded
echo " <form class='form-horizontal' id ='idForm' enctype='multipart/form-data'>
<div class='form-group'>
<br />
<label class='control-label col-lg-1'></label>
<div class='col-lg-8'>
<div class='fileupload fileupload-new' data-provides='fileupload'>
<div class='fileupload-new thumbnail ' style='width: 200px; height: 200px;'><img src='assets/img/subscribers/".$_SESSION['palid']."/thumbnail/".$_SESSION['palid'].".jpg' alt='' /></div>
<div class='fileupload-preview fileupload-exists thumbnail' style='max-width: 200px; max-height: 200px; line-height: 20px; '>
<a href='index.php' class='btn btn-danger fileupload-exists' >Back</a>
</div>
<br />
<div>
<span class='btn btn-file btn-primary'><span class='fileupload-new'>Change Profile Picture</span><span class='fileupload-exists'>Change Picture</span><input type='file' name='file'/></span>
<button type='submit' class='btn btn-success fileupload-exists' >Save Picture</button>
</div>
</div>
<a href='addphoto.php' class='btn btn-info fileupload-exists' >Add More Pictures</a><br><br>
<a href='index.php' class='btn btn-warning fileupload-exists' >Back To Main Menu</a>
<div id='loading'>Please wait! Loading...</div>
<div id='uploadResult'></div>
</div>
</div>
</form>";
}
?>
</div>
</div>
</div>
</div>
<!-- END ONLINE SECTION -->
<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">Recharge Account (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>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 -->
<!-- PAGE LEVEL SCRIPTS -->
<script src="assets/plugins/flot/jquery.flot.js"></script>
<script src="assets/plugins/flot/jquery.flot.resize.js"></script>
<script src="assets/plugins/flot/jquery.flot.time.js"></script>
<script src="assets/plugins/flot/jquery.flot.stack.js"></script>
<script src="assets/js/for_index.js"></script>
<script src="assets/plugins/jasny/js/bootstrap-fileupload.js"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>
</body>
<!-- END BODY -->
</html>