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();