7 |
8 |
9 | EOD;
10 |
11 | // get all our items
12 | $result = mysqli_query($db, "select * from users where name != 'Unknown' order by name asc;");
13 | while($row = mysqli_fetch_array($result))
14 | {
15 | $contents .= '
';
16 | }
17 |
18 | $contents .= <<
20 |
21 |
22 | EOD;
23 |
24 | ?>
--------------------------------------------------------------------------------
/css/svgs/fi-minus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
--------------------------------------------------------------------------------
/css/svgs/fi-video.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-adobe.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-contrast.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-braille.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-drive.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-home.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
--------------------------------------------------------------------------------
/css/svgs/fi-shield.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-windows.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-comment.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-page.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-folder.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-hacker-news.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-play.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-forrst.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-record.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-cloud.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-die-one.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-battery-empty.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-italic.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-pencil.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-facebook.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/actions/markaspurchased.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | if(!isset($_GET['pid']))
4 | {
5 | $errorMessage = "An unknown error occurred!";
6 | return 0;
7 | }
8 |
9 | function randomPurchasedValue($purchased)
10 | {
11 | $r = rand();
12 | if($purchased == "yes")
13 | {
14 | if($r % 2 != 1)
15 | $r--;
16 | }
17 | else
18 | {
19 | if($r %2 != 0)
20 | $r--;
21 | }
22 | return $r;
23 | }
24 |
25 | // update it in the database!
26 | $result = mysqli_query($db, "update items set purchased=aes_encrypt('".randomPurchasedValue($_GET['p'])."', '".$_GET['giftee']."'), purchaser=aes_encrypt('".$_GET['gifter']."', '".$_GET['giftee']."'), purchaseDate=aes_encrypt('".time()."', '".$_GET['giftee']."') where id='" . $_GET['pid'] . "';");
27 | if($result === FALSE)
28 | {
29 | $errorMessage = mysqli_error($db);
30 | return 0;
31 | }
32 |
33 | $notifications[] = array("success", "Your item was marked as purchased!");
34 |
35 | ?>
--------------------------------------------------------------------------------
/css/svgs/fi-bookmark.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-mobile.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-shopping-bag.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-stop.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-heart.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrow-down.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrow-left.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrow-up.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-music.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-play-video.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrow-right.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-check.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
--------------------------------------------------------------------------------
/css/svgs/fi-css3.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-flickr.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-html5.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-monitor.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-battery-full.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-prohibited.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-volume-none.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-battery-half.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-dropbox.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/js/foundation/foundation.alert.js:
--------------------------------------------------------------------------------
1 | ;(function ($, window, document, undefined) {
2 | 'use strict';
3 |
4 | Foundation.libs.alert = {
5 | name : 'alert',
6 |
7 | version : '5.0.0',
8 |
9 | settings : {
10 | animation: 'fadeOut',
11 | speed: 300, // fade out speed
12 | callback: function (){}
13 | },
14 |
15 | init : function (scope, method, options) {
16 | this.bindings(method, options);
17 | },
18 |
19 | events : function () {
20 | $(this.scope).off('.alert').on('click.fndtn.alert', '[data-alert] a.close', function (e) {
21 | var alertBox = $(this).closest("[data-alert]"),
22 | settings = alertBox.data('alert-init');
23 |
24 | e.preventDefault();
25 | alertBox[settings.animation](settings.speed, function () {
26 | $(this).trigger('closed').remove();
27 | settings.callback();
28 | });
29 | });
30 | },
31 |
32 | reflow : function () {}
33 | };
34 | }(jQuery, this, this.document));
35 |
--------------------------------------------------------------------------------
/css/svgs/fi-bold.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-path.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-lock.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-rewind.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-unlock.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-fast-forward.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-background-color.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-credit-card.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-info.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-mountains.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-filled.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-tablet-landscape.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-tablet-portrait.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-star.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-magnifying-glass.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-trash.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-plus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
--------------------------------------------------------------------------------
/css/svgs/fi-torso.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-comment-video.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-medium.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-filter.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-marker.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/login.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | if($_SESSION['loggedIn'] == 0 && (!isset($_GET['a']) || $_GET['a'] != 'login'))
4 | {
5 | require('views/login.php');
6 | exit(0);
7 | }
8 | else if(isset($_GET['a']) && $_GET['a'] == 'login')
9 | {
10 | $result = mysqli_query($db, "select * from users where lower(name)=lower('".$_POST['name']."') and password=PASSWORD('".$_POST['password']."') LIMIT 1");
11 | if(mysqli_num_rows($result) < 1)
12 | {
13 | $loginName = $_POST['name'];
14 | $loginError = "badpassword";
15 | // determine if it was a correct user name
16 | $result = mysqli_query($db, "select id from users where lower(name)=lower('".$_POST['name']."') LIMIT 1");
17 | if(mysqli_num_rows($result) < 1)
18 | $loginError = "badname";
19 | require('views/login.php');
20 | exit(0);
21 | }
22 | else
23 | {
24 | $_SESSION['loggedIn'] = True;
25 | $arr = mysqli_fetch_array($result);
26 | $_SESSION['id'] = $arr['id'];
27 | $_SESSION['name'] = $arr['name'];
28 | $_SESSION['email'] = $arr['email'];
29 | $_SESSION['flags'] = explode(',', $arr['flags']);
30 | }
31 | }
32 |
33 | ?>
--------------------------------------------------------------------------------
/css/svgs/fi-social-orkut.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-die-two.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-minus-circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-copy.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-camera.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-print.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-x.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/actions/deleteitem.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | // make sure we have at least a name - everything else is optional
4 | if(trim($_GET['did']) == '')
5 | {
6 | $notifications[] = array("warning", "Your item was not deleted because it's identifier was not specified!");
7 | return 0;
8 | }
9 |
10 | // get our item information
11 | $result = mysqli_query($db, "select * from items where id='".$_GET['did']."';");
12 | $item = mysqli_fetch_array($result);
13 |
14 | // and delete it!
15 | $result = mysqli_query($db, "delete from items where id='".$_GET['did']."';");
16 | if($result === FALSE)
17 | {
18 | $errorMessage = mysqli_error($db);
19 | return 0;
20 | }
21 |
22 | // also delete the item from any shopping lists
23 | $result = mysqli_query($db, "delete from shoppingLists where itemID='".$_GET['did']."';");
24 | if($result === FALSE)
25 | {
26 | $errorMessage = mysqli_error($db);
27 | return 0;
28 | }
29 |
30 | // notify by email
31 | include('actions/emailnotify.php');
32 | emailNotify($_SESSION['name'], 'delete', $item['name']);
33 |
34 | $notifications[] = array("success", "'" . $item['name'] . "' was deleted!");
35 |
36 | ?>
--------------------------------------------------------------------------------
/css/svgs/fi-flag.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Kenton Hamaluik
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-linkedin.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-rdio.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
--------------------------------------------------------------------------------
/css/svgs/fi-usb.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-layout.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/js/foundation/foundation.tab.js:
--------------------------------------------------------------------------------
1 | /*jslint unparam: true, browser: true, indent: 2 */
2 | ;(function ($, window, document, undefined) {
3 | 'use strict';
4 |
5 | Foundation.libs.tab = {
6 | name : 'tab',
7 |
8 | version : '5.0.1',
9 |
10 | settings : {
11 | active_class: 'active'
12 | },
13 |
14 | init : function (scope, method, options) {
15 | this.bindings(method, options);
16 | },
17 |
18 | events : function () {
19 | $(this.scope).off('.tab').on('click.fndtn.tab', '[data-tab] > dd > a', function (e) {
20 | e.preventDefault();
21 |
22 | var tab = $(this).parent(),
23 | target = $('#' + this.href.split('#')[1]),
24 | siblings = tab.siblings(),
25 | settings = tab.closest('[data-tab]').data('tab-init');
26 |
27 | tab.addClass(settings.active_class);
28 | siblings.removeClass(settings.active_class);
29 | target.siblings().removeClass(settings.active_class).end().addClass(settings.active_class);
30 | });
31 | },
32 |
33 | off : function () {},
34 |
35 | reflow : function () {}
36 | };
37 | }(jQuery, this, this.document));
38 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-zurb.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-foot.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-share.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-multiple.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-bing.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-underline.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-safety-cone.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-comments.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-projection-screen.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-comment-minus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
--------------------------------------------------------------------------------
/css/svgs/fi-eye.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-tumblr.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-target.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-graph-horizontal.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-annotate.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-compass.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-crop.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-play-circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-refresh.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
--------------------------------------------------------------------------------
/css/svgs/fi-photo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-die-three.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-eject.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-upload.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-download.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/js/foundation/foundation.offcanvas.js:
--------------------------------------------------------------------------------
1 | ;(function ($, window, document, undefined) {
2 | 'use strict';
3 |
4 | Foundation.libs.offcanvas = {
5 | name : 'offcanvas',
6 |
7 | version : '5.0.0',
8 |
9 | settings : {},
10 |
11 | init : function (scope, method, options) {
12 | this.events();
13 | },
14 |
15 | events : function () {
16 | $(this.scope).off('.offcanvas')
17 | .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
18 | e.preventDefault();
19 | $(this).closest('.off-canvas-wrap').toggleClass('move-right');
20 | })
21 | .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
22 | e.preventDefault();
23 | $(".off-canvas-wrap").removeClass("move-right");
24 | })
25 | .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
26 | e.preventDefault();
27 | $(this).closest(".off-canvas-wrap").toggleClass("move-left");
28 | })
29 | .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
30 | e.preventDefault();
31 | $(".off-canvas-wrap").removeClass("move-left");
32 | });
33 | },
34 |
35 | reflow : function () {}
36 | };
37 | }(jQuery, this, this.document));
38 |
--------------------------------------------------------------------------------
/css/svgs/fi-laptop.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-male-symbol.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-list-bullet.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-telephone.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-apple.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-zoom-out.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-graph-pie.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-clock.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-twitter.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-xbox.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-remove.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-previous.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-align-justify.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-pause.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/js/foundation/foundation.accordion.js:
--------------------------------------------------------------------------------
1 | ;(function ($, window, document, undefined) {
2 | 'use strict';
3 |
4 | Foundation.libs.accordion = {
5 | name : 'accordion',
6 |
7 | version : '5.0.1',
8 |
9 | settings : {
10 | active_class: 'active',
11 | toggleable: true
12 | },
13 |
14 | init : function (scope, method, options) {
15 | this.bindings(method, options);
16 | },
17 |
18 | events : function () {
19 | $(this.scope).off('.accordion').on('click.fndtn.accordion', '[data-accordion] > dd > a', function (e) {
20 | var accordion = $(this).parent(),
21 | target = $('#' + this.href.split('#')[1]),
22 | siblings = $('> dd > .content', target.closest('[data-accordion]')),
23 | settings = accordion.parent().data('accordion-init'),
24 | active = $('> dd > .content.' + settings.active_class, accordion.parent());
25 |
26 | e.preventDefault();
27 |
28 | if (active[0] == target[0] && settings.toggleable) {
29 | return target.toggleClass(settings.active_class);
30 | }
31 |
32 | siblings.removeClass(settings.active_class);
33 | target.addClass(settings.active_class);
34 | });
35 | },
36 |
37 | off : function () {},
38 |
39 | reflow : function () {}
40 | };
41 | }(jQuery, this, this.document));
42 |
--------------------------------------------------------------------------------
/actions/addtoshoppinglist.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | if(!isset($_GET['sid']))
4 | {
5 | $errorMessage = "An unknown error occurred!";
6 | return 0;
7 | }
8 |
9 | if($_GET['s'] == 'yes')
10 | {
11 | // only add it to the list if we didn't already have it on there
12 | $result = mysqli_query($db, "select count(id) from shoppingLists where owner=" . $_SESSION['id'] . " and itemID=" . $_GET['sid'] . ";");
13 | $row = mysqli_fetch_row($result);
14 | if($row[0] > 0)
15 | {
16 | $notifications[] = array("warning", "That item was already on your shopping list!");
17 | return 0;
18 | }
19 |
20 | // ok, it wasn't on there. go ahead and add it
21 | $result = mysqli_query($db, "insert into shoppingLists(owner, itemID) values(".$_SESSION['id'].", ".$_GET['sid'].");");
22 | if($result === FALSE)
23 | {
24 | $errorMessage = mysqli_error($db);
25 | return 0;
26 | }
27 |
28 | $notifications[] = array("success", "That item was added to your shopping list!");
29 | }
30 | else
31 | {
32 | // delete it!
33 | $result = mysqli_query($db, "delete from shoppingLists where owner=" . $_SESSION['id'] . " and itemID=" . $_GET['sid'] . ";");
34 | if($result === FALSE)
35 | {
36 | $errorMessage = mysqli_error($db);
37 | return 0;
38 | }
39 |
40 | $notifications[] = array("success", "That item was removed from your shopping list!");
41 | }
42 |
43 | ?>
--------------------------------------------------------------------------------
/css/svgs/fi-shopping-cart.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-next.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-text-color.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-folder-lock.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-paw.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-price-tag.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-lastfm.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-address-book.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
--------------------------------------------------------------------------------
/css/svgs/fi-checkbox.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-torso-female.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-web.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-folder-add.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-upload-cloud.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-align-center.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-align-left.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-list.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-die-four.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-graph-bar.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
25 |
--------------------------------------------------------------------------------
/css/svgs/fi-align-right.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-microphone.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-trophy.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-stumbleupon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-female-symbol.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
--------------------------------------------------------------------------------
/css/svgs/fi-male.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-clipboard.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-graph-trend.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
23 |
--------------------------------------------------------------------------------
/css/svgs/fi-key.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
--------------------------------------------------------------------------------
/css/svgs/fi-alert.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-paint-bucket.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-book.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-add.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-pinterest.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-torsos.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrows-expand.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-pdf.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-zerply.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/css/svgs/fi-arrows-compress.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-export.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-target-two.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-x-circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-edit.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-picasa.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-stack-overflow.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
22 |
--------------------------------------------------------------------------------
/css/svgs/fi-paperclip.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-github.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-page-search.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-social-blogger.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------
/css/svgs/fi-wrench.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
--------------------------------------------------------------------------------