Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.145.7.253
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/test/

[  Home  ][  C0mmand  ][  Upload File  ]

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


<!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>VWC ASIANetwork Project</title>
    <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>
    </script>
  </head>
<style>
	div.img {
   	 margin: 5px;
    	border: 1px solid #ccc;
   	 float: left;
   	 width: 180px;
   	 height: auto;
}

div.img:hover {
     box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

div.img img {
    width: 100%;
	height: auto;
}

div.desc {
    padding: 15px;
    text-align: center;
}
#myInput {
    background-position: 1px 2px; /* Position the search icon */
    background-repeat: no-repeat; /* Do not repeat the icon image */
    width: 75%; /* Full-width */
    font-size: 16px; /* Increase font-size */
    padding: 12px 20px 12px 40px; /* Add some padding */
    border: 1px solid #ddd; /* Add a grey border */
    margin-bottom: 12px; /* Add some space below the input */
}
</style>
<?php

if($user->not_logged_in()){

?>
	<!-- NavBar -->
	<div class="container">
		<nav class="nav navbar-inverse" data-spy="affix" data-offset-top="197">
	      	<ul class="nav navbar-nav">

	         <div class="navbar-header">
	      			<a class="navbar-brand" href="index.php">ASIANetwork</a>
	   		 </div>
	   		 	<li><a href="index.php">Home</a></li>
		 		<li><a href="galleries.php">Galleries</a></li>
	        	<li><a href="contact.php">Contact</a></li>
	        </ul>
	        <ul class="nav navbar-nav navbar-right">
		 		<li><a href="user\signup.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
		 		<li><a href="user\login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
		    </ul>

		 </nav>
		  </div>
			 <div class="container">
			        <div class="row" style="text-align:center; border-bottom:1px dashed #ccc;  padding:0 0 20px 0; margin-bottom:40px;">
			            <h3 style="font-family:'Bree Serif', arial; font-weight:bold; font-size:30px;">
			                <br><br><br>
			                <p>Galleries</p>
			            </h3>
			        </div>
			        <label class="control-label" for="comment">Sort by:</label>
						<select name="sort">
							<option value="date">Post Date</option>
							<option value="loca">Location</option>
		                 </select>
		            <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for names..">

			        <ul class="row first">


		  <?php

		    	$sql = "select * from an_posts ORDER BY picID";
		    	$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">
			<li style="list-style-type:none">
			<a href="viewpost.php?id=<?php echo $row['picID']; ?>" >
		      <img src="user/<?php echo $path ?>"  alt="idOrder"></a>
		      <div class="desc">
		      	<a style="text-decoration: none" href="viewpost.php?id=<?php echo $row['picID']; ?>" ><p><?php $postTitle; ?></p></a>
		      	Location: <?php echo $location; ?>
		      </div>
		    </div>
		<?php
				}
	} else{


	$username = $user->grab_user();
	$userID = $user->grab_ID($username);


?>
	<!-- NavBar -->
	<div class="container">
			<nav class="nav navbar-inverse" data-spy="affix" data-offset-top="197">
		      	<ul class="nav navbar-nav">

		         <div class="navbar-header">
		      			<a class="navbar-brand" href="index.php">ASIANetwork</a>
		   		 </div>
		   		 	<li><a href="user/index.php">Home</a></li>
			 		<li><a href="galleries.php">Galleries</a></li>
			 		<li><a href="user/userpage.php"><?php echo $username; ?></a></li>
		        	<li><a href="contact.php">Contact</a></li>
		        </ul>

			 </nav>
			 </div>

				 <div class="container">
				        <div class="row" style="text-align:center; border-bottom:1px dashed #ccc;  padding:0 0 20px 0; margin-bottom:40px;">
				            <h3 style="font-family:'Bree Serif', arial; font-weight:bold; font-size:30px;">
				                <br><br><br>
				                <p>Galleries</p>
				            </h3>
				        </div>
				        <label class="control-label" for="comment">Sort by:</label>
							<select name="sort">
								<option value="date">Post Date</option>
								<option value="loca">Location</option>
			                 </select>
			            <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for names..">

				        <ul class="row first">


			  <?php

			    	$sql = "select * from an_posts ORDER BY picID";
			    	$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">
				<li style="list-style-type:none">
				<a href="viewpost.php?id=<?php echo $row['picID']; ?>" >
			      <img src="user/<?php echo $path ?>"  alt="idOrder"></a>
			      <div class="desc">
			      	<a style="text-decoration: none" href="viewpost.php?id=<?php echo $row['picID']; ?>" ><p><?php $postTitle; ?></p></a>
			      	Location: <?php echo $location; ?>
			      </div>

			    </div>
			<?php
					}
				}
			?>
	</div>

 </body>
 </html>

Stv3n404 - 2023