mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-11 14:10:06 +01:00
Move some more stuff around.
This commit is contained in:
parent
419e451677
commit
0038d5ecf1
17 changed files with 19 additions and 5 deletions
|
@ -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'");
|
||||
|
|
|
@ -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
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
6
public/assets/fa/fontawesome.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
public/assets/webfonts/fa-brands-400.ttf
Normal file
BIN
public/assets/webfonts/fa-brands-400.ttf
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-brands-400.woff2
Normal file
BIN
public/assets/webfonts/fa-brands-400.woff2
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-regular-400.ttf
Normal file
BIN
public/assets/webfonts/fa-regular-400.ttf
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-regular-400.woff2
Normal file
BIN
public/assets/webfonts/fa-regular-400.woff2
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-solid-900.ttf
Normal file
BIN
public/assets/webfonts/fa-solid-900.ttf
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-solid-900.woff2
Normal file
BIN
public/assets/webfonts/fa-solid-900.woff2
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-v4compatibility.ttf
Normal file
BIN
public/assets/webfonts/fa-v4compatibility.ttf
Normal file
Binary file not shown.
BIN
public/assets/webfonts/fa-v4compatibility.woff2
Normal file
BIN
public/assets/webfonts/fa-v4compatibility.woff2
Normal file
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
1
public/vendor/scrivo/highlight.php/styles/default.css
vendored
Symbolic link
1
public/vendor/scrivo/highlight.php/styles/default.css
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../vendor/scrivo/highlight.php/styles/default.css
|
Loading…
Add table
Reference in a new issue