summaryrefslogtreecommitdiffstats
path: root/pages/cp.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-03-12 20:01:10 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-03-12 20:01:10 -0500
commit6ce00969ead28f357ff924340da524d6f2fede65 (patch)
treeb51cab9e4f1ce9715962eb481d1fe892e8a8677b /pages/cp.php
parent2b852b97cb6e6d0270c5f3ffbfb28a8279e37f90 (diff)
parentd9958bde9c3feddf15eced5c786c164db21b1efe (diff)
downloadpathery-6ce00969ead28f357ff924340da524d6f2fede65.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Conflicts: db updates.sql
Diffstat (limited to 'pages/cp.php')
-rw-r--r--pages/cp.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/pages/cp.php b/pages/cp.php
index 97b715d..4f7b112 100644
--- a/pages/cp.php
+++ b/pages/cp.php
@@ -80,9 +80,11 @@ if (isset($_POST['updateSettings']) AND $_POST['updateSettings'] == 'true') {
if ($_POST['emailOptOut'] == 'true') {
setOptedOutOfEmails($userID, true);
$r .= "<br />You are opted out of emails";
+ $r .= '<script>mixpanel.people.set("$unsubscribed", true);</script>';
} else {
setOptedOutOfEmails($userID, false);
$r .= "<br />You are accepting emails";
+ $r .= '<script>mixpanel.people.set("$unsubscribed", false);</script>';
}
DoRedirect($r);
exit;
@@ -107,9 +109,9 @@ $displayName = $_SESSION['displayName'];
<legend>Settings:</legend>
Display Name: <input type="text" size="20" maxlength="14" value="<?php echo $displayName ?>" name="displayName" class="forminput" />
- <br /><br />
- <input type="checkbox" name="emailOptOut" value="true" <?php echo $checked ?>>
- Opt out of emails? We'll only send you important feature updates! I Promise!
+ <br /><br />We'll only send you important feature updates!
+ <br /><input type="checkbox" name="emailOptOut" value="true" <?php echo $checked ?>>
+ Opt out of emails?
<br /><br />
<input type="submit" value="Update settings" class="forminput" />
</fieldset>