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