<commit_before><?php
include '../core_web.php';
include '../class_webAdmAuth.php';
include '../class_redirect.php';

$session = new session( array( 'user', 'pass', 'id', 'active' ) );

$auth = new webAdmAuth( $session->user, $session->pass, $session->active );

if ( $auth->isAuthenticated() ){
	print "Welcome $session->user. Administering to the site at ".getConfigOption('site_domain');
}
else{
	$redirect = new redirect( $session->uri, 'index.php' );
	$redirect->apply( 302 );
}

?><commit_msg>add links to prospective functions<commit_after><?php
include '../core_web.php';
include '../class_webAdmAuth.php';
include '../class_redirect.php';

$session = new session( array( 'user', 'pass', 'id', 'active' ) );

$auth = new webAdmAuth( $session->user, $session->pass, $session->active );

if ( $auth->isAuthenticated() ){
	print "Welcome $session->user. Administering to the site at ".getConfigOption('site_domain');
	print '<ul>
	<li><a href="newpost.php">Create a new Post or Article</a></li>
	<li><a href="editpost.php">Edit an existing post or article</a></li>
	<li><a href="newblog.php">Create a new blog or article collection</a></li>
	</ul>';
}
else{
	$redirect = new redirect( $session->uri, 'index.php' );
	$redirect->apply( 302 );
}

?>
{'fraction_non_alphanumeric': 0.2048, 'fraction_numerical': 0.0048, 'mean_word_length': 5.043478260869565, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 33, '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': '483838', 'n_tokens_mistral': 430, 'n_tokens_neox': 422, 'n_words': 109}