mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
Gonna be honest I dont really know what I did.
This commit is contained in:
parent
cd4bb33439
commit
98ce55886c
5 changed files with 2 additions and 15 deletions
|
@ -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>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
class DatabaseHandle {
|
||||
private static DatabaseHandle $instance;
|
||||
private PDO $conn;
|
||||
|
||||
public function __construct(string $conString, string $username, string $password) {
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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',
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue