Browse Source

removed canary page for the moment while we sort this out

temp-remove-canary-page
Jo 2 months ago
parent
commit
ded97db358
Signed by: kvuzet GPG Key ID: 64752D8362A386B7
2 changed files with 0 additions and 85 deletions
  1. +0
    -3
      about/content.md
  2. +0
    -82
      canary/index.php

+ 0
- 3
about/content.md View File

@ -58,6 +58,3 @@ Unfortunately, no. As a 501(c)(4) contributions to the SRA are not tax deductibl
The SRA does not see your financial information at any point in the membership process. All financial transactions are handled by Stripe, a commercial online payment processor. Your credit card information is sent to Stripe using an encrypted tokenized system, and the only information visible to us is the last 4 digits of your credit card number. If you're still concerned, you can pay using a one-time-use prepaid debit card.
## Do you have a warrant canary?
Yes! We have one located [here](/canary).

+ 0
- 82
canary/index.php View File

@ -1,82 +0,0 @@
<?php
// Copyright (C) 2021 Socialist Rifle Association
//
// This file is part of SRA Website.
//
// website is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// website is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with website. If not, see <http://www.gnu.org/licenses/>.
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Socialist Rifle Association - Warrant Canary</title>
<?php include("../res/php/headtags.php") ?>
<style>
code {
display: block;
background: rgba(222,222,222,.25);
border-radius: 8px;
border: 1px solid #ddd;
font-family: "Courier New", monospace;
font-size: 0.9em;
padding: 1em 1.5em;
line-height: 1.75em;
overflow-x: auto;
text-align: left;
}
</style>
</head>
<body>
<?php include("../res/php/top.php") ?>
<!-- Warrant Canary Code -->
<div id="section-title">Warrant Canary</div>
<hr>
<div style="text-align: center;"><h2 id="instructions">Statements</h2></div>
<div style="text-align: center;">
<?php
// Find all canaries in the dl folder
$canaries = [];
foreach (new DirectoryIterator('./dl') as $canaryInfo) {
if ($canaryInfo->isDot()) {
continue;
}
array_push($canaries, $canaryInfo->getFilename());
}
// Sort the canaries in descending order
arsort($canaries);
// Load most recent canary
$canary = array_values($canaries)[0];
$fileList = glob("dl/$canary/*");
arsort($fileList);
$file = basename($fileList[0]);
$canary = file_get_contents("./dl/$canary/$file");
// echo the canary
echo("<section><pre><code>$canary</code></pre></section><br></div><hr>");
// List the canaries
foreach ($canaries as $canary) {
echo("
<h4>Canary #$canary Files</h4><ul>");
$fileList = glob("dl/$canary/*");
arsort($fileList);
foreach ($fileList as $file) {
$file = basename($file);
echo("<li><a href=\"./dl/$canary/$file\">$file</a></li>");
}
echo("</ul>");
}
?>
<?php include("../res/php/bottom.php") ?>
</body>
</html>

Loading…
Cancel
Save