Shopping List
+ + if (! isset($_SESSION['user_logged']) || $_SESSION['user_logged'] != 1) { +?> + + + } else { +?> + + /* Add a category (well, will soon): */ ?> + + ++ + } +?> + +
diff --git a/.gitignore b/.gitignore index 96374c4..0ed1d5b 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ $RECYCLE.BIN/ Network Trash Folder Temporary Items .apdisk + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..29febea --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/phpqrcode-git"] + path = lib/phpqrcode-git + url = git://git.code.sf.net/p/phpqrcode/git diff --git a/.htaccess b/.htaccess index 9862c54..bfe19a4 100644 --- a/.htaccess +++ b/.htaccess @@ -1,2 +1,2 @@ Options All -Indexes -DirectoryIndex api.php +DirectoryIndex index.php diff --git a/CONSTANTS.php b/CONSTANTS.php index 32a6cc5..287d56f 100644 --- a/CONSTANTS.php +++ b/CONSTANTS.php @@ -26,4 +26,5 @@ define('API_ERROR_DELETE', 6003); define('API_ERROR_SAVE', 6004); define('API_ERROR_CLEAR', 6005); + define('API_ERROR_LIST', 6006); ?> diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8a6b7f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM alpine + +RUN apk update \ + && apk add \ + nginx \ + php-fpm \ + php-json \ + php-pdo \ + php-pdo_sqlite \ + && rm -rf /var/cache/apk/* + +COPY . /shoppinglist + +VOLUME [ "/shoppinglist/data" ] + +RUN chown -R nginx:www-data /shoppinglist/ \ + && chown -R nginx:www-data /shoppinglist/data/ + +# Copy scripts +COPY docker/nginx.conf /etc/nginx/ +COPY docker/php-fpm.conf /etc/php/ +COPY docker/entrypoint.sh / + + +EXPOSE 80 + +ENV API_KEY="" + + +CMD [ "/entrypoint.sh" ] diff --git a/INSTALL.php b/INSTALL.php index fa05722..f69d732 100644 --- a/INSTALL.php +++ b/INSTALL.php @@ -1,288 +1,301 @@ -
- - - - - -(Item add inputs and buttons)
+| + | + + | ++ |
| ' + + ' | ' + + ' | '+name+' | '+ + ''+ + ' |