Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if ($_SESSION['user_logged_in'] == ''){
- header('location: login.html');
- }
- ?>
- <html>
- <head>
- <title>.::PkKit::.</title>
- <!-- BootStrap -->
- <!-- Latest compiled and minified CSS -->
- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
- <!-- jQuery library -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
- <!-- Latest compiled JavaScript -->
- <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="style.css" type="text/css" />
- <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700|Lato:400,100,300,700,900' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" href="css/animate.css">
- <link rel="stylesheet" href="css/style.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
- <script src="gen_validatorv4.js" type="text/javascript"></script>
- </head>
- <body>
- <nav class="navbar navbar-inverse">
- <div class="container-fluid">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">PKKIT</a>
- </div>
- <div class="collapse navbar-collapse" id="myNavbar">
- <ul class="nav navbar-nav">
- <li class="active"><a href="myphotos.php">My Photos</a></li>
- <li><a href="aboutus.php">About Us</a></li>
- <li><a href="faqs.php">FAQs</a></li>
- <li><a href="support.php">Support</a></li>
- </ul>
- <ul class="nav navbar-nav navbar-right">
- <li><a href="share.php"><span class="glyphicon glyphicon-share"></span> Share Album</a></li>
- <li><a href="uploadphotos.php"><span class="glyphicon glyphicon-open"></span> Upload Photos</a></li>
- <li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
- </ul>
- </div>
- </div>
- </nav>
- </div>
- <?php
- session_start();
- $AlbumID = $_SESSION['album_id'];
- $Title = $_SESSION['album_title'];
- echo "<h2>" . $Title . "</h2>";
- ?>
- </div>
- <div id="body" class="container-fluid">
- <div class="login-box animated fadeInUp">
- <div class="box-header">
- <h2>Share an ablum</h2>
- </div>
- <form id='shareForm'action="sharealbum.php" method="POST">
- <label><?php $Title ?></label>
- <label for="Description">Enter the username of the person you want to share the album with:</label>
- <br />
- <div id='shareForm_sharewith_errorloc' ></div>
- <input type="text" id="sharewith" name="sharewith">
- <br />
- <br />
- <br />
- <button type="submit">Share</button>
- <br/>
- </form><script type="text/javascript">
- <!-- form validation using a validation script from www.javascript-coder.com -->
- var frmvalidator = new Validator("shareForm");
- frmvalidator.EnableOnPageErrorDisplay();
- frmvalidator.EnableMsgsTogether();
- <!-- validation for shareWith -->
- frmvalidator.addValidation("sharewith","req","Please enter the persons username");
- <!--frmvalidator.addValidation("sharewith","maxlen=20","Max length for the username is 20");->
- </script>
- <a href="myphotos.php"><p class="small">Cancel</p></a>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- $('#logo').addClass('animated fadeInDown');
- $("input:text:visible:first").focus();
- });
- $('#username').focus(function() {
- $('label[for="username"]').addClass('selected');
- });
- $('#username').blur(function() {
- $('label[for="username"]').removeClass('selected');
- });
- $('#password').focus(function() {
- $('label[for="password"]').addClass('selected');
- });
- $('#password').blur(function() {
- $('label[for="password"]').removeClass('selected');
- });
- </script>
- </html>
Add Comment
Please, Sign In to add comment