<commit_before><?php
// CCBin by figgycity50

//set 1. load stuff
include_once 'header.php';

//step 1.5. create the ccbin_get function
function ccbin_get() {
 $id = $_GET['id'];
 $con = mysqli_connect("fdb3.biz.nf","1504774_ccbin","NtioNt10","1504774_ccbin");
 $result = mysqli_query($con,"SELECT * FROM pastes WHERE id='".$id."'");
 $paste_data = mysqli_fetch_array($result);
 $resul2 = mysqli_query($con,"SELECT * FROM users WHERE email='".$_COOKIE['login']."'");
 $user_data = mysqli_fetch_array($resul2);
 if ($paste_data['privacy'] == "private" and $user_data['username'] != $paste_data['owner']) {
    return "private"
 }
 return $paste_data;
}
//step 2. check for an id in the url
if ($_GET['id']) {
    $pdata = ccbin_get();
    //var_dump($pdata);
    if ($pdata == "private") {
    echo '<div class="alert alert-danger"><b>Error:</b> This paste is private and does not belong to you.</a></div>';
    exit;
    }
    if ($pdata['owner'] == "") {
        $owner = "a guest user";
    } else {<commit_msg>added a GOD DAMN semicolon.<commit_after><?php
// CCBin by figgycity50

//set 1. load stuff
include_once 'header.php';

//step 1.5. create the ccbin_get function
function ccbin_get() {
 $id = $_GET['id'];
 $con = mysqli_connect("fdb3.biz.nf","1504774_ccbin","NtioNt10","1504774_ccbin");
 $result = mysqli_query($con,"SELECT * FROM pastes WHERE id='".$id."'");
 $paste_data = mysqli_fetch_array($result);
 $resul2 = mysqli_query($con,"SELECT * FROM users WHERE email='".$_COOKIE['login']."'");
 $user_data = mysqli_fetch_array($resul2);
 if ($paste_data['privacy'] == "private" and $user_data['username'] != $paste_data['owner']) {
    return "private";
 }
 return $paste_data;
}
//step 2. check for an id in the url
if ($_GET['id']) {
    $pdata = ccbin_get();
    //var_dump($pdata);
    if ($pdata == "private") {
    echo '<div class="alert alert-danger"><b>Error:</b> This paste is private and does not belong to you.</a></div>';
    exit;
    }
    if ($pdata['owner'] == "") {
        $owner = "a guest user";
    } else {
{'fraction_non_alphanumeric': 0.19892209701126898, 'fraction_numerical': 0.02449779519843214, 'mean_word_length': 4.209183673469388, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '5947149', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 178}