new install.sh script and a folder_structure.md file is now included. Updated folder structure

This commit is contained in:
filip 2021-01-21 22:11:33 +01:00
parent 359e7568c3
commit 719a482c12
16 changed files with 106 additions and 2 deletions

7
fboard/pages/login.php Normal file
View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<h1>Log in or create new user</h1><br>
<a href="login.php">Log in</a>
<a href="register.php">Register new User</a>
</body></html>

11
fboard/pages/register.php Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<body>
<h1>Register new user</h1>
<p>You might want to review the source code of fBoard before you register</p>
<form action="../cgi/register.php">
<input type="text" id="user_name" required>
<input type="password" id="password" required>
<input type="password" id="verify_password" required>
</form>
</body></html>

View File

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html>
<body>
<h1>Administrate</h1>
</body></html>

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<h1>Log in or create new user</h1><br>
<a href="login.php">Log in</a>
<a href="register.php">Register new User</a>
</body></html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<body>
<h1>Register new user</h1>
<p>You might want to review the source code of fBoard before you register</p>
<form action="../cgi/register.php">
<input type="text" id="user_name" required>
<input type="password" id="password" required>
<input type="password" id="verify_password" required>
</form>
</body></html>

View File

View File

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<h1>fBoard</h1>
</body>
</html>

8
fboard/user/index.php Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<?php
include "includes/header.php";
?>
</body>
</html>

View File

46
folder_structure.md Normal file
View File

@ -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

View File

@ -1,2 +1,5 @@
cp ./fboard /srv/www/htdocs -r #! /bin/bash
chmod 777 /srv/www/htdocs/fboard -R echo "Directory to install to?"
read INSTALL_DESTINATION
mkdir $INSTALL_DESTINATION
cp ./fboard/* $INSTALL_DESTINATION -r