phpBMS

Changeset 684

Show
Ignore:
Timestamp:
12/16/09 15:09:06 (2 years ago)
Author:
nate
Message:
  • Removed / commented out active debug code in some files.
  • Changed some error messages to be more relevant.
  • Fixed error message reporting in manual_list_sync.js
Location:
trunk/phpbms/modules
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/javascript/adminsettings.js

    r631 r684  
    359359 
    360360        processSpan.style.display = "none"; 
    361 console.log(updateResponse.checked); 
    362361        if(updateResponse.checked == true){ 
    363362            date.value = updateResponse.date; 
  • trunk/phpbms/modules/mailchimp/include/list_sync.php

    r682 r684  
    118118        $tempArray["code"] = $errorCode; 
    119119         
    120         if($stopScript){ 
     120        if($fatal){ 
    121121            $this->stopScript = true; 
    122122            $tempArray["errorType"] = "error"; 
     
    418418        if($this->lastSyncDate) 
    419419            $querystatement .= " AND `modifieddate` > '".$this->lastSyncDate."'"; 
     420             
    420421         
    421422        $queryresult = $this->db->query($querystatement); 
     
    452453                foreach($return['errors'] as $val){ 
    453454                     
    454                     $this->_addError("Subscribing or updating email '".$val["row"]["EMAIL"]."' failed: ".$val["message"], $val["code"]); 
     455                    $this->_addError("Subscribing or updating uuid '".$val["row"]["UUID"]."' failed: ".$val["message"], $val["code"]); 
    455456                     
    456457                    $memberInfo = $this->api->listMemberInfo($this->listId, $val["row"]["EMAIL"]); 
  • trunk/phpbms/modules/mailchimp/javascript/manual_list_sync.js

    r682 r684  
    4040            }else{ 
    4141                resultText.innerHTML = "The following errors were found:"; 
    42                 for(var error in response.details){ 
    43                      
    44                     result.innerHTML += "\n"; 
    45                     result.innerHTML += capitalize(error.type)+": "+error.message+"( "+error.code+" )" 
     42                                 
     43                for(var i = 0; i < response.details.length; i++){ 
     44                 
     45                                        resultText.innerHTML += "\n"; 
     46                    resultText.innerHTML += capitalize(response.details[i].errorType)+": "+response.details[i].message+"( "+response.details[i].code+" )" 
    4647                     
    4748                }//end for 
     
    8889     
    8990} 
    90 function capitalize(string){ 
     91function capitalize(theString){ 
    9192         
    92         var theReturn = string.substring(0,1).toUpperCase(); 
    93         theReturn += string.substring(1, string.length); 
     93        var theReturn = theString.substring(0,1).toUpperCase(); 
     94        theReturn += theString.substring(1, theString.length); 
    9495        return theReturn; 
    9596         
  • trunk/phpbms/modules/mailchimp/scheduler_list_sync.php

    r681 r684  
    11<?php 
    22//uncomment if need debug 
    3 if(!class_exists("appError")) 
    4         include_once("../../include/session.php"); 
     3//if(!class_exists("appError")) 
     4//      include_once("../../include/session.php"); 
    55include("include/MCAPI.class.php");//for MCAPI CLASS (listSync class uses it) 
    66include("include/list_sync.php");//for listSync class 
     
    1717 
    1818$response = $listSync->process(); 
    19 var_dump($response); 
    20 exit; 
    2119 
    2220if(isset($response["type"])){ 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.