<commit_before><!doctype html>
<html>
<head>
<title>Blargboard updater</title>
<style type="text/css">
a:link { color: #0e5; }
a:visited { color: #0e5; }
a:hover, a:active { color: #bfb; }

html, body { width: 100%; height: 100%; }

body
{
	font: 12pt 'Arial', 'Helvetica', sans-serif;
	background: #222;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #fff;
}

#container
{
	background: #032;
	min-height: 100%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	max-width: 1000px;
	margin: 0 auto;
	padding-top: 20px;
	padding-bottom: 0;
}

h1, h3
{
	border-bottom: 2px solid #0d5;
	padding-bottom: 1em;
}

input, select
{
	background: black;
	color: white;
	border: 1px solid #054;
}

input[type='submit'], input[type='button']
{
	border: 2px ridge #0d5;
}

.blarg
{
	margin: 1em;
}

table
{
	width: 100%;
	border-collapse: collapse;
}

td:not([colspan='2'])
{
	border-bottom: 1px solid #043;
}
</style>
</head>
<body>
<div id="container">
<h1>Blargboard updater</h1>
<br>
<?php

define('BLARG', 1);

// Acmlmboard 1.x style
$footer = '</div></body></html>';

if ($_POST['submit'])
{
	$boardusername = trim($_POST['boardusername']);
	$boardpassword = $_POST['boardpassword'];
	
	if (!$boardusername || !$boardpassword)
		die('Please enter a username and password.'.$footer);
	
	require(__DIR__.'/../config/salt.php');
	require(__DIR__.'/../lib/mysql.php');
	require(__DIR__.'/../db/functions.php');
	$debugMode = 1;
	
	$rootgroup = FetchResult("SELECT value FROM {settings} WHERE plugin={0} AND name={1}", 'main', 'rootGroup');
	$res = Query("SELECT password,pss FROM {users} WHERE (name = {0} OR displayname = {0}) AND primarygroup={1}", 
		$boardusername, $rootgroup);
		
	if (!NumRows($res)) die('Invalid username or password.'.$footer);
	$user = Fetch($res);
	if (hash('sha256', $boardpassword.SALT.$user['pss'], FALSE) !== $user['password'])
		die('Invalid username or password.'.$footer);
	<commit_msg>This isnt BlargBoard anymore lol<commit_after><!doctype html>
<html>
<head>
<title>World Web XD updater</title>
<style type="text/css">
a:link { color: #0e5; }
a:visited { color: #0e5; }
a:hover, a:active { color: #bfb; }

html, body { width: 100%; height: 100%; }

body
{
	font: 12pt 'Arial', 'Helvetica', sans-serif;
	background: #222;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #fff;
}

#container
{
	background: #032;
	min-height: 100%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	max-width: 1000px;
	margin: 0 auto;
	padding-top: 20px;
	padding-bottom: 0;
}

h1, h3
{
	border-bottom: 2px solid #0d5;
	padding-bottom: 1em;
}

input, select
{
	background: black;
	color: white;
	border: 1px solid #054;
}

input[type='submit'], input[type='button']
{
	border: 2px ridge #0d5;
}

.blarg
{
	margin: 1em;
}

table
{
	width: 100%;
	border-collapse: collapse;
}

td:not([colspan='2'])
{
	border-bottom: 1px solid #043;
}
</style>
</head>
<body>
<div id="container">
<h1>World Web XD updater</h1>
<br>
<?php

define('BLARG', 1);

// Acmlmboard 1.x style
$footer = '</div></body></html>';

if ($_POST['submit'])
{
	$boardusername = trim($_POST['boardusername']);
	$boardpassword = $_POST['boardpassword'];
	
	if (!$boardusername || !$boardpassword)
		die('Please enter a username and password.'.$footer);
	
	require(__DIR__.'/../config/salt.php');
	require(__DIR__.'/../lib/mysql.php');
	require(__DIR__.'/../db/functions.php');
	$debugMode = 1;
	
	$rootgroup = FetchResult("SELECT value FROM {settings} WHERE plugin={0} AND name={1}", 'main', 'rootGroup');
	$res = Query("SELECT password,pss FROM {users} WHERE (name = {0} OR displayname = {0}) AND primarygroup={1}", 
		$boardusername, $rootgroup);
		
	if (!NumRows($res)) die('Invalid username or password.'.$footer);
	$user = Fetch($res);
	if (hash('sha256', $boardpassword.SALT.$user['pss'], FALSE) !== $user['password'])
		die('Invalid username or password.'.$footer);
	
{'fraction_non_alphanumeric': 0.20274114300491336, 'fraction_numerical': 0.03413498836307215, 'mean_word_length': 4.730370370370371, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3900392', 'n_tokens_mistral': 1606, 'n_tokens_neox': 1486, 'n_words': 356}