Monday, July 30, 2018

Raise errors on org salsalabs com to show the source code

Raise errors on org salsalabs com to show the source code



 https://org.salsalabs.com/






<?

var URI = Request.getURI();

    //This provides default values if not supplied by the TAF or initial Salsa page
   var theTitle = "JVP: ";
    var theFBshare = "";
    var theFBshareTitle = "";
    var theFBshareImage = "https://org.salsalabs.com/o/301/images/Salsa-Donate-Header-Logo.png";

        //This section is needed on the regular Salsa template only
        function getFbshare($path){
                 var redirect=$path;
                 newred = redirect.split("tell_a_friend_KEY=");
                 var tafkey = newred[1] ? newred[1].replace(/D+/g,"") : "";
                 var taf=salsa.getObject("tell_a_friend",tafkey);
                 if (taf != null) {
                 if(taf.PT_facebook_share != null)  theFBshare = taf.PT_facebook_share;
                 if(taf.PT_facebook_title != null)  theFBshareTitle = taf.PT_facebook_title;
                 if(taf.PT_facebook_image != null)  theFBshareImage = taf.PT_facebook_image;
                 }
        }

        function getRedirect($dbkey){           
                var table = db.getObject(database_table, $dbkey);
                 var ref = db.getObject(table.table_name, item.table_KEY);
                    getFbshare(ref.redirect_path);
                   if(table.table_name ==  donate_page){
                         theTitle=ref.Reference_Name ? ref.Reference_Name : "";
                         return ref.Reference_Name;
                   } else {
                    if(theFBshareTitle=="") theFBshareTitle=ref.Title;
                    if(theFBshareImage=="") theFBshareImage="http://org.salsalabs.com/o/301/images/logo_fb.jpg";
                    return ref.Title;
                }
           
        }

        function getTitle(){

        var where = Request.getURI() ;
        var match = /[a-zA-Z0-9-]+$/i.exec(where);

        if(match == signup) {
             match = null;
        }

        if(match != null) {
            var shorturl = /[a-zA-Z0-9-]+$/i.exec(where);
            var orderBy = Last_Modified DESC;
            var conditions = [ new Condition(slug, IN, shorturl)];
                var items = db.getObjects(publish, conditions, orderBy);
                for each (item in items) {
                    getRedirect(item.database_table_KEY);
                }
        } else {
            var lists =Request.getParameterList();
            for each (list in lists) {
               var holdlist = list.value;
               var orderBy = Last_Modified DESC;
               var conditions = [ new Condition(table_KEY, =, list.value) ];
               var items = db.getObjects(publish, conditions, orderBy,1);
                for each (item in items) {
                    getRedirect(item.database_table_KEY);

                }
           } // end for each

        } // end match if
        } //end get title function


if (Request.hasParameter("test")) {
//var reTest = db.getObject("action","18118");
// print(reTest.redirect_path);
var listsT =Request.getParameterList();
            for each (list in listsT) {
if (!isNaN(list.value)) {
               var orderByT = Last_Modified DESC;
               var conditionsT = [ new Condition(table_KEY, =, list.value) ];
               var itemsT = db.getObjects(publish, conditionsT, orderByT,1);
                 var refT = db.getObject("action", itemsT[0].table_KEY);
var redirectT=refT.redirect_path;
                 var newredT = redirectT.split("tell_a_friend_KEY=");
                 var tafkeyT = newredT[1].replace(/D+/g,"");
print(tafkeyT);
}
}

}

        ?>
 <!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie6 ie" lang="en" dir="ltr"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 ie" lang="en" dir="ltr"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 ie" lang="en" dir="ltr"> <![endif]-->
<!--[if gt IE 8]> <!--> <html class="" lang="en" dir="ltr"> <!--<![endif]-->
  <head>
<!--SEO meta tags-->
<title><?=theTitle?>    <?=getTitle()?> </title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <meta name="title" content="<?=theFBshareTitle?>" />
        <meta name="description" content="<?=theFBshare?>" />
        <link rel="image_src" href="<?=theFBshareImage?>" />
<!--Facebook meta tags-->       
         <meta property="og:title" content="<?=theFBshareTitle?>"/>
         <meta property="og:image" content="<?=theFBshareImage?>"/>
         <meta property="og:site_name" content=""/>
         <meta property="og:description" content="<?=theFBshare?>"/>

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="shortcut icon" href="/o/301/images/favicon.ico" type="image/x-icon" />
<link href="https://org.salsalabs.com/o/301/images/responsive-v2.css" rel="Stylesheet" type="text/css">
      <link type="text/css" rel="stylesheet" media="all" href="/o/301/images/11937/aggregated5-4-11v4.css" />
