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/messagebox.php
<?php
include "general.php";
include "onlineupdate.php";
include "photoupdate.php";
//include "penpalonline.php";

//$username = $_SESSION['username'];
//$receiver = $_SESSION['receiver'];

?>
<!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]-->
</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>&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">Messages from Pals</strong>

                            </div>

                            <div class="panel-body">
                                <ul class="chat">
                                    <?php
                                    $query = $db->prepare("select  palidsender,palsender,message from Penpalchatmessages where palidreceiver = '$palid' group by palidsender order by sn desc ") ;
                                    $query->execute();

                                  //Fetch
                            $cnt1 = 1;
                            while ($fetch = $query->fetch(PDO::FETCH_ASSOC))
                            {
                            $nicknameother =$fetch['palsender'];
                            //$profileother =$fetch['message'];
                            $palidother =$fetch['palidsender'];
                          //  $onlinepals =$fetch['online'];

                            // get lastest message from other pal
                            $query2 ="select  substring(message,1,60) from Penpalchatmessages where palidreceiver = '$palid' and palidsender ='$palidother' order by sn desc limit 1";
                            $profileother =getQuery1($query2);

                            $query4 ="select  count(*) as tot from Penpalchatmessages where palidreceiver = '$palid' and palidsender ='$palidother' and messageread='0' order by sn desc limit 1";
                            //echo $query4;
                            $messagestatus =getQuery1($query4);

                            if ($messagestatus >=1)
                               $check = " (<b>Message Not Opened</b>) ";
                            else {
                               $check = " (Message Opened) " ;
                            }


                            //get pal online status
                            $query2 ="select  online from Penpalsubscriber where palid = '$palidother'";
                            $onlinepal =getQuery1($query2);


                            echo  "<li class='left clearfix'>
                            <span class='chat-img pull-left'>
                                    <img src='assets/img/subscribers/$palidother/profile/$palidother.jpg' alt='User Avatar' class='img-circle' />
                                </span>
                              <div class='chat-body clearfix'>
                                <div class='header'>
                                <a href='message.php?id=". $palidother ."'><strong class='primary-font '> ".ucwords($nicknameother)." </strong></a>
                                        <br />
                                       <p>
                                           ".ucwords($profileother)."
                                       </p>

                                        <small class='pull-left text-muted'>";

                                              if ($onlinepal =='1')
                                              echo " <a class='btn btn-success btn-xs btn-circle' style='width: 10px;height: 12px;'></a> Online".$check;
                                              else
                                                echo " <a class='btn btn-warning btn-xs btn-circle' style='width: 10px;height: 12px;'></a> Offline".$check;


                          echo           "   </small></div></div></li>";



                            }



                            ?>

                          </ul>
                        </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">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&#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 -->


    <!-- END PAGE LEVEL SCRIPTS -->


</body>

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

Youez - 2016 - github.com/yon3zu
LinuXploit