| @@ 66-95 (lines=30) @@ | ||
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | function getActualDestinations($originals) |
|
| 67 | { |
|
| 68 | $ret = array(); |
|
| 69 | $count = count($originals); |
|
| 70 | for($i = 0; $i < $count; $i++) |
|
| 71 | { |
|
| 72 | $dest = $originals[$i]; |
|
| 73 | if(endswith($dest, 'burningflipside.com')) |
|
| 74 | { |
|
| 75 | $parts = explode('@', $dest); |
|
| 76 | if(count($parts) === 2) |
|
| 77 | { |
|
| 78 | $dests = getDestinationsForID($parts[0]); |
|
| 79 | if($dests === false) |
|
| 80 | { |
|
| 81 | file_put_contents('/var/www/profiles/tmp/log.log', "getActualDestinations: Invalid destination id $parts[0]\n", FILE_APPEND); |
|
| 82 | } |
|
| 83 | else |
|
| 84 | { |
|
| 85 | $ret = array_merge($ret, $dests); |
|
| 86 | } |
|
| 87 | } |
|
| 88 | else |
|
| 89 | { |
|
| 90 | file_put_contents('/var/www/profiles/tmp/log.log', "getActualDestinations: Invalid destination format $dest\n", FILE_APPEND); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | } |
|
| 94 | return $ret; |
|
| 95 | } |
|
| 96 | ||
| 97 | function getRawMessage($action) |
|
| 98 | { |
|
| @@ 101-130 (lines=30) @@ | ||
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | function getActualDestinations($originals) |
|
| 102 | { |
|
| 103 | $ret = array(); |
|
| 104 | $count = count($originals); |
|
| 105 | for($i = 0; $i < $count; $i++) |
|
| 106 | { |
|
| 107 | $dest = $originals[$i]; |
|
| 108 | if(endswith($dest, 'burningflipside.com')) |
|
| 109 | { |
|
| 110 | $parts = explode('@', $dest); |
|
| 111 | if(count($parts) === 2) |
|
| 112 | { |
|
| 113 | $dests = getDestinationsForID($parts[0]); |
|
| 114 | if($dests === false) |
|
| 115 | { |
|
| 116 | file_put_contents('/var/www/profiles/tmp/log.log', "getActualDestinations: Invalid destination id $parts[0]\n", FILE_APPEND); |
|
| 117 | } |
|
| 118 | else |
|
| 119 | { |
|
| 120 | $ret = array_merge($ret, $dests); |
|
| 121 | } |
|
| 122 | } |
|
| 123 | else |
|
| 124 | { |
|
| 125 | file_put_contents('/var/www/profiles/tmp/log.log', "getActualDestinations: Invalid destination format $dest\n", FILE_APPEND); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | } |
|
| 129 | return $ret; |
|
| 130 | } |
|
| 131 | ||
| 132 | function getRawMessage($action) |
|
| 133 | { |
|