-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
151 changed files
with
22,861 additions
and
16,404 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
463 changes: 310 additions & 153 deletions
463
content/codedoc/classes/PrivateBin-Data-AbstractData.html
Large diffs are not rendered by default.
Oops, something went wrong.
734 changes: 479 additions & 255 deletions
734
content/codedoc/classes/PrivateBin-Data-Database.html
Large diffs are not rendered by default.
Oops, something went wrong.
625 changes: 416 additions & 209 deletions
625
content/codedoc/classes/PrivateBin-Data-Filesystem.html
Large diffs are not rendered by default.
Oops, something went wrong.
543 changes: 361 additions & 182 deletions
543
content/codedoc/classes/PrivateBin-Data-GoogleCloudStorage.html
Large diffs are not rendered by default.
Oops, something went wrong.
566 changes: 376 additions & 190 deletions
566
content/codedoc/classes/PrivateBin-Data-S3Storage.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
<link rel="stylesheet" href="css/normalize.css"> | ||
<link rel="stylesheet" href="css/base.css"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com"> | ||
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="css/template.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" /> | ||
|
@@ -19,6 +19,7 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-highlight/prism-line-highlight.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script> | ||
<script src="js/template.js"></script> | ||
<script src="js/search.js"></script> | ||
<script defer src="js/searchIndex.js"></script> | ||
</head> | ||
|
@@ -52,7 +53,7 @@ <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Doc | |
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button"> | ||
Menu | ||
</label> | ||
<aside class="phpdocumentor-column -four phpdocumentor-sidebar"> | ||
<aside class="phpdocumentor-column -three phpdocumentor-sidebar"> | ||
<section class="phpdocumentor-sidebar__category"> | ||
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2> | ||
<h4 class="phpdocumentor-sidebar__root-namespace"> | ||
|
@@ -95,8 +96,9 @@ <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Fil | |
</section> | ||
</aside> | ||
|
||
<div class="phpdocumentor-column -eight phpdocumentor-content"> | ||
<ul class="phpdocumentor-breadcrumbs"> | ||
<div class="phpdocumentor-column -nine phpdocumentor-content"> | ||
<section> | ||
<ul class="phpdocumentor-breadcrumbs"> | ||
<li class="phpdocumentor-breadcrumb"><a href="namespaces/privatebin.html">PrivateBin</a></li> | ||
</ul> | ||
|
||
|
@@ -115,6 +117,11 @@ <h2 class="phpdocumentor-content__title"> | |
|
||
</h2> | ||
|
||
<div class="phpdocumentor-label-line"> | ||
|
||
|
||
</div> | ||
|
||
<aside class="phpdocumentor-element-found-in"> | ||
<abbr class="phpdocumentor-element-found-in__file" title="lib/FormatV2.php"><a href="files/lib-formatv2.html"><abbr title="lib/FormatV2.php">FormatV2.php</abbr></a></abbr> | ||
: | ||
|
@@ -131,23 +138,36 @@ <h2 class="phpdocumentor-content__title"> | |
|
||
|
||
|
||
|
||
|
||
|
||
<h3 id="toc"> | ||
Table of Contents | ||
<a href="#toc" class="headerlink"><i class="fas fa-link"></i></a> | ||
<a href="classes/PrivateBin-FormatV2.html#toc" class="headerlink"><i class="fas fa-link"></i></a> | ||
|
||
</h3> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h4 id="toc-methods"> | ||
Methods | ||
<a href="classes/PrivateBin-FormatV2.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a> | ||
|
||
</h4> | ||
<dl class="phpdocumentor-table-of-contents"> | ||
<dt class="phpdocumentor-table-of-contents__entry -method -public"> | ||
<dt class="phpdocumentor-table-of-contents__entry -method -public"> | ||
<a href="classes/PrivateBin-FormatV2.html#method_isValid">isValid()</a> | ||
<span> | ||
: bool </span> | ||
</dt> | ||
<dd>version 2 format validator</dd> | ||
|
||
</dl> | ||
</dl> | ||
|
||
|
||
|
||
|
||
|
@@ -159,6 +179,7 @@ <h3 id="toc"> | |
<h3 class="phpdocumentor-elements__header" id="methods"> | ||
Methods | ||
<a href="classes/PrivateBin-FormatV2.html#methods" class="headerlink"><i class="fas fa-link"></i></a> | ||
|
||
</h3> | ||
<article | ||
class="phpdocumentor-element | ||
|
@@ -169,6 +190,7 @@ <h3 class="phpdocumentor-elements__header" id="methods"> | |
<h4 class="phpdocumentor-element__name" id="method_isValid"> | ||
isValid() | ||
<a href="classes/PrivateBin-FormatV2.html#method_isValid" class="headerlink"><i class="fas fa-link"></i></a> | ||
|
||
</h4> | ||
<aside class="phpdocumentor-element-found-in"> | ||
<abbr class="phpdocumentor-element-found-in__file" title="lib/FormatV2.php"><a href="files/lib-formatv2.html"><abbr title="lib/FormatV2.php">FormatV2.php</abbr></a></abbr> | ||
|
@@ -183,6 +205,8 @@ <h4 class="phpdocumentor-element__name" id="method_isValid"> | |
<span class="phpdocumentor-signature__visibility">public</span> | ||
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">isValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string|int, mixed> </span><span class="phpdocumentor-signature__argument__name">$message</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool </span><span class="phpdocumentor-signature__argument__name">$isComment</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code> | ||
|
||
<div class="phpdocumentor-label-line"> | ||
</div> | ||
<section class="phpdocumentor-description"><p>Checks if the given array is a proper version 2 formatted, encrypted message.</p> | ||
</section> | ||
|
||
|
@@ -207,7 +231,8 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5> | |
|
||
<h5 class="phpdocumentor-tag-list__heading" id="tags"> | ||
Tags | ||
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> | ||
<a href="classes/PrivateBin-FormatV2.html#method_isValid#tags" class="headerlink"><i class="fas fa-link"></i></a> | ||
|
||
</h5> | ||
<dl class="phpdocumentor-tag-list"> | ||
<dt class="phpdocumentor-tag-list__entry"> | ||
|
@@ -226,80 +251,136 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags"> | |
|
||
|
||
</dd> | ||
</dl> | ||
</dl> | ||
|
||
<section> | ||
<h5 class="phpdocumentor-return-value__heading">Return values</h5> | ||
<span class="phpdocumentor-signature__response_type">bool</span> | ||
— | ||
|
||
|
||
</article> | ||
<span class="phpdocumentor-signature__response_type">bool</span> | ||
</section> | ||
|
||
|
||
<script type="text/javascript"> | ||
function loadExternalCodeSnippets(line) { | ||
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => { | ||
var src = pre.getAttribute('data-src').replace( /\\/g, '/'); | ||
var extension = (src.match(/\.(\w+)$/) || [, ''])[1]; | ||
var language = 'php'; | ||
|
||
var code = document.createElement('code'); | ||
code.className = 'language-' + language; | ||
|
||
pre.textContent = ''; | ||
|
||
pre.setAttribute('data-line', line) | ||
code.textContent = 'Loading…'; | ||
|
||
pre.appendChild(code); | ||
|
||
var xhr = new XMLHttpRequest(); | ||
</article> | ||
</section> | ||
|
||
xhr.open('GET', src, true); | ||
<div class="phpdocumentor-modal" id="source-view"> | ||
<div class="phpdocumentor-modal-bg" data-exit-button></div> | ||
<div class="phpdocumentor-modal-container"> | ||
<div class="phpdocumentor-modal-content"> | ||
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/lib/FormatV2.php.txt" class="language-php line-numbers linkable-line-numbers"></pre> | ||
</div> | ||
<button data-exit-button class="phpdocumentor-modal__close">×</button> | ||
</div> | ||
</div> | ||
|
||
xhr.onreadystatechange = function () { | ||
if (xhr.readyState == 4) { | ||
<script type="text/javascript"> | ||
(function () { | ||
function loadExternalCodeSnippet(el, url, line) { | ||
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => { | ||
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/'); | ||
const language = 'php'; | ||
|
||
const code = document.createElement('code'); | ||
code.className = 'language-' + language; | ||
pre.textContent = ''; | ||
pre.setAttribute('data-line', line) | ||
code.textContent = 'Loading…'; | ||
pre.appendChild(code); | ||
|
||
var xhr = new XMLHttpRequest(); | ||
|
||
xhr.open('GET', src, true); | ||
|
||
xhr.onreadystatechange = function () { | ||
if (xhr.readyState !== 4) { | ||
return; | ||
} | ||
|
||
if (xhr.status < 400 && xhr.responseText) { | ||
code.textContent = xhr.responseText; | ||
|
||
Prism.highlightElement(code); | ||
return; | ||
} | ||
else if (xhr.status >= 400) { | ||
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText; | ||
|
||
if (xhr.status === 404) { | ||
code.textContent = '✖ Error: File could not be found'; | ||
return; | ||
} | ||
else { | ||
code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost'; | ||
|
||
if (xhr.status >= 400) { | ||
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText; | ||
return; | ||
} | ||
} | ||
}; | ||
|
||
xhr.send(null); | ||
}); | ||
} | ||
|
||
var modals = document.querySelectorAll("[data-modal]"); | ||
|
||
modals.forEach(function (trigger) { | ||
trigger.addEventListener("click", function (event) { | ||
//event.preventDefault(); | ||
const modal = document.getElementById(trigger.dataset.modal); | ||
modal.classList.add("phpdocumentor-modal__open"); | ||
loadExternalCodeSnippets(trigger.dataset.line) | ||
const exits = modal.querySelectorAll("[data-exit-button]"); | ||
exits.forEach(function (exit) { | ||
exit.addEventListener("click", function (event) { | ||
event.preventDefault(); | ||
modal.classList.remove("phpdocumentor-modal__open"); | ||
code.textContent = '✖ Error: An unknown error occurred'; | ||
}; | ||
|
||
xhr.send(null); | ||
}); | ||
} | ||
|
||
const modalButtons = document.querySelectorAll("[data-modal]"); | ||
const openedAsLocalFile = window.location.protocol === 'file:'; | ||
if (modalButtons.length > 0 && openedAsLocalFile) { | ||
console.warn( | ||
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' + | ||
'browsers block XHR requests when a page is opened this way' | ||
); | ||
} | ||
|
||
modalButtons.forEach(function (trigger) { | ||
if (openedAsLocalFile) { | ||
trigger.setAttribute("hidden", "hidden"); | ||
} | ||
|
||
trigger.addEventListener("click", function (event) { | ||
event.preventDefault(); | ||
const modal = document.getElementById(trigger.dataset.modal); | ||
if (!modal) { | ||
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`); | ||
return; | ||
} | ||
modal.classList.add("phpdocumentor-modal__open"); | ||
|
||
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line) | ||
const exits = modal.querySelectorAll("[data-exit-button]"); | ||
exits.forEach(function (exit) { | ||
exit.addEventListener("click", function (event) { | ||
event.preventDefault(); | ||
modal.classList.remove("phpdocumentor-modal__open"); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); | ||
})(); | ||
</script> | ||
|
||
</article> | ||
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden"> | ||
</section> | ||
<section class="phpdocumentor-on-this-page__sidebar"> | ||
|
||
<section class="phpdocumentor-on-this-page__content"> | ||
<strong class="phpdocumentor-on-this-page__title">On this page</strong> | ||
|
||
<ul class="phpdocumentor-list -clean"> | ||
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li> | ||
<li> | ||
<ul class="phpdocumentor-list -clean"> | ||
<li><a href="classes/PrivateBin-FormatV2.html#toc-methods">Methods</a></li> | ||
</ul> | ||
</li> | ||
|
||
|
||
<li class="phpdocumentor-on-this-page-section__title">Methods</li> | ||
<li> | ||
<ul class="phpdocumentor-list -clean"> | ||
<li><a href="classes/PrivateBin-FormatV2.html#method_isValid">isValid()</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</section> | ||
|
||
</section> | ||
</div> | ||
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden"> | ||
<section class="phpdocumentor-search-results__dialog"> | ||
<header class="phpdocumentor-search-results__header"> | ||
<h2 class="phpdocumentor-search-results__title">Search results</h2> | ||
|
@@ -310,7 +391,6 @@ <h2 class="phpdocumentor-search-results__title">Search results</h2> | |
</section> | ||
</section> | ||
</section> | ||
</div> | ||
</div> | ||
<a href="classes/PrivateBin-FormatV2.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a> | ||
|
||
|
Oops, something went wrong.