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

session_start();
$subpalID= $_GET['id'];



//$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 content="" name="description" />
	<meta content="" name="author" />
     <!--[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]-->


    <!-- Add jQuery library -->
	<script type="text/javascript" src="fancybox-2.1.7/lib/jquery-1.10.2.min.js"></script>

	<!-- Add mousewheel plugin (this is optional) -->
	<script type="text/javascript" src="fancybox-2.1.7/lib/jquery.mousewheel.pack.js?v=3.1.3"></script>

	<!-- Add fancyBox main JS and CSS files -->
	<script type="text/javascript" src="fancybox-2.1.7/source/jquery.fancybox.pack.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="fancybox-2.1.7/source/jquery.fancybox.css?v=2.1.5" media="screen" />

	<!-- Add Button helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="fancybox-2.1.7/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
	<script type="text/javascript" src="fancybox-2.1.7/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>

	<!-- Add Thumbnail helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="fancybox-2.1.7/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
	<script type="text/javascript" src="fancybox-2.1.7/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

	<!-- Add Media helper (this is optional) -->
	<script type="text/javascript" src="fancybox-2.1.7/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

  <style>
       .panel-body a img {
           margin-bottom:5px !important;

       }
         .panel-body a{
             color:transparent!important;
         }
   </style>


	<script type="text/javascript">
		$(document).ready(function() {
			/*
			 *  Simple image gallery. Uses default settings
			 */

			$('.fancybox').fancybox();


		});
	</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>&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/><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($subpalID ==""){
                                     echo $nickname. "'s Gallery";
                                     $subpalID= $_SESSION['palid'];
                                   }
                                    else {
                                      $query = "select nickname from penpalsubscriber where palid  = '$subpalID'";
                                    //  echo $query;
                                      $queryresponse = getQuery1($query);
                                      $otherpalnickname= $queryresponse;
                                      echo $otherpalnickname . "'s Gallery";


                                    }
                                   ?>

                                 </strong>

                            </div>

                            <div class="panel-body">



  <ul>



                                  <?php

                                //  echo "nosa".$subpalID;
                                  $folder_path = 'assets/img/subscribers/'.$subpalID."/thumbnail/";

                                  $folder_path_gallery = 'assets/img/subscribers/'.$subpalID."/gallery/";

                                  $num_files = glob($folder_path . "*.{JPG,jpg,gif,png,bmp}", GLOB_BRACE);
                                   //print_r( $num_files);

                                  $folder = opendir($folder_path);

                                  if(count($num_files) > 0)
                                  {
                                  while(false !== ($file = readdir($folder)))
                                  {
                                    //  echo "nosa2";
                                  $file_path = $folder_path.$file;
                                  $file_path_gallery = $folder_path_gallery.$file;
                                  $extension = strtolower(pathinfo($file ,PATHINFO_EXTENSION));
                                  if($extension=='jpg' || $extension =='png' || $extension == 'gif' || $extension == 'bmp')
                                  {
                                  ?>

                                    <a class="fancybox" href="<?php echo $file_path_gallery; ?>" data-fancybox-group="gallery" title=""><img src="<?php echo $file_path; ?>" alt="" /></a>

                                  <?php
                                  }
                                  }
                                  }
                                  else
                                  {
                                  echo "<p style='color:red'>No Photos Found</p>";
                                  }
                                  closedir($folder);

                            ?>
</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/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>

    <!-- END PAGE LEVEL SCRIPTS -->


</body>

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

Youez - 2016 - github.com/yon3zu
LinuXploit