This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from ZFGCCP/release/2.1.0
Release/2.1.0
- Loading branch information
Showing
144 changed files
with
13,066 additions
and
2,927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE TABLE `BR_MEMBER_GROUP_FORUM` ( | ||
`FORUM_ID` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', | ||
`PERMISSION_ID` INT(11) NOT NULL DEFAULT '0', | ||
`READ_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
`WRITE_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
PRIMARY KEY (`FORUM_ID`, `PERMISSION_ID`), | ||
INDEX `FK_BR_MEMBER_GROUP_FORUM_PERMISSION_ID` (`PERMISSION_ID`), | ||
CONSTRAINT `FK_BR_MEMBER_GROUP_FORUM_PERMISSION_ID` FOREIGN KEY (`PERMISSION_ID`) REFERENCES `PERMISSIONS` (`PERMISSIONS_ID`), | ||
CONSTRAINT `FK_BR_MEMBER_GROUP_FORUM_FORUM` FOREIGN KEY (`FORUM_ID`) REFERENCES `FORUM` (`FORUM_ID`) | ||
) | ||
COLLATE='latin1_swedish_ci' | ||
ENGINE=InnoDB | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE TABLE `THREAD` ( | ||
`THREAD_ID` INT(11) NOT NULL, | ||
`NAME` VARCHAR(128) NOT NULL, | ||
`THREAD_STARTER_ID` INT(11) NOT NULL, | ||
`VIEWS` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`LATEST_POST_ID` INT(11) NOT NULL DEFAULT '0', | ||
`POST_ICON_ID` INT(11) NULL DEFAULT NULL, | ||
`NEW_POSTS_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
`POST_STATUS_ID` INT(11) NOT NULL DEFAULT '0', | ||
`LOCKED_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
`STICKY_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
`POLL_FLAG` BIT(1) NOT NULL DEFAULT b'0', | ||
`PARENT_FORUM_ID` SMALLINT(5) UNSIGNED NOT NULL, | ||
PRIMARY KEY (`THREAD_ID`), | ||
INDEX `FK_THREAD_USERS_THREAD_STARTER_ID` (`THREAD_STARTER_ID`), | ||
INDEX `FK_THREAD_FORUM_PARENT_FORUM_ID` (`PARENT_FORUM_ID`), | ||
CONSTRAINT `FK_THREAD_FORUM_PARENT_FORUM_ID` FOREIGN KEY (`PARENT_FORUM_ID`) REFERENCES `FORUM` (`FORUM_ID`) ON UPDATE CASCADE ON DELETE CASCADE, | ||
CONSTRAINT `FK_THREAD_USERS_THREAD_STARTER_ID` FOREIGN KEY (`THREAD_STARTER_ID`) REFERENCES `users` (`USERS_ID`) ON UPDATE CASCADE ON DELETE CASCADE | ||
) | ||
COLLATE='latin1_swedish_ci' | ||
ENGINE=InnoDB | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE `THREAD_POST` ( | ||
`THREAD_POST_ID` INT(11) NOT NULL AUTO_INCREMENT, | ||
`THREAD_ID` INT(11) NOT NULL, | ||
`AUTHOR_ID` INT(11) NOT NULL, | ||
`CREATED_TS` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`THREAD_POST_ID`), | ||
INDEX `THREAD_POST_THREAD_THREAD_ID` (`THREAD_ID`), | ||
INDEX `THREAD_POST_USERS_AUTHOR_ID` (`AUTHOR_ID`), | ||
CONSTRAINT `THREAD_POST_THREAD_THREAD_ID` FOREIGN KEY (`THREAD_ID`) REFERENCES `THREAD` (`THREAD_ID`), | ||
CONSTRAINT `THREAD_POST_USERS_AUTHOR_ID` FOREIGN KEY (`AUTHOR_ID`) REFERENCES `users` (`USERS_ID`) | ||
) | ||
COLLATE='latin1_swedish_ci' | ||
ENGINE=InnoDB | ||
AUTO_INCREMENT=5 | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT F.FORUM_ID, | ||
MGF.MEMBER_GROUP_ID, | ||
MGF.PERMISSION_ID, | ||
MGF.READ_FLAG, | ||
MGF.WRITE_FLAG, | ||
F.NAME, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
CREATE OR REPLACE VIEW MEMBER_LISTING_VIEW AS | ||
SELECT U.USERS_ID, U.DISPLAY_NAME, E.EMAIL_ADDRESS, U.LAST_LOGIN, U.DATE_REGISTERED, LKGS.GROUP_NAME, T.LKUP_TIMEZONES_ID, T.TIME_ZONE | ||
SELECT U.USERS_ID, U.DISPLAY_NAME, E.EMAIL_ADDRESS, U.LAST_LOGIN, U.DATE_REGISTERED, LKGS.GROUP_NAME, T.LKUP_TIMEZONES_ID, T.TIME_ZONE, U.ACTIVE_FLAG, IP.IP_ADDRESS | ||
FROM users U | ||
JOIN LKUP_MEMBER_GROUP LKGP ON LKGP.MEMBER_GROUP_ID = U.PRIMARY_MEMBER_GROUP_ID | ||
JOIN LKUP_MEMBER_GROUP LKGS ON LKGS.MEMBER_GROUP_ID = LKGP.MEMBER_GROUP_ID | ||
JOIN LKUP_TIMEZONES T ON T.LKUP_TIMEZONES_ID = U.TIME_OFFSET | ||
LEFT JOIN USER_CONTACT_SETTINGS C ON C.USERS_ID = U.USERS_ID | ||
LEFT JOIN EMAIL_ADDRESS E ON E.EMAIL_ADDRESS_ID = C.EMAIL_ADDRESS_ID | ||
WHERE U.ACTIVE_FLAG = 1 | ||
LEFT JOIN IP_ADDRESS IP ON U.PRIMARY_IP = IP.IP_ADDRESS_ID | ||
ORDER BY U.DISPLAY_NAME ASC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
SELECT T.THREAD_ID, | ||
T.NAME, | ||
T.THREAD_STARTER_ID, | ||
T.VIEWS, | ||
T.LATEST_POST_ID, | ||
T.POST_ICON_ID, | ||
T.NEW_POSTS_FLAG, | ||
T.POST_STATUS_ID, | ||
T.LOCKED_FLAG, | ||
T.STICKY_FLAG, | ||
T.POLL_FLAG, | ||
T.PARENT_FORUM_ID, | ||
TP.AUTHOR_ID AS LATEST_POST_AUTHOR_ID, | ||
US.DISPLAY_NAME AS AUTHOR_NAME, | ||
UR.DISPLAY_NAME AS LATEST_AUTHOR_NAME, | ||
PC.POST_DATA AS LATEST_POST_DATA | ||
FROM THREAD T | ||
JOIN users US ON T.THREAD_STARTER_ID = US.USERS_ID | ||
JOIN THREAD_POST TP ON TP.THREAD_POST_ID = T.LATEST_POST_ID | ||
JOIN POST_CONTENT PC ON PC.THREAD_POST_ID = TP.THREAD_POST_ID AND PC.CURRENT_FLAG = 1 | ||
JOIN users UR ON UR.USERS_ID = TP.AUTHOR_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.zfgc; | ||
|
||
import java.io.IOException; | ||
|
||
import javax.servlet.ServletException; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import org.springframework.security.core.AuthenticationException; | ||
import org.springframework.security.web.authentication.AuthenticationFailureHandler; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class AuthFailureHandler implements AuthenticationFailureHandler { | ||
|
||
private Logger LOGGER = LogManager.getLogger(AuthFailureHandler.class); | ||
|
||
@Override | ||
public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, | ||
AuthenticationException exception) throws IOException, ServletException { | ||
|
||
LOGGER.debug(exception.getMessage()); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.