<commit_before><!doctype html>

<?php

include('../includes/master.inc.php');
include('../includes/class.template.php');

$Auth->requireUser();

$db = Database::getDatabase();
$row = $db->getRow("SELECT count(date) as num FROM change_requests WHERE processed = 'false'");
$unprocessed = $row['num'];

$template = new Template();

?>
<html>
<?php
    $headerExtras['js'] = array('jquery-172.js');
?>
<?php ob_start(); ?>
    <div>
        <?php
        if(isset($_GET['message']))
            echo '<h2>' . $_GET['message'] . '</h2>';
        ?>

        <h3>Welcome,<br> What would you like to do?</h3>

        <h4>Images</h4>
        <a href="upload-images.php">Upload Images</a><br>
        <a href="select-to-change-tags.php">Change Image Tags</a><br>
        <a href="all-images.php?page=1">View and Edit All Images</a><br>
        <a href="tag-requests.php">View Tag Requests (<?php echo $unprocessed; ?> new)</a><br>
        <br>
        <h4>Text</h4>
        <a href="add-post.php">Add Post</a><br>
        <a href="edit-post.php">Edit posts</a><br>

        <br>
        <a href="logout.php">Logout</a>
    </div>
<?php
    $content = ob_get_clean();<commit_msg>Removed unnecessary js from action.php<commit_after><!doctype html>

<?php

include('../includes/master.inc.php');
include('../includes/class.template.php');

$Auth->requireUser();

$db = Database::getDatabase();
$row = $db->getRow("SELECT count(date) as num FROM change_requests WHERE processed = 'false'");
$unprocessed = $row['num'];

$template = new Template();

?>
<html>
<?php ob_start(); ?>
    <div>
        <?php
        if(isset($_GET['message']))
            echo '<h2>' . $_GET['message'] . '</h2>';
        ?>

        <h3>Welcome,<br> What would you like to do?</h3>

        <h4>Images</h4>
        <a href="upload-images.php">Upload Images</a><br>
        <a href="select-to-change-tags.php">Change Image Tags</a><br>
        <a href="all-images.php?page=1">View and Edit All Images</a><br>
        <a href="tag-requests.php">View Tag Requests (<?php echo $unprocessed; ?> new)</a><br>
        <br>
        <h4>Text</h4>
        <a href="add-post.php">Add Post</a><br>
        <a href="edit-post.php">Edit posts</a><br>

        <br>
        <a href="logout.php">Logout</a>
    </div>
<?php
    $content = ob_get_clean();
{'fraction_non_alphanumeric': 0.21577123050259966, 'fraction_numerical': 0.009098786828422877, 'mean_word_length': 2.947008547008547, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 86, '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': '4288419', 'n_tokens_mistral': 825, 'n_tokens_neox': 808, 'n_words': 160}