summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE19
-rw-r--r--about.php8
-rw-r--r--add_diary.php8
-rw-r--r--add_food.php8
-rw-r--r--add_meal.php8
-rw-r--r--add_user.php8
-rw-r--r--edit_account.php8
-rw-r--r--edit_diary.php8
-rw-r--r--edit_food.php8
-rw-r--r--edit_meal.php8
-rw-r--r--faq.php8
-rw-r--r--food_quantity.php8
-rw-r--r--food_search.php8
-rw-r--r--footer.php8
-rw-r--r--guide.php8
-rw-r--r--header.php8
-rw-r--r--index.php8
-rw-r--r--list_diaries.php8
-rw-r--r--list_foods.php8
-rw-r--r--list_meals.php8
-rw-r--r--login.php8
-rw-r--r--logout.php8
-rw-r--r--manage.php8
-rw-r--r--meta.php8
-rw-r--r--nutrient_chooser.php8
-rw-r--r--nutrient_search.php8
-rw-r--r--register.php8
-rw-r--r--resources.php8
-rw-r--r--sidebar_left.php8
-rw-r--r--sidebar_right.php8
-rw-r--r--view_diary.php8
-rw-r--r--view_food.php8
-rw-r--r--view_meal.php8
33 files changed, 275 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..09f68d3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Nathan Kinkade
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/about.php b/about.php
index b4ec67d..e23ffc0 100644
--- a/about.php
+++ b/about.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/add_diary.php b/add_diary.php
index 9a470e8..9bd8f6d 100644
--- a/add_diary.php
+++ b/add_diary.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/add_food.php b/add_food.php
index fe832c4..cd61fb7 100644
--- a/add_food.php
+++ b/add_food.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/add_meal.php b/add_meal.php
index ded79b0..0e3e7c7 100644
--- a/add_meal.php
+++ b/add_meal.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/add_user.php b/add_user.php
index 754c946..eeff66c 100644
--- a/add_user.php
+++ b/add_user.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
include "include/db.php";
# make sure that none of the fields are empty
diff --git a/edit_account.php b/edit_account.php
index 0555b54..e456162 100644
--- a/edit_account.php
+++ b/edit_account.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/edit_diary.php b/edit_diary.php
index 2a72e48..a85cd3a 100644
--- a/edit_diary.php
+++ b/edit_diary.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/edit_food.php b/edit_food.php
index f62d55a..6c60023 100644
--- a/edit_food.php
+++ b/edit_food.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/edit_meal.php b/edit_meal.php
index af61122..13665f6 100644
--- a/edit_meal.php
+++ b/edit_meal.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/faq.php b/faq.php
index 5bce2e0..ea046d4 100644
--- a/faq.php
+++ b/faq.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/food_quantity.php b/food_quantity.php
index d86c6b3..3d8a2a4 100644
--- a/food_quantity.php
+++ b/food_quantity.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/food_search.php b/food_search.php
index be5a8cc..73bba79 100644
--- a/food_search.php
+++ b/food_search.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/footer.php b/footer.php
index fba4055..0193f5b 100644
--- a/footer.php
+++ b/footer.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# grab the page
$smarty->assign("footer", $smarty->fetch("footer.tpl"));
diff --git a/guide.php b/guide.php
index 6909081..5e237b9 100644
--- a/guide.php
+++ b/guide.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/header.php b/header.php
index 8219f04..b08bb6d 100644
--- a/header.php
+++ b/header.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# this file allows us to change any info inside the
# <head> tags for any given file, while still using
# a common header file
diff --git a/index.php b/index.php
index 0f78903..5eacbe2 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/list_diaries.php b/list_diaries.php
index bea701a..02074bc 100644
--- a/list_diaries.php
+++ b/list_diaries.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/list_foods.php b/list_foods.php
index 9c8ccad..5c5b004 100644
--- a/list_foods.php
+++ b/list_foods.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/list_meals.php b/list_meals.php
index a066e5a..af2320d 100644
--- a/list_meals.php
+++ b/list_meals.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/login.php b/login.php
index ec71cde..8543bf0 100644
--- a/login.php
+++ b/login.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/logout.php b/logout.php
index 50dcd76..64e4011 100644
--- a/logout.php
+++ b/logout.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/manage.php b/manage.php
index 17fc443..4d3f56a 100644
--- a/manage.php
+++ b/manage.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/meta.php b/meta.php
index 1ed3d40..c3343f5 100644
--- a/meta.php
+++ b/meta.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# this script perhaps doesn't have the most apt name, but it made sense
# to me at the time I first named it.
# the purpose of this file is to allow adding custom <head>
diff --git a/nutrient_chooser.php b/nutrient_chooser.php
index 875801d..419afa6 100644
--- a/nutrient_chooser.php
+++ b/nutrient_chooser.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/nutrient_search.php b/nutrient_search.php
index 1eb1668..21531b4 100644
--- a/nutrient_search.php
+++ b/nutrient_search.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/register.php b/register.php
index e8cb2bf..56092e4 100644
--- a/register.php
+++ b/register.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/resources.php b/resources.php
index 8cb2540..2ce9ad5 100644
--- a/resources.php
+++ b/resources.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
include("config.php");
diff --git a/sidebar_left.php b/sidebar_left.php
index f1396ed..111d7c5 100644
--- a/sidebar_left.php
+++ b/sidebar_left.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# put the current meal items in an array if it exists
if ( isset($_SESSION['currentMeal']) ) {
$smarty->assign("currentMealItems", $_SESSION['currentMeal']);
diff --git a/sidebar_right.php b/sidebar_right.php
index 07290db..f46bdb1 100644
--- a/sidebar_right.php
+++ b/sidebar_right.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# grab the header
$smarty->assign("sidebar_right", $smarty->fetch("sidebar_right.tpl"));
diff --git a/view_diary.php b/view_diary.php
index 69f8cbd..c46816e 100644
--- a/view_diary.php
+++ b/view_diary.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/view_food.php b/view_food.php
index 6a8bc03..75a53e3 100644
--- a/view_food.php
+++ b/view_food.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");
diff --git a/view_meal.php b/view_meal.php
index bec1625..20ff14c 100644
--- a/view_meal.php
+++ b/view_meal.php
@@ -1,5 +1,13 @@
<?php
+/**
+ * Copyright (c) 2007 Nathan Kinkade
+ *
+ * This code is offered under an MIT (X11) license. For more information
+ * about the terms of this license see the file LICENSE included with this
+ * software or visit: http://www.opensource.org/licenses/mit-license.php
+ */
+
# include the main site config where various global variables
# and libraries are included
require("config.php");