예제 #1
0
<?php

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>

예제 #2
0
require_once "include/guestbook.php";
if (isset($_POST["name"]) && isset($_POST["comment"])) {
    if ($_POST['name'] == "" || $_POST['comment'] == "") {
        $flash['error'] = "Must include both the name and comment field!";
    } else {
        $res = Guestbook::add_guestbook($_POST["name"], $_POST["comment"], False);
        if (!$res) {
            die(mysql_error());
        }
    }
}
$guestbook = Guestbook::get_all_guestbooks();
?>

<?php 
our_header("guestbook");
?>

<div class="column prepend-1 span-24 first last">
<h2>Guestbook</h2>
<?php 
error_message();
?>
<h4>See what people are saying about us!</h4>

<?php 
if ($guestbook) {
    foreach ($guestbook as $guest) {
        ?>
	<p class="comment"><?php 
        echo $guest["comment"];
예제 #3
0
                    Pictures::resize_image($filename, $filename . $main, 550, 10000000);
                    Pictures::resize_image($filename, $filename . $side, 128, 10000000);
                    Pictures::resize_image($filename, $filename . $thumb, 128, 128);
                    http_redirect(Pictures::$VIEW_PIC_URL . "?picid={$id}");
                    $file_uploaded = True;
                } else {
                    $flash['error'] = "Couldn't create your picture, something wrong with the database";
                }
            } else {
                $flash['error'] = "Couldn't move picture";
            }
        }
    }
}
if (!$file_uploaded) {
    our_header("upload");
    ?>
<div class="column prepend-1 span-24 first last" >

<h2> Upload a Picture! </h2>
<?php 
    error_message();
    ?>
<table style="width:320px">
  <form enctype="multipart/form-data" action="<?php 
    echo h($_SERVER['PHP_SELF']);
    ?>
" method="POST">
  <input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
       <tr><td>Tag :</td><td><input type="text" name="tag" style="" /></td></tr>
       <tr><td>File Name :</td><td>  <input type="text" name="name" /></td></tr>
예제 #4
0
<?php

require_once "include/html_functions.php";
require_once "include/users.php";
session_start();
require_login();
if (!isset($_GET['value'])) {
    http_redirect(Users::$HOME_URL);
}
?>

<?php 
our_header("home");
?>

<div class="column prepend-1 span-24 first last">
  <p>
    Your favorite color is <?php 
echo $_GET['value'];
?>
! and you've been entered in our contest!
  </p>    
</div>

<?php 
our_footer();
예제 #5
0
<?php

require_once "../include/users.php";
require_once "../include/pictures.php";
require_once "../include/cart.php";
require_once "../include/html_functions.php";
require_once "../include/functions.php";
session_start();
require_login();
$user = Users::current_user();
$cart = Cart::get_cart($user['id']);
if ($cart) {
    $items = Cart::cart_items($cart['id']);
    $coupons = Cart::cart_coupons($cart['id']);
}
our_header("cart");
?>
<div class="column prepend-1 span-22 first last">
  <h2>Welcome to your cart <?php 
echo h($user['login']);
?>
</h2>
  <form action="<?php 
echo h(Cart::$ACTION_URL . '?action=delete');
?>
" method="POST">
<?php 
if ($cart) {
    ?>
  <table>
    <tr>
예제 #6
0
파일: view.php 프로젝트: kostyll/WackoPicko
if ($usercheck) {
    require_login();
}
if (!isset($_GET['userid'])) {
    error_404();
}
$user = Users::get_user($_GET['userid']);
if (!$user) {
    error_404();
}
$pictures = Pictures::get_all_pictures_by_user($_GET['userid']);
?>


<?php 
our_header("");
?>
<div class="column prepend-1 span-24 first last">
   <?php 
if ($pictures) {
    ?>
<h2>These are <?php 
    echo h($user['login']);
    ?>
&#39;s Pictures: </h2>   

<?php 
    thumbnail_pic_list($pictures);
    ?>

</div>
예제 #7
0
파일: tos.php 프로젝트: kostyll/WackoPicko
<?php

session_start();
require_once "include/html_functions.php";
?>

<?php 
our_header();
?>

<div class="column prepend-1 span-22 first last">
<h2>WackoPicko Terms of Use</h2>
                <p >
                WackoPicko, Inc. ("WackoPicko" or "we") operates WackoPicko.com (the "<i><b>Site</b></i>"), 
                which is a content hosting and sharing service that allows Users (as defined in the following paragraph) 
                to store images and videos and share them across the internet and create unique personal profiles online. 
                The services offered by WackoPicko include the Site, content (including, without limitation, images, video 
                and accompanying audio) hosting and sharing on the Site and third party sites, applications and services, 
                content editors, links to partner providers, printing and other photographic merchandise, WackoPicko APIs, 
                and any other features, content, mobile services, WackoPicko branded URLs or applications offered from time 
                to time by WackoPicko in connection with WackoPicko’s business (collectively, the "WackoPicko Services"). 
                The WackoPicko Services are hosted in the United States.
                </p>
                <p >
                This Terms of Use Agreement ("Agreement") sets forth the legally binding terms for your use of the WackoPicko
                 Services. By using the WackoPicko Services, you agree to be bound by this Agreement, whether you are a "Visitor" 
                (which means that you simply browse or use the Site, including through a mobile device, or otherwise use the 
                WackoPicko Services without being registered) or you are a "Member" (which means that you have registered with WackoPicko).  
                The term "User" refers to a Visitor or a Member. You are only authorized to access this Site or to use the WackoPicko 
                Services, including materials and services contained in the Site (regardless of whether your access or use is intended) 
                if you agree to abide by all applicable laws and the terms of this Agreement.  Please read this Agreement carefully and save it.  
예제 #8
0
require_once "include/html_functions.php";
if (isset($_GET['date'])) {
    $date = $_GET['date'];
} else {
    $date = time();
}
$cur_text = date("l jS \\of F Y", $date);
$day = date("D", $date);
$is_party = $day == "Fri" || $day == "Sat";
// add a day
$next_time = $date + 24 * 60 * 60;
?>

<?php 
our_header("calendar");
?>


<div class="column prepend-1 span-24 first last">
  <h2>WackoPicko Calendar</h2>
  <p>
   What is going on <?php 
echo $cur_text;
?>
?
  </p>
  <?php 
if ($is_party) {
    ?>
  <p>We're throwing a party!<br />
예제 #9
0
<?php

require_once "../include/pictures.php";
require_once "../include/comments.php";
require_once "../include/html_functions.php";
require_once "../include/functions.php";
session_start();
$pictures = Pictures::get_recent_pictures(10);
?>

<?php 
our_header("recent");
?>

<div class="column prepend-1 span-24 first last">
<h2>Recently uploaded pictures</h2>


   <?php 
thumbnail_pic_list($pictures);
?>


</div>


<?php 
our_footer();
?>