Browse Source

Add warning about third-party code when not on clearnet

master
Skylar Ittner 4 years ago
parent
commit
70cc688704
  1. 37
      inc/header.php
  2. 4
      purchase.php

37
inc/header.php

@ -1,25 +1,30 @@
<!-- Header -->
<header id="header"<?php if ($page == "index") { echo " class=\"alt\""; } ?>>
<header id="header"<?php if ($page == "index") {
echo " class=\"alt\"";
} ?>>
<!-- Logo -->
<div class="logo">
<a href="./home.php"><strong>Don't Sell.Me</strong> <span class="extra">by Netsyms Technologies<?php
if (strpos($_SERVER['HTTP_HOST'], ".onion") !== FALSE) {
?>
<span style="color: purple; font-weight: 400;">| via Tor</span>
<?php
} else if (strpos($_SERVER['HTTP_HOST'], ".i2p") !== FALSE) {
?>
<span style="color: green; font-weight: 400;">| via I2P</span>
<?php
} else if (strpos($_SERVER['HTTP_HOST'], "mesh.dontsell.me") !== FALSE) {
?>
<span style="color: blue; font-weight: 400;">| via CJDNS</span>
<?php
}
?></span></a>
if (strpos($_SERVER['HTTP_HOST'], ".onion") !== FALSE) {
$clearnet = false;
?>
<span style="color: purple; font-weight: 400;">| via Tor</span>
<?php
} else if (strpos($_SERVER['HTTP_HOST'], ".i2p") !== FALSE) {
$clearnet = false;
?>
<span style="color: green; font-weight: 400;">| via I2P</span>
<?php
} else if (strpos($_SERVER['HTTP_HOST'], "mesh.dontsell.me") !== FALSE) {
$clearnet = false;
?>
<span style="color: blue; font-weight: 400;">| via CJDNS</span>
<?php
}
?></span></a>
</div>
<?php include __DIR__ . '/nav.php'; ?>
<?php include __DIR__ . '/nav.php'; ?>
</header>

4
purchase.php

@ -56,6 +56,10 @@ include __DIR__ . '/inc/piwik.php';
<input type="hidden" name="plan" value="<?php echo $plan; ?>" />
<p>By pressing the Next button, you agree to <a href="terms.php" target="_BLANK">these terms</a>.
<br />
<?php if ($plan != "free" && $clearnet == false) { ?>
Note: The next page needs to load third-party clearnet code from Stripe to process your payment. If you don't want that, email dsm@netsyms.com and mention your preferred methods.
<br />
<?php } ?>
<button type="submit">Next</button>
</form>
</div>

Loading…
Cancel
Save