<commit_before><?php
require_once 'util.php';

if(isset($_POST['cancel_request']))
{
    if(isset($_POST['csrf_token']))
    {
        if($_SESSION['csrf_token'] != $_POST['csrf_token'])
        {
            throw new Error("csrf","csrf token mismatch!");
        }
    }
    else
    {
        throw new Error("csrf","csrf token missing!");
    }
}

function display_request_info_fiat($reqid)
{
    $query = "
        SELECT name, bank, acc_num, sort_code, ref
        FROM uk_requests
        WHERE reqid='$reqid'
    ";
    $result = do_query($query);
    $row = mysql_fetch_assoc($result);
    if (!$row)
        return;
    echo "<p>Name: {$row['name']}</p>\n";
    echo "<p>Bank: {$row['bank']}</p>\n";
    echo "<p>Account number: {$row['acc_num']}</p>\n";
    echo "<p>Sort code: {$row['sort_code']}</p>\n";
    echo "<p>Reference: {$row['ref']}</p>\n";
}

function display_request_info_btc($reqid)
{
    $query = "
        SELECT addy
        FROM bitcoin_requests
        WHERE reqid='$reqid'
    ";
    $result = do_query($query);
    $row = mysql_fetch_assoc($result);<commit_msg>Don't show all the bank details since we're using PP here.<commit_after><?php
require_once 'util.php';

if(isset($_POST['cancel_request']))
{
    if(isset($_POST['csrf_token']))
    {
        if($_SESSION['csrf_token'] != $_POST['csrf_token'])
        {
            throw new Error("csrf","csrf token mismatch!");
        }
    }
    else
    {
        throw new Error("csrf","csrf token missing!");
    }
}

function display_request_info_fiat($reqid)
{
    $query = "
        SELECT name, bank, acc_num, sort_code, ref
        FROM uk_requests
        WHERE reqid='$reqid'
    ";
    $result = do_query($query);
    $row = mysql_fetch_assoc($result);
    if (!$row)
        return;
    echo "<p>PP Account Name: {$row['name']}</p>\n";
    // echo "<p>Bank: {$row['bank']}</p>\n";
    // echo "<p>Account number: {$row['acc_num']}</p>\n";
    // echo "<p>Sort code: {$row['sort_code']}</p>\n";
    // echo "<p>Reference: {$row['ref']}</p>\n";
}

function display_request_info_btc($reqid)
{
    $query = "
        SELECT addy
        FROM bitcoin_requests
        WHERE reqid='$reqid'
    ";
    $result = do_query($query);
    $row = mysql_fetch_assoc($result);
{'fraction_non_alphanumeric': 0.1929902395740905, 'fraction_numerical': 0.0, 'mean_word_length': 2.8091216216216215, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '2308844', 'n_tokens_mistral': 787, 'n_tokens_neox': 780, 'n_words': 147}