diff --git a/fboard/includes/boardlist.php b/fboard/etc/cgi/register.php similarity index 100% rename from fboard/includes/boardlist.php rename to fboard/etc/cgi/register.php diff --git a/fboard/includes/footer.php b/fboard/etc/global_includes/footer.php similarity index 100% rename from fboard/includes/footer.php rename to fboard/etc/global_includes/footer.php diff --git a/fboard/includes/header.php b/fboard/etc/global_includes/header.php similarity index 100% rename from fboard/includes/header.php rename to fboard/etc/global_includes/header.php diff --git a/fboard/pages/login.php b/fboard/pages/login.php new file mode 100644 index 0000000..163128c --- /dev/null +++ b/fboard/pages/login.php @@ -0,0 +1,7 @@ + + + +

Log in or create new user


+Log in +Register new User + diff --git a/fboard/pages/register.php b/fboard/pages/register.php new file mode 100644 index 0000000..a7e512d --- /dev/null +++ b/fboard/pages/register.php @@ -0,0 +1,11 @@ + + + +

Register new user

+

You might want to review the source code of fBoard before you register

+
+ + + +
+ diff --git a/fboard/user/admin/index.php b/fboard/user/admin/index.php new file mode 100644 index 0000000..d0a4d97 --- /dev/null +++ b/fboard/user/admin/index.php @@ -0,0 +1,5 @@ + + + +

Administrate

+ diff --git a/fboard/styling/style.css b/fboard/user/cgi/register.php similarity index 100% rename from fboard/styling/style.css rename to fboard/user/cgi/register.php diff --git a/fboard/user/etc/login.php b/fboard/user/etc/login.php new file mode 100644 index 0000000..163128c --- /dev/null +++ b/fboard/user/etc/login.php @@ -0,0 +1,7 @@ + + + +

Log in or create new user


+Log in +Register new User + diff --git a/fboard/user/etc/register.php b/fboard/user/etc/register.php new file mode 100644 index 0000000..a7e512d --- /dev/null +++ b/fboard/user/etc/register.php @@ -0,0 +1,11 @@ + + + +

Register new user

+

You might want to review the source code of fBoard before you register

+
+ + + +
+ diff --git a/fboard/user/includes/boardlist.php b/fboard/user/includes/boardlist.php new file mode 100644 index 0000000..e69de29 diff --git a/fboard/user/includes/footer.php b/fboard/user/includes/footer.php new file mode 100644 index 0000000..e69de29 diff --git a/fboard/user/includes/header.php b/fboard/user/includes/header.php new file mode 100644 index 0000000..558b59c --- /dev/null +++ b/fboard/user/includes/header.php @@ -0,0 +1,6 @@ + + + +

fBoard

+ + diff --git a/fboard/user/index.php b/fboard/user/index.php new file mode 100644 index 0000000..536ae86 --- /dev/null +++ b/fboard/user/index.php @@ -0,0 +1,8 @@ + + + + + + diff --git a/fboard/user/styling/style.css b/fboard/user/styling/style.css new file mode 100644 index 0000000..e69de29 diff --git a/folder_structure.md b/folder_structure.md new file mode 100644 index 0000000..0cf5d97 --- /dev/null +++ b/folder_structure.md @@ -0,0 +1,46 @@ +# Folder structure +**Not final product** +abcdefghijklmnopqrstuvwxyz //reminder of the order of the alphabet beacause i am stupid +-/admin/ + -index.php +-/b/ + -index.php //all actual data is stored in /boards/b this is just so that example.com/b/ works without needing to write example.com/board/b/ + +-/board/ + -/b/ //anything in the board folder is controllable by board administrators + -/etc/ + -/includes/ + -footer.php + -header.php + -/styling/ + -style.css + +-/etc/ + -/board_templates/ //when a new board is created the files from here are copied over + -/etc/ + -/includes/ + -footer.php + -header.php + -/styling/ + -style.css + -/cgi/ //form data is handeled by these scripts + -login.php + -register.php + -/global_includes/ //this is global and cannot be changed by individual boards and users. These files are embedded into pages + -footer.php + -header.php + -/user_templates/ //default settings for the user, can be changed by the user. Used if you are not logged in + -board_index.php + -/page_includes/ //used by pages that are not part of a board or a user page. + -style.css + +-index.php + +-/pages/ //form data is sent to scripts in /etc/cgi + -login.php //login page + -register.php //register page + +-/user/ + -/username/ + -username.json + -board_index.php diff --git a/install.sh b/install.sh index 96221fd..fab6c3a 100755 --- a/install.sh +++ b/install.sh @@ -1,2 +1,5 @@ -cp ./fboard /srv/www/htdocs -r -chmod 777 /srv/www/htdocs/fboard -R \ No newline at end of file +#! /bin/bash +echo "Directory to install to?" +read INSTALL_DESTINATION +mkdir $INSTALL_DESTINATION +cp ./fboard/* $INSTALL_DESTINATION -r