Move some more stuff around.

This commit is contained in:
Floorb 2022-07-30 20:15:48 -04:00
parent 419e451677
commit 0038d5ecf1
17 changed files with 19 additions and 5 deletions

View file

@ -285,3 +285,4 @@ $script_bundles = [];
/* Security headers */
header('X-Frame-Options: SAMEORIGIN');
header('X-Content-Type-Options: nosniff');
header("Content-Security-Policy: default-src 'self' data: 'unsafe-inline'");

View file

@ -1,6 +1,7 @@
<?php
/** @noinspection PhpDefineCanBeReplacedWithConstInspection */
define('IN_PONEPASTE', 1);
require_once('../includes/common.php');
require_once(__DIR__ .'/../../includes/common.php');
use PonePaste\Models\Paste;

6
public/assets/fa/all.min.css vendored Normal file

File diff suppressed because one or more lines are too long

6
public/assets/fa/fontawesome.min.css vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -191,8 +191,8 @@ if ($paste_code === "pastedown") {
$parsedown->setSafeMode(true);
$p_content = $parsedown->text($p_content);
} else {
Highlighter::registerLanguage('green', 'config/green.lang.json');
$hl = new Highlighter();
Highlighter::registerLanguage('green', __DIR__ . '/../config/green.lang.json');
$hl = new Highlighter(false);
$highlighted = $hl->highlight($paste_code == 'text' ? 'plaintext' : $paste_code, $p_content)->value;
$lines = HighlightUtilities\splitCodeIntoArray($highlighted);
}

View file

@ -1,6 +1,5 @@
/* Fonts */
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&subset=cyrillic");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css");
@import url("/assets/fa/all.min.css");
/* Bulma */
@import url("bulma.min.css");

View file

@ -0,0 +1 @@
../../../../../vendor/scrivo/highlight.php/styles/default.css