new install.sh script and a folder_structure.md file is now included. Updated folder structure
This commit is contained in:
parent
359e7568c3
commit
719a482c12
7
fboard/pages/login.php
Normal file
7
fboard/pages/login.php
Normal 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
11
fboard/pages/register.php
Normal 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>
|
5
fboard/user/admin/index.php
Normal file
5
fboard/user/admin/index.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<h1>Administrate</h1>
|
||||||
|
</body></html>
|
7
fboard/user/etc/login.php
Normal file
7
fboard/user/etc/login.php
Normal 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/user/etc/register.php
Normal file
11
fboard/user/etc/register.php
Normal 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>
|
0
fboard/user/includes/boardlist.php
Normal file
0
fboard/user/includes/boardlist.php
Normal file
0
fboard/user/includes/footer.php
Normal file
0
fboard/user/includes/footer.php
Normal file
6
fboard/user/includes/header.php
Normal file
6
fboard/user/includes/header.php
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<h1>fBoard</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
8
fboard/user/index.php
Normal file
8
fboard/user/index.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
include "includes/header.php";
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
0
fboard/user/styling/style.css
Normal file
0
fboard/user/styling/style.css
Normal file
46
folder_structure.md
Normal file
46
folder_structure.md
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user