Add warning about third-party code when not on clearnet

master
Skylar Ittner 7 years ago
parent 5e5f076309
commit 70cc688704

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

@ -56,6 +56,10 @@ include __DIR__ . '/inc/piwik.php';
<input type="hidden" name="plan" value="<?php echo $plan; ?>" /> <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>. <p>By pressing the Next button, you agree to <a href="terms.php" target="_BLANK">these terms</a>.
<br /> <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> <button type="submit">Next</button>
</form> </form>
</div> </div>

Loading…
Cancel
Save