Example #1
0
require_once "../include/pictures.php";
require_once "../include/comments.php";
require_once "../include/cart.php";
require_once "../include/html_functions.php";
require_once "../include/functions.php";
session_start();
if (!isset($_GET['query'])) {
    http_redirect("/error.php?msg=Error, need to provide a query to search");
}
$pictures = Pictures::get_all_pictures_by_tag($_GET['query']);
?>

<?php 
our_header("", $_GET['query']);
?>

<div class="column prepend-1 span-24 first last">
<h2>Pictures that are tagged as '<?php 
echo $_GET['query'];
?>
'</h2>

   <?php 
thumbnail_pic_list($pictures);
?>

</div>


<?php 
our_footer();
Example #2
0
<?php

require_once "../include/users.php";
require_once "../include/pictures.php";
require_once "../include/html_functions.php";
require_once "../include/functions.php";
session_start();
require_login();
$user = Users::current_user();
$pictures = Pictures::get_purchased_pictures($user['id']);
?>

<?php 
our_header();
?>
<div class="column prepend-1 span-24 first last">
<h2>You have purchased the following pictures: </h2>
   <?php 
thumbnail_pic_list($pictures, "/pictures/highquality.php?key=highquality&");
?>
</div>


<?php 
our_footer();