From 436fd4d2cd5a4b5bb63abceb1e7b4e32c0948e0f Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Wed, 11 Dec 2024 11:50:28 +0200 Subject: [PATCH] Restructuring repo --- .gitignore | 1 - data/.gitignore | 5 +++++ {inc => data}/.htaccess | 0 {api => src/api}/.htaccess | 0 {api => src/api}/index.php | 0 src/inc/.htaccess | 2 ++ {inc => src/inc}/database.php | 2 +- index.php => src/index.php | 0 login.php => src/login.php | 0 logout.php => src/logout.php | 0 {snufficon => src/snufficon}/angel.png | Bin {snufficon => src/snufficon}/angry.png | Bin {snufficon => src/snufficon}/cat_face.png | Bin {snufficon => src/snufficon}/clown.png | Bin {snufficon => src/snufficon}/cold.png | Bin {snufficon => src/snufficon}/cold_sweat.png | Bin {snufficon => src/snufficon}/cowboy.png | Bin {snufficon => src/snufficon}/cross_eyes.png | Bin .../snufficon}/disappointed_relieved.png | Bin {snufficon => src/snufficon}/drool.png | Bin {snufficon => src/snufficon}/excited.png | Bin {snufficon => src/snufficon}/exploding_head.png | Bin {snufficon => src/snufficon}/expressionless.png | Bin {snufficon => src/snufficon}/fearful.png | Bin {snufficon => src/snufficon}/flush.png | Bin {snufficon => src/snufficon}/giggle.png | Bin {snufficon => src/snufficon}/hand_over_mouth.png | Bin {snufficon => src/snufficon}/happy.png | Bin {snufficon => src/snufficon}/head_bandage.png | Bin {snufficon => src/snufficon}/heart_eyes.png | Bin {snufficon => src/snufficon}/holding_back_tears.png | Bin {snufficon => src/snufficon}/hot.png | Bin {snufficon => src/snufficon}/hug.png | Bin {snufficon => src/snufficon}/joy.png | Bin {snufficon => src/snufficon}/kissing.png | Bin {snufficon => src/snufficon}/kissing_heart.png | Bin {snufficon => src/snufficon}/laughing.png | Bin {snufficon => src/snufficon}/lying.png | Bin {snufficon => src/snufficon}/mask.png | Bin {snufficon => src/snufficon}/melting.png | Bin {snufficon => src/snufficon}/money_face.png | Bin {snufficon => src/snufficon}/mouthless.png | Bin {snufficon => src/snufficon}/nerd.png | Bin {snufficon => src/snufficon}/partying.png | Bin {snufficon => src/snufficon}/peeking_eye.png | Bin {snufficon => src/snufficon}/pleading_face.png | Bin {snufficon => src/snufficon}/raging.png | Bin {snufficon => src/snufficon}/raised_eyebrow.png | Bin {snufficon => src/snufficon}/rolling_eyes.png | Bin {snufficon => src/snufficon}/sad.png | Bin {snufficon => src/snufficon}/saluting.png | Bin {snufficon => src/snufficon}/scream.png | Bin {snufficon => src/snufficon}/see_no_evil.png | Bin {snufficon => src/snufficon}/shrug.png | Bin {snufficon => src/snufficon}/shush.png | Bin {snufficon => src/snufficon}/sick.png | Bin {snufficon => src/snufficon}/sleeping.png | Bin {snufficon => src/snufficon}/smiling.png | Bin .../snufficon}/smiling_with_hearts.png | Bin {snufficon => src/snufficon}/smiling_with_stars.png | Bin {snufficon => src/snufficon}/smirk.png | Bin {snufficon => src/snufficon}/sneeze.png | Bin {snufficon => src/snufficon}/sob.png | Bin {snufficon => src/snufficon}/spiral_eyes.png | Bin {snufficon => src/snufficon}/star_struck.png | Bin {snufficon => src/snufficon}/sunglasses.png | Bin {snufficon => src/snufficon}/swearing.png | Bin {snufficon => src/snufficon}/sweat.png | Bin {snufficon => src/snufficon}/sweat_smile.png | Bin {snufficon => src/snufficon}/thermometer.png | Bin {snufficon => src/snufficon}/thinking.png | Bin {snufficon => src/snufficon}/thumbs_down.png | Bin {snufficon => src/snufficon}/thumbs_up.png | Bin {snufficon => src/snufficon}/tongue_out.png | Bin .../snufficon}/tongue_out_closed_eyes.png | Bin {snufficon => src/snufficon}/tongue_out_winking.png | Bin {snufficon => src/snufficon}/triumph.png | Bin {snufficon => src/snufficon}/upside_down.png | Bin {snufficon => src/snufficon}/vomiting.png | Bin {snufficon => src/snufficon}/wink.png | Bin {snufficon => src/snufficon}/woozy.png | Bin {snufficon => src/snufficon}/yawning.png | Bin {snufficon => src/snufficon}/zany.png | Bin {snufficon => src/snufficon}/zipper_mouth.png | Bin style.css => src/style.css | 0 85 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 data/.gitignore rename {inc => data}/.htaccess (100%) rename {api => src/api}/.htaccess (100%) rename {api => src/api}/index.php (100%) create mode 100755 src/inc/.htaccess rename {inc => src/inc}/database.php (99%) rename index.php => src/index.php (100%) rename login.php => src/login.php (100%) rename logout.php => src/logout.php (100%) rename {snufficon => src/snufficon}/angel.png (100%) rename {snufficon => src/snufficon}/angry.png (100%) rename {snufficon => src/snufficon}/cat_face.png (100%) rename {snufficon => src/snufficon}/clown.png (100%) rename {snufficon => src/snufficon}/cold.png (100%) rename {snufficon => src/snufficon}/cold_sweat.png (100%) rename {snufficon => src/snufficon}/cowboy.png (100%) rename {snufficon => src/snufficon}/cross_eyes.png (100%) rename {snufficon => src/snufficon}/disappointed_relieved.png (100%) rename {snufficon => src/snufficon}/drool.png (100%) rename {snufficon => src/snufficon}/excited.png (100%) rename {snufficon => src/snufficon}/exploding_head.png (100%) rename {snufficon => src/snufficon}/expressionless.png (100%) rename {snufficon => src/snufficon}/fearful.png (100%) rename {snufficon => src/snufficon}/flush.png (100%) rename {snufficon => src/snufficon}/giggle.png (100%) rename {snufficon => src/snufficon}/hand_over_mouth.png (100%) rename {snufficon => src/snufficon}/happy.png (100%) rename {snufficon => src/snufficon}/head_bandage.png (100%) rename {snufficon => src/snufficon}/heart_eyes.png (100%) rename {snufficon => src/snufficon}/holding_back_tears.png (100%) rename {snufficon => src/snufficon}/hot.png (100%) rename {snufficon => src/snufficon}/hug.png (100%) rename {snufficon => src/snufficon}/joy.png (100%) rename {snufficon => src/snufficon}/kissing.png (100%) rename {snufficon => src/snufficon}/kissing_heart.png (100%) rename {snufficon => src/snufficon}/laughing.png (100%) rename {snufficon => src/snufficon}/lying.png (100%) rename {snufficon => src/snufficon}/mask.png (100%) rename {snufficon => src/snufficon}/melting.png (100%) rename {snufficon => src/snufficon}/money_face.png (100%) rename {snufficon => src/snufficon}/mouthless.png (100%) rename {snufficon => src/snufficon}/nerd.png (100%) rename {snufficon => src/snufficon}/partying.png (100%) rename {snufficon => src/snufficon}/peeking_eye.png (100%) rename {snufficon => src/snufficon}/pleading_face.png (100%) rename {snufficon => src/snufficon}/raging.png (100%) rename {snufficon => src/snufficon}/raised_eyebrow.png (100%) rename {snufficon => src/snufficon}/rolling_eyes.png (100%) rename {snufficon => src/snufficon}/sad.png (100%) rename {snufficon => src/snufficon}/saluting.png (100%) rename {snufficon => src/snufficon}/scream.png (100%) rename {snufficon => src/snufficon}/see_no_evil.png (100%) rename {snufficon => src/snufficon}/shrug.png (100%) rename {snufficon => src/snufficon}/shush.png (100%) rename {snufficon => src/snufficon}/sick.png (100%) rename {snufficon => src/snufficon}/sleeping.png (100%) rename {snufficon => src/snufficon}/smiling.png (100%) rename {snufficon => src/snufficon}/smiling_with_hearts.png (100%) rename {snufficon => src/snufficon}/smiling_with_stars.png (100%) rename {snufficon => src/snufficon}/smirk.png (100%) rename {snufficon => src/snufficon}/sneeze.png (100%) rename {snufficon => src/snufficon}/sob.png (100%) rename {snufficon => src/snufficon}/spiral_eyes.png (100%) rename {snufficon => src/snufficon}/star_struck.png (100%) rename {snufficon => src/snufficon}/sunglasses.png (100%) rename {snufficon => src/snufficon}/swearing.png (100%) rename {snufficon => src/snufficon}/sweat.png (100%) rename {snufficon => src/snufficon}/sweat_smile.png (100%) rename {snufficon => src/snufficon}/thermometer.png (100%) rename {snufficon => src/snufficon}/thinking.png (100%) rename {snufficon => src/snufficon}/thumbs_down.png (100%) rename {snufficon => src/snufficon}/thumbs_up.png (100%) rename {snufficon => src/snufficon}/tongue_out.png (100%) rename {snufficon => src/snufficon}/tongue_out_closed_eyes.png (100%) rename {snufficon => src/snufficon}/tongue_out_winking.png (100%) rename {snufficon => src/snufficon}/triumph.png (100%) rename {snufficon => src/snufficon}/upside_down.png (100%) rename {snufficon => src/snufficon}/vomiting.png (100%) rename {snufficon => src/snufficon}/wink.png (100%) rename {snufficon => src/snufficon}/woozy.png (100%) rename {snufficon => src/snufficon}/yawning.png (100%) rename {snufficon => src/snufficon}/zany.png (100%) rename {snufficon => src/snufficon}/zipper_mouth.png (100%) rename style.css => src/style.css (100%) diff --git a/.gitignore b/.gitignore index a5cee70..e69de29 100755 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -/database.db \ No newline at end of file diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..71059e1 --- /dev/null +++ b/data/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore +!.htaccess \ No newline at end of file diff --git a/inc/.htaccess b/data/.htaccess similarity index 100% rename from inc/.htaccess rename to data/.htaccess diff --git a/api/.htaccess b/src/api/.htaccess similarity index 100% rename from api/.htaccess rename to src/api/.htaccess diff --git a/api/index.php b/src/api/index.php similarity index 100% rename from api/index.php rename to src/api/index.php diff --git a/src/inc/.htaccess b/src/inc/.htaccess new file mode 100755 index 0000000..ff2beb8 --- /dev/null +++ b/src/inc/.htaccess @@ -0,0 +1,2 @@ +order deny,allow +deny from all diff --git a/inc/database.php b/src/inc/database.php similarity index 99% rename from inc/database.php rename to src/inc/database.php index e2605f2..2860e86 100755 --- a/inc/database.php +++ b/src/inc/database.php @@ -5,7 +5,7 @@ if(count(get_included_files()) ==1) { } class DataBase extends SQLite3 { function __construct() { - $this->open('database.db'); + $this->open('data/database.db'); $this->exec('PRAGMA foreign_keys=ON;'); $this->exec('PRAGMA full_column_names=ON;'); $this->exec('PRAGMA short_column_names=OFF;'); diff --git a/index.php b/src/index.php similarity index 100% rename from index.php rename to src/index.php diff --git a/login.php b/src/login.php similarity index 100% rename from login.php rename to src/login.php diff --git a/logout.php b/src/logout.php similarity index 100% rename from logout.php rename to src/logout.php diff --git a/snufficon/angel.png b/src/snufficon/angel.png similarity index 100% rename from snufficon/angel.png rename to src/snufficon/angel.png diff --git a/snufficon/angry.png b/src/snufficon/angry.png similarity index 100% rename from snufficon/angry.png rename to src/snufficon/angry.png diff --git a/snufficon/cat_face.png b/src/snufficon/cat_face.png similarity index 100% rename from snufficon/cat_face.png rename to src/snufficon/cat_face.png diff --git a/snufficon/clown.png b/src/snufficon/clown.png similarity index 100% rename from snufficon/clown.png rename to src/snufficon/clown.png diff --git a/snufficon/cold.png b/src/snufficon/cold.png similarity index 100% rename from snufficon/cold.png rename to src/snufficon/cold.png diff --git a/snufficon/cold_sweat.png b/src/snufficon/cold_sweat.png similarity index 100% rename from snufficon/cold_sweat.png rename to src/snufficon/cold_sweat.png diff --git a/snufficon/cowboy.png b/src/snufficon/cowboy.png similarity index 100% rename from snufficon/cowboy.png rename to src/snufficon/cowboy.png diff --git a/snufficon/cross_eyes.png b/src/snufficon/cross_eyes.png similarity index 100% rename from snufficon/cross_eyes.png rename to src/snufficon/cross_eyes.png diff --git a/snufficon/disappointed_relieved.png b/src/snufficon/disappointed_relieved.png similarity index 100% rename from snufficon/disappointed_relieved.png rename to src/snufficon/disappointed_relieved.png diff --git a/snufficon/drool.png b/src/snufficon/drool.png similarity index 100% rename from snufficon/drool.png rename to src/snufficon/drool.png diff --git a/snufficon/excited.png b/src/snufficon/excited.png similarity index 100% rename from snufficon/excited.png rename to src/snufficon/excited.png diff --git a/snufficon/exploding_head.png b/src/snufficon/exploding_head.png similarity index 100% rename from snufficon/exploding_head.png rename to src/snufficon/exploding_head.png diff --git a/snufficon/expressionless.png b/src/snufficon/expressionless.png similarity index 100% rename from snufficon/expressionless.png rename to src/snufficon/expressionless.png diff --git a/snufficon/fearful.png b/src/snufficon/fearful.png similarity index 100% rename from snufficon/fearful.png rename to src/snufficon/fearful.png diff --git a/snufficon/flush.png b/src/snufficon/flush.png similarity index 100% rename from snufficon/flush.png rename to src/snufficon/flush.png diff --git a/snufficon/giggle.png b/src/snufficon/giggle.png similarity index 100% rename from snufficon/giggle.png rename to src/snufficon/giggle.png diff --git a/snufficon/hand_over_mouth.png b/src/snufficon/hand_over_mouth.png similarity index 100% rename from snufficon/hand_over_mouth.png rename to src/snufficon/hand_over_mouth.png diff --git a/snufficon/happy.png b/src/snufficon/happy.png similarity index 100% rename from snufficon/happy.png rename to src/snufficon/happy.png diff --git a/snufficon/head_bandage.png b/src/snufficon/head_bandage.png similarity index 100% rename from snufficon/head_bandage.png rename to src/snufficon/head_bandage.png diff --git a/snufficon/heart_eyes.png b/src/snufficon/heart_eyes.png similarity index 100% rename from snufficon/heart_eyes.png rename to src/snufficon/heart_eyes.png diff --git a/snufficon/holding_back_tears.png b/src/snufficon/holding_back_tears.png similarity index 100% rename from snufficon/holding_back_tears.png rename to src/snufficon/holding_back_tears.png diff --git a/snufficon/hot.png b/src/snufficon/hot.png similarity index 100% rename from snufficon/hot.png rename to src/snufficon/hot.png diff --git a/snufficon/hug.png b/src/snufficon/hug.png similarity index 100% rename from snufficon/hug.png rename to src/snufficon/hug.png diff --git a/snufficon/joy.png b/src/snufficon/joy.png similarity index 100% rename from snufficon/joy.png rename to src/snufficon/joy.png diff --git a/snufficon/kissing.png b/src/snufficon/kissing.png similarity index 100% rename from snufficon/kissing.png rename to src/snufficon/kissing.png diff --git a/snufficon/kissing_heart.png b/src/snufficon/kissing_heart.png similarity index 100% rename from snufficon/kissing_heart.png rename to src/snufficon/kissing_heart.png diff --git a/snufficon/laughing.png b/src/snufficon/laughing.png similarity index 100% rename from snufficon/laughing.png rename to src/snufficon/laughing.png diff --git a/snufficon/lying.png b/src/snufficon/lying.png similarity index 100% rename from snufficon/lying.png rename to src/snufficon/lying.png diff --git a/snufficon/mask.png b/src/snufficon/mask.png similarity index 100% rename from snufficon/mask.png rename to src/snufficon/mask.png diff --git a/snufficon/melting.png b/src/snufficon/melting.png similarity index 100% rename from snufficon/melting.png rename to src/snufficon/melting.png diff --git a/snufficon/money_face.png b/src/snufficon/money_face.png similarity index 100% rename from snufficon/money_face.png rename to src/snufficon/money_face.png diff --git a/snufficon/mouthless.png b/src/snufficon/mouthless.png similarity index 100% rename from snufficon/mouthless.png rename to src/snufficon/mouthless.png diff --git a/snufficon/nerd.png b/src/snufficon/nerd.png similarity index 100% rename from snufficon/nerd.png rename to src/snufficon/nerd.png diff --git a/snufficon/partying.png b/src/snufficon/partying.png similarity index 100% rename from snufficon/partying.png rename to src/snufficon/partying.png diff --git a/snufficon/peeking_eye.png b/src/snufficon/peeking_eye.png similarity index 100% rename from snufficon/peeking_eye.png rename to src/snufficon/peeking_eye.png diff --git a/snufficon/pleading_face.png b/src/snufficon/pleading_face.png similarity index 100% rename from snufficon/pleading_face.png rename to src/snufficon/pleading_face.png diff --git a/snufficon/raging.png b/src/snufficon/raging.png similarity index 100% rename from snufficon/raging.png rename to src/snufficon/raging.png diff --git a/snufficon/raised_eyebrow.png b/src/snufficon/raised_eyebrow.png similarity index 100% rename from snufficon/raised_eyebrow.png rename to src/snufficon/raised_eyebrow.png diff --git a/snufficon/rolling_eyes.png b/src/snufficon/rolling_eyes.png similarity index 100% rename from snufficon/rolling_eyes.png rename to src/snufficon/rolling_eyes.png diff --git a/snufficon/sad.png b/src/snufficon/sad.png similarity index 100% rename from snufficon/sad.png rename to src/snufficon/sad.png diff --git a/snufficon/saluting.png b/src/snufficon/saluting.png similarity index 100% rename from snufficon/saluting.png rename to src/snufficon/saluting.png diff --git a/snufficon/scream.png b/src/snufficon/scream.png similarity index 100% rename from snufficon/scream.png rename to src/snufficon/scream.png diff --git a/snufficon/see_no_evil.png b/src/snufficon/see_no_evil.png similarity index 100% rename from snufficon/see_no_evil.png rename to src/snufficon/see_no_evil.png diff --git a/snufficon/shrug.png b/src/snufficon/shrug.png similarity index 100% rename from snufficon/shrug.png rename to src/snufficon/shrug.png diff --git a/snufficon/shush.png b/src/snufficon/shush.png similarity index 100% rename from snufficon/shush.png rename to src/snufficon/shush.png diff --git a/snufficon/sick.png b/src/snufficon/sick.png similarity index 100% rename from snufficon/sick.png rename to src/snufficon/sick.png diff --git a/snufficon/sleeping.png b/src/snufficon/sleeping.png similarity index 100% rename from snufficon/sleeping.png rename to src/snufficon/sleeping.png diff --git a/snufficon/smiling.png b/src/snufficon/smiling.png similarity index 100% rename from snufficon/smiling.png rename to src/snufficon/smiling.png diff --git a/snufficon/smiling_with_hearts.png b/src/snufficon/smiling_with_hearts.png similarity index 100% rename from snufficon/smiling_with_hearts.png rename to src/snufficon/smiling_with_hearts.png diff --git a/snufficon/smiling_with_stars.png b/src/snufficon/smiling_with_stars.png similarity index 100% rename from snufficon/smiling_with_stars.png rename to src/snufficon/smiling_with_stars.png diff --git a/snufficon/smirk.png b/src/snufficon/smirk.png similarity index 100% rename from snufficon/smirk.png rename to src/snufficon/smirk.png diff --git a/snufficon/sneeze.png b/src/snufficon/sneeze.png similarity index 100% rename from snufficon/sneeze.png rename to src/snufficon/sneeze.png diff --git a/snufficon/sob.png b/src/snufficon/sob.png similarity index 100% rename from snufficon/sob.png rename to src/snufficon/sob.png diff --git a/snufficon/spiral_eyes.png b/src/snufficon/spiral_eyes.png similarity index 100% rename from snufficon/spiral_eyes.png rename to src/snufficon/spiral_eyes.png diff --git a/snufficon/star_struck.png b/src/snufficon/star_struck.png similarity index 100% rename from snufficon/star_struck.png rename to src/snufficon/star_struck.png diff --git a/snufficon/sunglasses.png b/src/snufficon/sunglasses.png similarity index 100% rename from snufficon/sunglasses.png rename to src/snufficon/sunglasses.png diff --git a/snufficon/swearing.png b/src/snufficon/swearing.png similarity index 100% rename from snufficon/swearing.png rename to src/snufficon/swearing.png diff --git a/snufficon/sweat.png b/src/snufficon/sweat.png similarity index 100% rename from snufficon/sweat.png rename to src/snufficon/sweat.png diff --git a/snufficon/sweat_smile.png b/src/snufficon/sweat_smile.png similarity index 100% rename from snufficon/sweat_smile.png rename to src/snufficon/sweat_smile.png diff --git a/snufficon/thermometer.png b/src/snufficon/thermometer.png similarity index 100% rename from snufficon/thermometer.png rename to src/snufficon/thermometer.png diff --git a/snufficon/thinking.png b/src/snufficon/thinking.png similarity index 100% rename from snufficon/thinking.png rename to src/snufficon/thinking.png diff --git a/snufficon/thumbs_down.png b/src/snufficon/thumbs_down.png similarity index 100% rename from snufficon/thumbs_down.png rename to src/snufficon/thumbs_down.png diff --git a/snufficon/thumbs_up.png b/src/snufficon/thumbs_up.png similarity index 100% rename from snufficon/thumbs_up.png rename to src/snufficon/thumbs_up.png diff --git a/snufficon/tongue_out.png b/src/snufficon/tongue_out.png similarity index 100% rename from snufficon/tongue_out.png rename to src/snufficon/tongue_out.png diff --git a/snufficon/tongue_out_closed_eyes.png b/src/snufficon/tongue_out_closed_eyes.png similarity index 100% rename from snufficon/tongue_out_closed_eyes.png rename to src/snufficon/tongue_out_closed_eyes.png diff --git a/snufficon/tongue_out_winking.png b/src/snufficon/tongue_out_winking.png similarity index 100% rename from snufficon/tongue_out_winking.png rename to src/snufficon/tongue_out_winking.png diff --git a/snufficon/triumph.png b/src/snufficon/triumph.png similarity index 100% rename from snufficon/triumph.png rename to src/snufficon/triumph.png diff --git a/snufficon/upside_down.png b/src/snufficon/upside_down.png similarity index 100% rename from snufficon/upside_down.png rename to src/snufficon/upside_down.png diff --git a/snufficon/vomiting.png b/src/snufficon/vomiting.png similarity index 100% rename from snufficon/vomiting.png rename to src/snufficon/vomiting.png diff --git a/snufficon/wink.png b/src/snufficon/wink.png similarity index 100% rename from snufficon/wink.png rename to src/snufficon/wink.png diff --git a/snufficon/woozy.png b/src/snufficon/woozy.png similarity index 100% rename from snufficon/woozy.png rename to src/snufficon/woozy.png diff --git a/snufficon/yawning.png b/src/snufficon/yawning.png similarity index 100% rename from snufficon/yawning.png rename to src/snufficon/yawning.png diff --git a/snufficon/zany.png b/src/snufficon/zany.png similarity index 100% rename from snufficon/zany.png rename to src/snufficon/zany.png diff --git a/snufficon/zipper_mouth.png b/src/snufficon/zipper_mouth.png similarity index 100% rename from snufficon/zipper_mouth.png rename to src/snufficon/zipper_mouth.png diff --git a/style.css b/src/style.css similarity index 100% rename from style.css rename to src/style.css