<link type="text/css" rel="stylesheet" media="print" href="/o/301/images/11937/print-css-5-4-11.css" />
      <script type="text/javascript" src="/o/301/images/11937/js-5-4-11.js"></script>
      <style>
      /*Client specific fixes */
      body {background:none;color:#313131 !important;}
      #name-and-slogan, #logo-title {background:none !important;}
          #logo-title{margin: 5px 0px 0px 45px;}
      #footer {background-color:#999 !important; font-size:16px !important;}
      .bare #footer, .bare #header {display:none;}
      body .supporterInfo .formRow .checkbox {width:auto !important;}
      #page, #salsa, #main {max-width: inherit; min-width: inherit;}
      #salsa {width: 94%; padding: 3%;}
      #content.page {width: 100%;}
      body .supporterInfo {padding: 0;}
#main {width:100%;}
#videoContainer {
    position: relative;
    width: 90%;
    height: 0;
    padding-bottom: 50.75%;
}
.video {
    position: absolute;
    top: 0;
    left: 5%;
    width: 100%;
    height: 100%;
}
#salsaDonationHeader {background-color:#f7f7f7 !important;border-radius:3px; box-shadow:none !important;}
#submitContribution{background-color: #ea6847 !important;}
#salsa .submit, #main .submit {margin: 2em 0;}
#salsa .actioncontent, #salsa .targets, #salsa .diaFields, #main .actioncontent, #main .targets, #main .diaFields {margin: 0;}
    /*Salsa universal style fixes*/
    .supporterInfo {clear:none !imoprtant; float: left; width:300px; }
    #supporter {max-width: 280px; display: block;}
    .salsa fieldset {border: 1px dotted #000000 !important; width: auto; /*max-width: 275px;*/ padding: 5px 0px 20px 10px !important; margin-top: 10px !important;}
    legend {color: #454545 !important; display: inline; font-size: 15px !important; font-variant: normal; font-weight: bold !important; text-transform: uppercase; padding: 0 5px !important;}
    .salsa label {font-size:14px !important;}
    #questionnaireForm {margin:0 5%;}
    #questionnaireQuestions .formRow .salsaradio, #questionnaireQuestions .formRow label.radioLabel {border-width: 0; clear: inherit; display: inline; float: left; margin-right: 0.5em; }
    .radio {clear: left; color: #333333; display: list-item;float: left; font: 11px Verdana; margin: 3px 5px 3px 0; padding: 0; }
    #questionnaireQuestions .formRow input.required, #questionnaireQuestions .formRow select.required, #questionnaireQuestions .formRow textarea.required { clear: left; font-weight: normal; }
    .checkbox { clear: left; color: #333333;display: list-item; float: left; font: 11px Verdana; margin: 3px 5px 3px 0; padding: 0; }
    .salsa .formRow {padding-left: 0 !important;}
    #postalCodeForm {font-style: italic; }
    .salsa input, .salsa select, .salsa textarea, .salsa form p { font-size: 14px !important; font-family: arial; }
    .salsa input[type="text"], .salsa input[name="Title"], .salsa input[name="institution"] { width: 100% !important; border-radius: 3px 3px 3px 3px; padding: 10px 5px !important; }
//    .salsa textarea { width: 100% !important;}
    .state_dropdown, .salsa_country { width: 260px; border-radius: 3px 3px 3px 3px; padding: 10px 5px !important; }
    #tempPostalCode { border-radius: 3px 3px 3px 3px; padding: 10px 5px !important; }
    .goalTitle {font-size: 25px;font-family: Arial;font-weight: bold;color: rgb(72, 145, 220);}.goalSofar {font-size: 15px;font-family: Arial;font-weight: bold;color: rgb(72, 145, 220);}
    #mainForm #target-page + #sign-page .submit {clear: none !important;}
    .salsa .submit, .salsa input[type="button"] { display: inline; height: 30px; border-radius: 3px 3px 3px 3px; margin-top: 10px; background-color: #cb4d26; color: #fff;  font-size: 1.5em !important; min-height: 53px !important; cursor: pointer; }
    .petitionContent {background-color: #A8A34D !important;  border: 1px solid #888; color: #FFF; border-radius: 4px; box-shadow: 1px 1px 3px 3px rgba(0, 0, 0, 0.2);  max-height: 600px;  overflow: auto;  padding: 17px; float: right; clear: right; width: 50%; margin: 30px 3% 0 !important;}
    .salsa .description {float: left; }
    .addressSearch {float: left; width: 90%;}
    /*Code to allow for seperate mobile & desktop content in the description section*/
    @media screen and (max-width: 640px) {
    .description img, .description #desktop {display: none !important;}
    .description #mobile_more {display: none;}
    .description #mobile {display: block;}
    }
    @media screen and (min-width: 641px) {
    body {background: none !important;}
    .description #mobile, .description #mobile_more {display: none;}
    .description #desktop {display: block;}
    }
    @media screen and (max-width: 900px) {
    body {background: none !important;}
    .petitionContent { float: none; width: 90%; margin: 0 !important; }
    }
    /***Salsa Signup Page Styles ***/
    form[name=data] .supporterInfo {width: 100%;}
    #actionfooter {float: left;}
    /***Salsa Targeted Action Styles ***/
    @media screen and (min-width: 1020px) {
    #salsa-action+#target-page {width: 60% !important; min-width: 430px;}
    #target-page .actioncontent /*.salsa #target-page input.wide, .salsa #target-page textarea*/  {width: 60% !important; min-width: 250px !important; }
    .actioncontent {margin-right: 5% !important; }
    .targets {min-width: 160px; float: left;max-height: inherit !important;width: 30% !important; }
    .contentSet { overflow: inherit !important }
    #target-page+#sign-page {min-width:270px; /* width: 35% !important; */ margin-left: 5% !important; /*float: right !important;*/ }
    }

    @media screen and (min-width: 641px) and (max-width: 1019px) {
    #salsa-action+#target-page {width: 100% !important; min-width: 430px;}
    /*#target-page .actioncontent,*/ .salsa #target-page input.wide, .salsa #target-page textarea {width: 100% !important; min-width: 250px !important; }
    .actioncontent {margin-right: 5% !important; }
    .targets {min-width: 160px; float: left;max-height: inherit !important;width: 30% !important; }
    .salsa .recipient {display: inline-block !important;}
    .contentSet { overflow: inherit !important }
    #target-page+#sign-page {min-width:270px; width: 100% !important; float: left !important; }
    }

    @media screen and (max-width: 640px) {
    .contentSet { overflow: inherit !important; width: 100%; }
    #salsa-action+#target-page {width: 100% !important; min-width: 270px;}
    .actioncontent /*.salsa input.wide, .salsa textarea*/  {width: 100% !important; min-width: 250px !important; }
    .targets {min-width: 160px; float: left;max-height: inherit !important;width: 100% !important; }
    .salsa .recipient {display: inline-block !important;}
    #target-page+#sign-page {min-width:270px; width: 100% !important; float: left !important; }
.supporterInfo {width: 100%;}
    }
    /*Donation styles */
    #salsaDonationHeader {/*float: left;*/ clear: both; font-size: 14px;}
    #salsaDonationHeader #desktop {display: block;}
    #salsaDonationHeader #mobile,  #salsaDonationHeader #mobile_more {display: none;}
    .donation #left_container {width: 45% !important; min-width: 255px; margin-right: 10% !important; float: left !important;}
    .donation #right_container {width: 45%; float: left !important; min-width: 255px;}
    .donation .supporterInfo {width: 100%;}
    .donation_category {color: #454545 !important; font-weight: 700 !important; font-size: 1.2em !important; line-height: 1.3em !important; margin-top: 1em;}
    #monthly_amounts .clearall, #other_amounts .clearall {clear:both;}
    #monthly_amounts input[type="radio"], #other_amounts input[type="radio"] {padding:0; border:0;background:transparent;}
    #monthly_amounts .formRow, #other_amounts .formRow {clear: none !important;        float: left; display: inline-block;    width: 65px; margin: 5px 5px 0px 0px;}
    #monthly_amounts .formRow label, #other_amounts .formRow label {float: none;    display: inline;}
    #monthly_amounts .formRow #otheramt, #other_amounts .formRow #otheramt {margin: 0;}
    #monthly_amounts div.otherRow, #other_amounts div.otherRow {width: 100%;}
    #monthly_amounts div.otherRow > label, #other_amounts div.otherRow > label {margin-right: 0;}
    #monthly_amounts, #other_amounts {width: 265px;    clear: both;}
    #otheramt {width: 50px !important;}
    #donation_amount input[type="radio"] {width: 10px;}
    .donation #submit, #salsaDonationFooter {float: left; margin: 10px 0 0; text-align: left !important;}
    #donation_amount .clearall {clear:none !important;}
    #donation_amount table { margin: -15px 0 0 -3px; }
    #donation_amount input[type="radio"] {padding:0;border:0;        background:transparent;}
    #donation_amount #recurrence {margin-bottom: 1em !important;}
    #donation_amount > .formRow {clear: none !important; float: left; display:inline-block;    width: 100px; margin: 5px 5px 0px 0px;}
    #donation_amount .formRow label {float: none; display: inline;}
    #donation_amount .amount_label { margin-right: 10px;}
    #donation_amount > .formRow #otheramt {margin: 0;}
    #donation_amount div.otherRow {width: 100%;}
    #donation_amount div.otherRow > label {margin-right: 0;}
    #recurring_options div.formRow{display:inline;}
    .donation { min-width: 265px !important; }

    @media screen and (min-width: 680px) {
//    .donation #submit, #salsaDonationFooter {float: right;}
    .donation #submit {margin: -40px 0 0 !important;}
    }

    @media screen and (max-width: 679px) {
    #salsaDonationHeader img, #salsaDonationHeader #desktop {display: none !important;}
    #salsaDonationHeader #mobile {display: block;}
    .donation #left_container, .donation #right_container, .donation #submit, #salsaDonationFooter {width: 100% !important;}
    }
      </style>
 
<link rel="stylesheet" href="unsubscribe.css" type="text/css" media="screen" />
<script type="text/javascript" src="/salsa/include/loadjquery.js"></script>
<script type="text/javascript" src="unsubscribe.js"></script></head>
  <body class="not-front not-logged-in page-node node-type-page two-sidebars page-content-temp section-content">
    <div id="page">
          <div id="header">
               
     <div id="logo-title">
   
            <div id="name-and-slogan"><a href="https://org.salsalabs.com/o/301/p/salsa/donation/common/public/?donate_page_KEY=140"><img src="/o/301/images/Salsa-Donate-Header-Logo.png" /></a>
             </div> <!-- /name-and-slogan -->

     </div> <!-- /logo-title -->
                       
                      </div> <!-- /header -->

                <!--  Mobile NAVIGATION  -->
  <div id="mobile-navigation">
  </div>

      <!-- ______________________ MAIN _______________________ -->
      <div id="main" class="clearfix">
         <div id="content" class="page"><link rel="stylesheet" type="text/css" href="/salsa/include/css/dia/api/salsa.css"/><h3 class=title>Unsubscribe</h3><h4 class=header></h4><form name="unsubscribedata" action="process.sjs" method="POST" id="salsa-unsubscribe-form" class="salsaform" enctype="application/x-www-form-urlencoded"  >
<input type="hidden" id="org_0" name="org" value="" class="salsainput"  />
<input type="hidden" id="email_blast_KEY_1" name="email_blast_KEY" value="1344648" class="salsainput"  />
<input type="hidden" id="first_name_NaN_2" name="first_name_NaN" value="" class="salsainput"  />
<input type="hidden" id="token_3" name="token" value="edwhPmoqhazWbfk2YD8BFeC8LS8FVdIgjzdA42r01Q3e7lv1AiuORA4bFQR9ORdl" class="salsainput"  />
<div id=unsubscribe-type class=spacer>Unsubscribe trueliarx@gmail.com from: </div><div class=formRow><input id="remove-forever" type="radio" name="remove" value="0" class="salsainput salsaradio" title="remove from all lists. Warning: will prevent you from receiving any e-mails from this organization." checked="checked"/>
<label class="radioLabel" for="remove-forever" title="remove from all lists. Warning: will prevent you from receiving any e-mails from this organization.">Everything. Permanently remove me from all lists.</label>
</div><div class=formRow><input id="remove-some" type="radio" name="remove" value="1" class="salsainput salsaradio" title="please check mailing lists that you no longer wish to receive" />
<label class="radioLabel" for="remove-some" title="please check mailing lists that you no longer wish to receive">The following lists:</label>
</div><div class=formRow><fieldset class=checkboxes checkboxes-fieldset><legend></legend><div class="checkbox"><input type="checkbox" id="salsacheckboxes_6-checkbox-0" name="groups_KEY" value="102764" class="salsainput salsacheckbox" title="remove from Main List" checked="checked"  />
<label class="checkboxLabel" for="salsacheckboxes_6-checkbox-0" title="undefined">Main List | Dont unsubscribe me completely, just send me fewer emails!</label>
</div><!-- div.checkbox --></fieldset><!-- fieldset.checkboxes --></div><input type="hidden" id="redirect_7" name="redirect" value="followUp" class="salsainput"  />
<input type="submit" id="Unsubscribe_8" class="submit" value="Unsubscribe" title=""  />
<button type=button class=cancel >cancel</button></form> <!-- #salsa-unsubscribe-form -->
<script type="text/javascript">
$(function(){
    $("#salsa-unsubscribe-form button.cancel").click( function(event) {
        if (event.button) return true;
        document.location.href = "cancel.sjs";
    });
})
</script><!-- TemplateEndEditable --></div> <!-- /content-inner /content -->
        <div class="content">
          <div id="leftbar">

           <!-- /sidebar-left -->        
         </div> 
         </div>
      </div> <!-- /main -->
      <!-- ______________________ FOOTER _______________________ -->
                  <div id="footer">
                            <div id="block-block-1" class="block block-block odd footer_block">
    <div class="block-inner">

               
        <div class="content">
          <p><span></span></p>        </div>
       
     
    </div> <!-- /block-inner -->
</div> <!-- /block -->                          </div> <!-- /footer -->
    </div> <!-- /page -->
    <?
var orgID = salsa.organization_KEY;

var action_KEY = Request.hasParameter("action_KEY") ? Request.getParameter("action_KEY") : 0;
var direction = Request.hasParameter("direction") ? Request.getParameter("direction") : "down";

if(action_KEY > 0){
var sigopt = DB.getObject("action", action_KEY).Signatures.toJSON();
}

//if(action_KEY > 0 && sigopt != "Do not show signatures") {
if(action_KEY > 0 && sigopt == "Show number and most recent signers") {
    var query = "SELECT supporter.First_Name,supporter.Last_Name,supporter.City,supporter.State,supporter.Country,supporter_action.Date_Created,supporter_action_comment.Comment,supporter_action.Anonymous FROM supporter LEFT JOIN supporter_action ON (supporter.supporter_KEY=supporter_action.supporter_KEY) LEFT JOIN supporter_action_comment ON (supporter_action.supporter_action_comment_KEY=supporter_action_comment.supporter_action_comment_KEY) WHERE (supporter.organization_KEY = "+orgID+" AND supporter_action.organization_KEY = "+orgID+") AND ( supporter_action_comment.organization_KEY = "+orgID+" OR supporter_action_comment.supporter_action_comment_KEY IS NULL) AND supporter_action.action_KEY ="+action_KEY+" ORDER BY supporter_action.Date_Created DESC LIMIT 25;"
    var handler = DB.sql(query);
    var supporter_actions = handler.execute();
   
    ?>
    <div id="marquee" style="display: none;" direction="<?=direction?>" speed="1">
    <?
   
    for each(sa in supporter_actions) {
    if (sa.Anonymous !="1") {
    print("<div class="petition_signer">"+sa.First_Name+" "+sa.Last_Name+" in "+sa.City+", "+sa.State+" "+sa.Comment+"</div>");
    }
    else {
    print("<div class="petition_signer">Anonymous in "+sa.City+", "+sa.State+" "+sa.Comment+"</div>");
    }
    }
    ?>
    </div>
    <?
}
?>
<style>
.signatures {margin-bottom: 10px;}
.petition_signer {margin: 10px 0; white-space: normal;}
#marque_div {width: 100% !important;}
</style>
<script type="text/javascript">

$(document).ready(function() {

//LOGIN PAGE BLOCK
var urly = window.location.pathname;
if (urly.indexOf("profile") > -1) {
$("#main").html(<h1 style="text-align:center;margin:10%;">To make changes to your information, please contact us at info@jvp.org</h1>);
}

$(.supporterInfo).css(clear,none);

/* EVENT FIXES */
if ($("body").hasClass("caltest")) {
  $(#calendarButtons,#regheader).hide();
  $(#submitAddAttendee).css(float,left);
  $(.salsa label).css(font-size,14px);
  $(.formRow).css(padding-top,10px);
  $(.supporterInfo).css(width,auto);
  $(.supporterInfo > br:nth-child(2),#salsa > br:nth-child(2),#salsa > br:nth-child(3)).remove();
}

/* IMAGE BANNER CODE */
if ($("body").hasClass("Yotest")){
  var src = $("#descri

visit link download