Gonna be honest I dont really know what I did.

This commit is contained in:
Floorb 2021-07-26 16:47:00 -04:00
parent cd4bb33439
commit 98ce55886c
5 changed files with 2 additions and 15 deletions

View file

@ -35,7 +35,7 @@ For licensing, see LICENSE.md or http://ckeditor.com/license
$value = htmlspecialchars((string)$value);
?>
<tr>
<th style="vertical-align: top"><?php echo htmlspecialchars((string)$key); ?></th>
<th style="vertical-align: top"><?php echo htmlspecialchars($key); ?></th>
<td>
<pre class="samples"><?php echo $value; ?></pre>
</td>

View file

@ -1,6 +1,5 @@
<?php
class DatabaseHandle {
private static DatabaseHandle $instance;
private PDO $conn;
public function __construct(string $conString, string $username, string $password) {

View file

@ -8,16 +8,6 @@ function captcha($color, $mode, $mul, $allowed) : array {
$bg_path = dirname(__FILE__) . '/captchabg/';
$font_path = dirname(__FILE__) . '/fonts/';
if ($mode == "Easy") {
$fonr_name = 'PonyvilleMedium0.4.ttf';
} elseif ($mode == "Normal") {
$fonr_name = 'times_new_yorker.ttf';
} elseif ($mode == "Tough") {
$fonr_name = 'captcha_code.otf';
} else {
$fonr_name = 'times_new_yorker.ttf';
}
if ($mul == "on") {
$captcha_config = array(
'code' => '',

View file

@ -329,7 +329,6 @@ function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) {
$stats = false;
if ($p_code) {
// Figure out extensions.
$ext = "txt";
$ext = match ($p_code) {
default => 'txt',
};

View file

@ -64,8 +64,7 @@ $protocol = paste_protocol();
} elseif (strtotime($profile_join_date) <= 1609459200) {
echo '<img src = "/img/badges/strag.png" title="[EarlyStraggeler] Joined after the Second wave " style="margin:5px">';
}
if (strpos($profile_badge, '0') !== false) {
} else {
if (!str_contains($profile_badge, '0')) {
echo $profile_badge;
}