From b1a8d2b6cef704a4225bc8057cf8dc1f6611260f Mon Sep 17 00:00:00 2001 From: TheStilbruch Date: Sun, 21 Jul 2019 23:30:56 -0500 Subject: [PATCH] big change to the board system, instead of using folders with differnt board configs, we will be using a simple board.php file that handles all the boards. --- board.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ core/board.php | 71 ------------------------------------------------- core/header.php | 10 +++---- core/setup.php | 18 ------------- logout.php | 10 ------- 5 files changed, 76 insertions(+), 104 deletions(-) create mode 100644 board.php delete mode 100644 core/board.php delete mode 100644 core/setup.php diff --git a/board.php b/board.php new file mode 100644 index 0000000..0f2836c --- /dev/null +++ b/board.php @@ -0,0 +1,71 @@ + +
+

+ + +
+
+ + + + + + + + + + + + + + + +
title: + +
message: + +
file: + +
+
+ +
+ +
+ (archive) (catalog) +
+
+ diff --git a/core/board.php b/core/board.php deleted file mode 100644 index cc7cf7d..0000000 --- a/core/board.php +++ /dev/null @@ -1,71 +0,0 @@ - 'default', - 'code' => 'd', - 'splash' => array( - 'splash 1', - 'splash 2', - 'splash 3' - ) - ); - - $settings = array_merge($defaults, $settings); - - // load in the required files - $path = $_SERVER['DOCUMENT_ROOT']; - require_once($path . '/core/header.php'); - require_once($path . '/core/footer.php'); - require_once($path . '/core/database.php'); - - display_header('~chan - /' . $settings['code'] . '/'); - session_start(); -?> -
-

-

- -
-
- - - - - - - - - - - - - - - -
title: - -
message: - -
file: - -
-
- -
- -
- (archive) (catalog) -
-
- - diff --git a/core/header.php b/core/header.php index a9698e7..e269a7a 100644 --- a/core/header.php +++ b/core/header.php @@ -24,13 +24,13 @@ function display_header($title = "~chan") {
boards: ( - b + b / - g + g / - m + mc / - v + v ) @@ -46,7 +46,7 @@ function display_header($title = "~chan") { // i just decided to echo everything out here since the syntax was ugly echo "profile"; echo " / "; - echo "log out"; + echo "log out"; echo " )"; } else { echo "register"; diff --git a/core/setup.php b/core/setup.php deleted file mode 100644 index 6a8254d..0000000 --- a/core/setup.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/logout.php b/logout.php index 99039e9..9c49727 100644 --- a/logout.php +++ b/logout.php @@ -7,16 +7,6 @@ session_start(); // Unset all of the session variables. $_SESSION = array(); -// If it's desired to kill the session, also delete the session cookie. -// Note: This will destroy the session, and not just the session data! -if (ini_get("session.use_cookies")) { - $params = session_get_cookie_params(); - setcookie(session_name(), '', time() - 42000, - $params["path"], $params["domain"], - $params["secure"], $params["httponly"] - ); -} - // Finally, destroy the session. session_destroy();