651 lines
17 KiB
PHP
651 lines
17 KiB
PHP
<?php header('Content-type: text/html; charset=utf-8');
|
|
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/mailservices/includes/');
|
|
|
|
include(PATHTOINCLUDES."base.php");
|
|
|
|
//Written by Philip Poremba 05/02/2012
|
|
|
|
|
|
|
|
$dconn=dbconnect2();
|
|
|
|
$em="";
|
|
|
|
$_SESSION["user_uri"]="/mailservices/bateworld/user_privacy.php";
|
|
|
|
$_SESSION["pagename"]="Member Privacy Settings";
|
|
|
|
$_SESSION["the_section_location"] = "/mailservices/bateworld/user_privacy.php";
|
|
|
|
$_SESSION["the_section_container"]="section_content";
|
|
|
|
$_SESSION["the_tab"]="five";
|
|
|
|
//set defaults for form fields
|
|
|
|
|
|
|
|
if(isset($_GET["uid"])){$_SESSION["up_settings_uid"]=$_GET["uid"];}
|
|
|
|
|
|
|
|
$sql="SELECT
|
|
|
|
`se_users`.`user_id`,
|
|
|
|
`se_users`.`user_email`,
|
|
|
|
`se_users`.`user_username`,
|
|
|
|
`se_users`.`user_displayname`,
|
|
|
|
`se_users`.`user_signupdate`,
|
|
|
|
`se_users`.`user_lastlogindate`,
|
|
|
|
(floor((UNIX_TIMESTAMP()-`se_users`.`user_lastlogindate`) / (60*60*24))) AS `daysinactive`,
|
|
|
|
`se_users`.`user_pdp_evc`,
|
|
|
|
`se_usersettings`.`usersetting_notify_friendrequest`,
|
|
|
|
`se_usersettings`.`usersetting_notify_message`,
|
|
|
|
`se_usersettings`.`usersetting_notify_profilecomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_pollcomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_mediacomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_newtag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_mediatag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_eventinvite`,
|
|
|
|
`se_usersettings`.`usersetting_notify_eventcomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_eventmediacomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_eventmemberrequest`,
|
|
|
|
`se_usersettings`.`usersetting_notify_eventmediatag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_neweventtag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_videocomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_classifiedcomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_groupinvite`,
|
|
|
|
`se_usersettings`.`usersetting_notify_groupcomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_groupmediacomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_groupmemberrequest`,
|
|
|
|
`se_usersettings`.`usersetting_notify_newgrouptag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_groupmediatag`,
|
|
|
|
`se_usersettings`.`usersetting_notify_grouppost`,
|
|
|
|
`se_usersettings`.`usersetting_notify_blogcomment`,
|
|
|
|
`se_usersettings`.`usersetting_notify_blogtrackback`,
|
|
|
|
`se_usersettings`.`usersetting_notify_newblogsubscriptionentry`,
|
|
|
|
`se_usersettings`.`usersetting_notify_forumreply`,
|
|
|
|
`se_profilevalues`.`profilevalue_4` AS `birthday`
|
|
|
|
FROM
|
|
|
|
`se_users`
|
|
|
|
Left Outer Join `se_usersettings` ON `se_usersettings`.`usersetting_user_id` = `se_users`.`user_id`
|
|
|
|
Left Outer Join `se_profilevalues` ON `se_profilevalues`.`profilevalue_user_id` = `se_users`.`user_id`
|
|
|
|
WHERE
|
|
|
|
`se_users`.`user_id` = ".$_SESSION["up_settings_uid"];
|
|
|
|
$result=mysql_query($sql) or $em=$em.mysql_error();
|
|
|
|
$a=mysql_fetch_assoc($result);
|
|
|
|
|
|
|
|
$sql3="SELECT `se_users`.`user_email`
|
|
|
|
FROM `se_users`
|
|
|
|
GROUP BY `se_users`.`user_email`
|
|
|
|
HAVING COUNT(*) > 1";
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="container" class="standard-form" style="padding-bottom:30px;">
|
|
|
|
<div class="form-container">
|
|
|
|
<form name="formuserprivacy" id="formuserprivacy" action="">
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
<h1>
|
|
|
|
<?php echo $a["user_username"];?> - Account Settings
|
|
|
|
</h1>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<div style="margin-bottom:10px;">
|
|
|
|
<a href="javascript:donothing();"
|
|
|
|
onclick="verify_email_format_domain('<?php echo $a["user_email"];?>','led_span_email');">
|
|
|
|
Verify Email Address Format & Domain
|
|
|
|
</a>
|
|
|
|
l
|
|
|
|
<a href="javascript:donothing();" onclick="smtp_validate_internal('<?php echo $a["user_email"];?>','led_span_email');">
|
|
|
|
SMTP Validate</a>
|
|
|
|
l
|
|
|
|
<a href="javascript:donothing();">Send Confirm Email</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
<div>
|
|
|
|
<span class="span_label">Email Address:</span>
|
|
|
|
<span id="led_span_email"
|
|
|
|
pattern='^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'>
|
|
|
|
<?php echo $a["user_email"];?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
//-->
|
|
|
|
<div id="cuser_email" class="iholder">
|
|
|
|
<label for="user_email">Email Address:</label>
|
|
|
|
<input name="user_email" id="user_email" required pattern='^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$' class="email"
|
|
|
|
type="text" size="33" maxlength="255" value="<?php echo $a["user_email"]; ?>"
|
|
|
|
onblur="submit_form_item('user_email','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','Please enter a valid email address!','N');" />
|
|
|
|
<span class="frmrequired"></span>
|
|
|
|
<span class="errormsg" id="e_user_email">Please enter a valid email address!</span>
|
|
|
|
<input type="hidden" name="o_user_email" id="o_user_email" value="<?php echo $a["user_email"]; ?>" />
|
|
|
|
</div>
|
|
|
|
<div id="user_pdp_evc" class="iholder, radio">
|
|
|
|
<label for="user_pdp_evc">Verification Flag:</label>
|
|
|
|
<input type="radio" name="user_pdp_evc" id="user_pdp_evc_0" value="0" class="radio"
|
|
|
|
onclick="submit_form_item('user_pdp_evc','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','','N');"
|
|
|
|
<?php if($a["user_pdp_evc"]==0) {echo "checked=\"checked\"";}?>
|
|
|
|
>
|
|
|
|
<label for="user_pdp_evc_0" class="lnf">Email Off</label>
|
|
|
|
<input type="radio" name="user_pdp_evc" id="user_pdp_evc_1" value="1" class="radio"
|
|
|
|
onclick="submit_form_item('user_pdp_evc','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','','N');"
|
|
|
|
<?php if($a["user_pdp_evc"]==1) {echo "checked=\"checked\"";}?>
|
|
|
|
>
|
|
|
|
<label for="user_pdp_evc_1" class="lnf">Email On</label>
|
|
|
|
<input type="radio" name="user_pdp_evc" id="user_pdp_evc_2" value="2" class="radio"
|
|
|
|
onclick="submit_form_item('user_pdp_evc','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','','N');"
|
|
|
|
<?php if($a["user_pdp_evc"]==2) {echo "checked=\"checked\"";}?>
|
|
|
|
>
|
|
|
|
<label for="user_pdp_evc_2" class="lnf">Soft Bounce (off)</label>
|
|
|
|
<input type="radio" name="user_pdp_evc" id="user_pdp_evc_3" value="3" class="radio"
|
|
|
|
onclick="submit_form_item('user_pdp_evc','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','','N');"
|
|
|
|
<?php if($a["user_pdp_evc"]==3) {echo "checked=\"checked\"";}?>
|
|
|
|
>
|
|
|
|
<label for="user_pdp_evc_3" class="lnf">Not Verified (on)</label>
|
|
|
|
<input type="radio" name="user_pdp_evc" id="user_pdp_evc_4" value="4" class="radio"
|
|
|
|
onclick="submit_form_item('user_pdp_evc','section_content','/mailservices/bateworld/user_privacy_act.php','se_users','','N');"
|
|
|
|
<?php if($a["user_pdp_evc"]==4) {echo "checked=\"checked\"";}?>
|
|
|
|
>
|
|
|
|
<label for="user_pdp_evc_4" class="lnf">Abuse Complaint (off)</label>
|
|
|
|
<span class="errormsg" id="e_user_pdp_evc"></span>
|
|
|
|
<input type="hidden" name="o_user_pdp_evc" id="o_user_pdp_evc" value="<?php echo $a["user_pdp_evc"]; ?>" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div><span class="span_label">Birthday:</span> <?php echo $a["birthday"];?></div>
|
|
|
|
<?php $lastlogin=date("m.d.Y",$a["user_lastlogindate"]);?>
|
|
|
|
<?php $signup=date("m.d.Y",$a["user_signupdate"]);?>
|
|
|
|
<div><span class="span_label">Sign Up Date:</span> <?php echo $signup;?></div>
|
|
|
|
<div><span class="span_label">Last Login:</span> <?php echo $lastlogin;?></div>
|
|
|
|
<div><span class="span_label">Days Inactive:</span> <?php echo $a["daysinactive"];?></div>
|
|
|
|
|
|
|
|
<div id="user_email_notification" style="padding-bottom:18px;">
|
|
|
|
|
|
|
|
<ul id="u-privacy">
|
|
|
|
|
|
|
|
<li class="ul-rows">
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_friendrequest" name="usersetting_notify_friendrequest"
|
|
|
|
<?php if($a["usersetting_notify_friendrequest"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_friendrequest','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Friend Request</li>
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_message" name="usersetting_notify_message"
|
|
|
|
<?php if($a["usersetting_notify_message"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_message','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Receive Message</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_profilecomment" name="usersetting_notify_profilecomment"
|
|
|
|
<?php if($a["usersetting_notify_profilecomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_profilecomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Profile Comment</li>
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_pollcomment" name="usersetting_notify_pollcomment"
|
|
|
|
<?php if($a["usersetting_notify_pollcomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_pollcomment','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Poll Comment</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_mediacomment" name="usersetting_notify_mediacomment"
|
|
|
|
<?php if($a["usersetting_notify_mediacomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_mediacomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Photo Comment</li>
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_eventcomment" name="usersetting_notify_eventcomment"
|
|
|
|
<?php if($a["usersetting_notify_eventcomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_eventcomment','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Event Comment</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_eventmediacomment" name="usersetting_notify_eventmediacomment"
|
|
|
|
<?php if($a["usersetting_notify_eventmediacomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_eventmediacomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Comment On Photo In Event</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_eventinvite" name="usersetting_notify_eventinvite"
|
|
|
|
<?php if($a["usersetting_notify_eventinvite"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_eventinvite','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Event Invitation</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_eventmemberrequest" name="usersetting_notify_eventmemberrequest"
|
|
|
|
<?php if($a["usersetting_notify_eventmemberrequest"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_eventmemberrequest','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Invitation to Created Event</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_neweventtag" name="usersetting_notify_neweventtag"
|
|
|
|
<?php if($a["usersetting_notify_neweventtag"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_neweventtag','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Tagged In An Event Photo</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_eventmediatag" name="usersetting_notify_eventmediatag"
|
|
|
|
<?php if($a["usersetting_notify_eventmediatag"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_eventmediatag','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Tag Photo In Event User Leads</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_videocomment" name="usersetting_notify_videocomment"
|
|
|
|
<?php if($a["usersetting_notify_videocomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_videocomment','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Comment on Video</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_classifiedcomment" name="usersetting_notify_classifiedcomment"
|
|
|
|
<?php if($a["usersetting_notify_classifiedcomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_classifiedcomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Classified Comment</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_groupcomment" name="usersetting_notify_groupcomment"
|
|
|
|
<?php if($a["usersetting_notify_groupcomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_groupcomment','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Comment Posted to Group User Leads</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_groupmediacomment" name="usersetting_notify_groupmediacomment"
|
|
|
|
<?php if($a["usersetting_notify_groupmediacomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_groupmediacomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Comment On Photo In Group User Leads</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_groupinvite" name="usersetting_notify_groupinvite"
|
|
|
|
<?php if($a["usersetting_notify_groupinvite"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_groupinvite','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Group Invitation</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_groupmemberrequest" name="usersetting_notify_groupmemberrequest"
|
|
|
|
<?php if($a["usersetting_notify_groupmemberrequest"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_groupmemberrequest','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Invitation To Group Created By User</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_grouppost" name="usersetting_notify_grouppost"
|
|
|
|
<?php if($a["usersetting_notify_grouppost"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_grouppost','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Post In Discussion Led By User</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_blogcomment" name="usersetting_notify_blogcomment"
|
|
|
|
<?php if($a["usersetting_notify_blogcomment"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_blogcomment','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Comment On Blog Entry</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle">
|
|
|
|
<input type="checkbox" id="usersetting_notify_newblogsubscriptionentry" name="usersetting_notify_newblogsubscriptionentry"
|
|
|
|
<?php if($a["usersetting_notify_newblogsubscriptionentry"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_newblogsubscriptionentry','/mailservices/bateworld/user_privacy_act.php')" />
|
|
|
|
</li>
|
|
|
|
<li class="li_right">Comment On Subscribed Blog</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li class="li-left">
|
|
|
|
<input type="checkbox" id="usersetting_notify_forumreply" name="usersetting_notify_forumreply"
|
|
|
|
<?php if($a["usersetting_notify_forumreply"] == 1){echo 'checked="checked"';} ?>
|
|
|
|
onclick="update_email_notification('usersetting_notify_forumreply','/mailservices/bateworld/user_privacy_act.php')" /></li>
|
|
|
|
<li class="li-leftmiddle">Post In Forum Topic Created By User</li>
|
|
|
|
|
|
|
|
<li class="li-rightmiddle"> </li>
|
|
|
|
<li class="li_right"> </li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- end formcontainer -->
|
|
|
|
</div>
|
|
|
|
<!-- end container -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|