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
// hookup to PRS system | |
app.post("/prs", function(req, res) { | |
var ip_addr = req.headers['x-forwarded-for'] || req.connection.remoteAddress; | |
console.log("PRS Request: " + JSON.stringify(req.body)); | |
// get username | |
var username = ut.check_session(Number(req.body.sessionId), ip_addr); | |
if (username) { | |
// pull all parameters from req.body and put them in args |
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
INSERT INTO Pages (url, title, author, raters, revisions, tags, editlock, discuss_page, locked, files, parent) VALUES ('_404','','',[],[],[],-1,'',false,[],''); |
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
// export rating | |
import { rating } from './rating'; | |
export rating; |
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
// export rating | |
import { rating } from './rating'; | |
export rating; |
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
server/metadata/metadata.ts(47,10): error TS2395: Individual declarations in merged declaration 'rating' must be all exported or all local. | |
server/metadata/metadata.ts(47,10): error TS2440: Import declaration conflicts with local declaration of 'rating'. | |
server/metadata/metadata.ts(48,14): error TS2395: Individual declarations in merged declaration 'rating' must be all exported or all local. | |
server/metadata/metadata.ts(48,14): error TS7022: 'rating' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. |
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
make: Entering directory '/home/<myname>/Programming/Projects/SCPWiki/node_modules/argon2/build' | |
make: *** No rule to make target 'Release/obj.target/libargon2/argon2/src/opt.o', needed by 'Release/obj.target/argon2.a'. Stop. | |
make: Leaving directory '/home/<myname>/Programming/Projects/SCPWiki/node_modules/argon2/build' |
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
const thread_table_sql = "CREATE TABLE IF NOT EXISTS Threads (" + | |
"thread_id TEXT PRIMARY KEY," + | |
"author INTEGER REFERENCES Users(user_id)," + | |
"board string REFERENCES Boards(board_id)," + | |
"name TEXT NOT NULL," + | |
"description TEXT NOT NULL," + | |
"created_at TIMESTAMP NOT NULL" + | |
");"; | |
const post_table_sql = "CREATE TABLE IF NOT EXISTS Posts (" + | |
"post_id TEXT PRIMARY KEY," + |
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
FTML Process Error: error: Found argument '/home/jtnunley/Programming/Projects/SCPWiki/ftml-json/misc/config.toml' which wasn't expected, or isn't valid in this context | |
USAGE: | |
ftml-json --config <FILE> | |
For more information try --help | |
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
export async function get_markdown(url: string, src: string, metadata: any): Promise<string> { | |
let page_info: PageInfo = { | |
title: metadata.title, | |
alt_title: "", | |
header: null, | |
subheader: null, | |
rating: metadata.rating, | |
tags: metadata.tags, | |
}; |
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
var check_password_compat = function(pw) { | |
var ch, code; | |
var specialChars = ['-', '_', '?', '!']; | |
for (var i = 0; i < pw.length; i++) { | |
ch = pw[i]; | |
code = ch.charCodeAt(ch); | |
var isUppercaseLetter = 65 <= code && code <= 90; | |
var isLowercaseLetter = 97 <= code && code <= 122; | |
var isNumber = 48 <= code && code <= 57; | |
var isSpecialChar = specialChars.indexOf(ch) !== -1; |
OlderNewer