Beecoder_Beeshopy - Version 2.5.0

Version Notes

Adding base URL

Download this release

Release Info

Developer Magento Core Team
Extension Beecoder_Beeshopy
Version 2.5.0
Comparing to
See all releases


Code changes from version 2.4.9 to 2.5.0

app/code/community/Beecoder/Beeshopy/Model/.Api.php.swp ADDED
Binary file
app/code/community/Beecoder/Beeshopy/Model/Api.php CHANGED
@@ -88,7 +88,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
88
  foreach(Mage::app()->getStores() as $sview){
89
  if($sview->getIsActive() == 1 || $sview->getId() == $default_store_view){
90
  $includes_taxes = Mage::helper('tax')->priceIncludesTax($sview);
91
- $store_views[$sview->getId()] = array('id' => $sview->getId(), 'name' => $sview->getName(), 'code' => $sview->getCode(), 'root_category_id' => $sview->getRootCategoryId(), 'taxes_included' => $includes_taxes);
92
  /* Currencies */
93
  $store_views[$sview->getId()]['currencies'] = array();
94
  $base = $sview->getBaseCurrency()->getCode();
@@ -111,7 +111,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
111
  /* Used to know if module is installed*/
112
  public function checkModule()
113
  {
114
- return array("api_version" => '2.4.8', "magento_version" => Mage::getVersion());
115
  }
116
 
117
  /*Auxiliar functions*/
88
  foreach(Mage::app()->getStores() as $sview){
89
  if($sview->getIsActive() == 1 || $sview->getId() == $default_store_view){
90
  $includes_taxes = Mage::helper('tax')->priceIncludesTax($sview);
91
+ $store_views[$sview->getId()] = array('id' => $sview->getId(), 'name' => $sview->getName(), 'code' => $sview->getCode(), 'root_category_id' => $sview->getRootCategoryId(), 'taxes_included' => $includes_taxes, 'base_url' => $sview->getBaseUrl('web'), 'secure_base_url' => $sview->getBaseUrl('web', true));
92
  /* Currencies */
93
  $store_views[$sview->getId()]['currencies'] = array();
94
  $base = $sview->getBaseCurrency()->getCode();
111
  /* Used to know if module is installed*/
112
  public function checkModule()
113
  {
114
+ return array("api_version" => '2.5.0', "magento_version" => Mage::getVersion());
115
  }
116
 
117
  /*Auxiliar functions*/
app/design/frontend/base/default/layout/beeshopy.xml CHANGED
@@ -7,10 +7,10 @@
7
  </checkout_onepage_success>
8
 
9
  <default>
10
- <reference name="head">
11
  <block type="core/text" name='beetailer'>
12
  <action method="setText">
13
- <text><![CDATA[ <script type='text/javascript' src='//www.beetailer.com/javascripts/beetailer.js'></script> ]]> </text>
14
  </action>
15
  </block>
16
  </reference>
7
  </checkout_onepage_success>
8
 
9
  <default>
10
+ <reference name="before_body_end">
11
  <block type="core/text" name='beetailer'>
12
  <action method="setText">
13
+ <text><![CDATA[ <script type='text/javascript' src='http://beeshopy.local:3000/javascripts/beetailer.js'></script> ]]> </text>
14
  </action>
15
  </block>
16
  </reference>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
- <version>2.4.9</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -11,11 +11,11 @@ Beeshopy extension for Magento, it allows you to integrates your magento store w
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
- <notes>Adding js file to package</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
16
- <date>2011-09-14</date>
17
- <time>08:56:17</time>
18
- <contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="8e02acad05b4494025b76a7a1504351c"/></dir><dir name="controllers"><file name="AdminController.php" hash="1b343fe1ef8ae5fafc5d355844e3f508"/><file name="IndexController.php" hash="bad3391bb742a55a2ee62895cb723e87"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="2fcfaeccb838771505e12715c9618c3d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="d307958edf914638aa5cd57f8d449c46"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="beeshopy"><file name="beetailer.js" hash="1ec29bef61895d80519a8559734c90e6"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
+ <version>2.5.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
+ <notes>Adding base URL</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
16
+ <date>2011-11-25</date>
17
+ <time>11:40:16</time>
18
+ <contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="02ef5b11223fa0d970f1d43588139822"/><file name=".Api.php.swp" hash="6f9706f19fcc71324c5b7417aa48fb38"/></dir><dir name="controllers"><file name="AdminController.php" hash="1b343fe1ef8ae5fafc5d355844e3f508"/><file name="IndexController.php" hash="bad3391bb742a55a2ee62895cb723e87"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="2fcfaeccb838771505e12715c9618c3d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="2f5814485e377e041240075f4314e320"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>
skin/frontend/base/default/js/beeshopy/beetailer.js DELETED
@@ -1,390 +0,0 @@
1
- var fb_ref_regex = /^beetailer_(.*)/
2
-
3
- function getParam(name){
4
- var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
5
- if (results) {
6
- return results[1];
7
- } else {
8
- null
9
- }
10
- }
11
-
12
- /* Cookies handle */
13
- function createCookie(name,value,days) {
14
- if (days) {
15
- var date = new Date();
16
- date.setTime(date.getTime()+(days*24*60*60*1000));
17
- var expires = "; expires="+date.toGMTString();
18
- }
19
- else var expires = "";
20
- /* Adding wildcard period character in order to work with Magento core/cookie set function */
21
- document.cookie = name+"="+value+expires+"; path=/; domain=."+window.location.hostname;
22
- }
23
-
24
- function readCookie(name) {
25
- var nameEQ = name + "=";
26
- var ca = document.cookie.split(';');
27
- for(var i=0;i < ca.length;i++) {
28
- var c = ca[i];
29
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
30
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
31
- }
32
-
33
- return "";
34
- }
35
-
36
- function eraseCookie(name) {
37
- createCookie(name,"",-1);
38
- }
39
-
40
- /* Check for Beetailer ref*/
41
- function checkUrl(){
42
- if(getParam("fb_ref") && fb_ref_regex.test(getParam("fb_ref"))){
43
- /* Deprecated */
44
- /* General cookie */
45
- createCookie("beetailer_shop", getParam("fb_ref").split("_")[1] , 720);
46
- /* Checkout cookie */
47
- if(getParam("checkout_token")){
48
- createCookie("beetailer_checkout", getParam("checkout_token"), 720);
49
- }
50
- /* EO deprecated */
51
-
52
- createCookie("beetailer_ref", getParam("fb_ref") , 720);
53
- createCookie("beetailer_ref_date", new Date().getTime()/1000 , 720);
54
-
55
- }
56
- }
57
-
58
- function hidePromoPopup(){
59
- var head = document.getElementsByTagName('html')[0];
60
- var child = document.getElementById("beetailer_promotion");
61
- head.removeChild(child);
62
- createCookie("hide_beetailer_promos", 1)
63
- }
64
-
65
- function addPromos(){
66
- if(!readCookie('hide_beetailer_promos')){
67
- /* Load promotions script */
68
- var head= document.getElementsByTagName('head')[0];
69
- var script= document.createElement('script');
70
- script.type= 'text/javascript';
71
- script.src= '//www.beetailer.com/out/promotions.js?domain=' + window.location.hostname;
72
- head.appendChild(script);
73
- }
74
- }
75
-
76
- function addBeesocial(){
77
- if(typeof bt_widget_label == "undefined"){ bt_widget_label = "beesocial"};
78
- if(document.getElementById(bt_widget_label) && !document.getElementById("social_widget_iframe")){
79
- label = document.getElementById(bt_widget_label);
80
- var attributes = document.getElementById(bt_widget_label).attributes;
81
- var options = Array();
82
-
83
- /* Load javascript vbles embeded in html tag attributes */
84
- for (i=0;i<attributes.length; i++){
85
- options[attributes[i].nodeName] = attributes[i].nodeValue;
86
- }
87
-
88
- /* Instanciate iframe script */
89
- var iframe= document.createElement('iframe');
90
- iframe.setAttribute("frameBorder", "0");
91
- iframe.setAttribute("scrolling", "no");
92
- iframe.setAttribute("width", "100%");
93
- iframe.setAttribute("height", "1");
94
- iframe.setAttribute("id", "social_widget_iframe");
95
- var src= "//www.beetailer.com/out/social_widget" +
96
- "?domain=" + options["data-domain"] +
97
- "&product_id=" + options["data-product-id"] +
98
- "&url=" + options["data-url"] +
99
- "&data_comment_width=" + options['data-comment-width'] +
100
- "&data_css_style=" + escape(options['data-css-style']) +
101
- "&data_disable_twitter=" + options['data-disable-twitter'] +
102
- "&data_disable_like=" + options['data-disable-like'] +
103
- "&data_disable_comment=" + options['data-disable-comment'] +
104
- "&data_disable_plusone=" + options['data-disable-plusone'] +
105
- "&data_twitter_text=" + options['data-twitter-text'] +
106
- "&data_fb_comment_style=" + options['data-fb-comment-style'] +
107
- "&data_fb_comment_num_post=" + options['data-fb-comment-num-post'] +
108
- "&platform=" + options['platform'];
109
-
110
- iframe.src= src + "&hash=" + MD5(src) + "#" + window.location.href;
111
- label.appendChild(iframe);
112
-
113
- /* Resize listener */
114
- XD.receiveMessage(function(message){
115
- console.warn('Resizing iframe ' + message.data + 'px');
116
- document.getElementById('social_widget_iframe').style.height= message.data + 'px';
117
- }, 'https://www.beetailer.com');
118
- }
119
- }
120
-
121
- // Resize post_message
122
- //
123
- var XD = function(){
124
- var interval_id,
125
- last_hash,
126
- cache_bust = 1,
127
- attached_callback,
128
- window = this;
129
-
130
- return {
131
- postMessage : function(message, target_url, target) {
132
- if (!target_url) {
133
- return;
134
- }
135
- target = target || parent; // default to parent
136
- if (window['postMessage']) {
137
- // the browser supports window.postMessage, so call it with a targetOrigin
138
- // set appropriately, based on the target_url parameter.
139
- target['postMessage'](message, target_url.replace( /([^:]+:\/\/[^\/]+).*/, '$1'));
140
- } else if (target_url) {
141
- // the browser does not support window.postMessage, so use the window.location.hash fragment hack
142
- target.location = target_url.replace(/#.*$/, '') + '#' + (+new Date) + (cache_bust++) + '&' + message;
143
- }
144
- },
145
- receiveMessage : function(callback, source_origin) {
146
- // browser supports window.postMessage
147
- if (window['postMessage']) {
148
- // bind the callback to the actual event associated with window.postMessage
149
- if (callback) {
150
- attached_callback = function(e) {
151
- if ((typeof source_origin === 'string' && typeof e.origin === 'string' && e.origin.replace(/http(s*):\/\//, "") !== source_origin.replace(/http(s*):\/\//, ""))
152
- || (Object.prototype.toString.call(source_origin) === "[object Function]" && source_origin(e.origin) === !1)) {
153
- return !1;
154
- }
155
- callback(e);
156
- };
157
- }
158
- if (window['addEventListener']) {
159
- window[callback ? 'addEventListener' : 'removeEventListener']('message', attached_callback, !1);
160
- } else {
161
- window[callback ? 'attachEvent' : 'detachEvent']('onmessage', attached_callback);
162
- }
163
- } else {
164
- // a polling loop is started & callback is called whenever the location.hash changes
165
- interval_id && clearInterval(interval_id);
166
- interval_id = null;
167
- if (callback) {
168
- interval_id = setInterval(function() {
169
- var hash = document.location.hash,
170
- re = /^#?\d+&/;
171
- if (hash !== last_hash && re.test(hash)) {
172
- last_hash = hash;
173
- callback({data: hash.replace(re, '')});
174
- }
175
- }, 100);
176
- }
177
- }
178
- }
179
- };
180
- }();
181
-
182
- /**
183
- *
184
- * MD5 (Message-Digest Algorithm)
185
- * http://www.webtoolkit.info/
186
- *
187
- **/
188
-
189
- var MD5 = function (string) {
190
-
191
- function RotateLeft(lValue, iShiftBits) {
192
- return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
193
- }
194
-
195
- function AddUnsigned(lX,lY) {
196
- var lX4,lY4,lX8,lY8,lResult;
197
- lX8 = (lX & 0x80000000);
198
- lY8 = (lY & 0x80000000);
199
- lX4 = (lX & 0x40000000);
200
- lY4 = (lY & 0x40000000);
201
- lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);
202
- if (lX4 & lY4) {
203
- return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
204
- }
205
- if (lX4 | lY4) {
206
- if (lResult & 0x40000000) {
207
- return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
208
- } else {
209
- return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
210
- }
211
- } else {
212
- return (lResult ^ lX8 ^ lY8);
213
- }
214
- }
215
-
216
- function F(x,y,z) { return (x & y) | ((~x) & z); }
217
- function G(x,y,z) { return (x & z) | (y & (~z)); }
218
- function H(x,y,z) { return (x ^ y ^ z); }
219
- function I(x,y,z) { return (y ^ (x | (~z))); }
220
-
221
- function FF(a,b,c,d,x,s,ac) {
222
- a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
223
- return AddUnsigned(RotateLeft(a, s), b);
224
- };
225
-
226
- function GG(a,b,c,d,x,s,ac) {
227
- a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
228
- return AddUnsigned(RotateLeft(a, s), b);
229
- };
230
-
231
- function HH(a,b,c,d,x,s,ac) {
232
- a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
233
- return AddUnsigned(RotateLeft(a, s), b);
234
- };
235
-
236
- function II(a,b,c,d,x,s,ac) {
237
- a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
238
- return AddUnsigned(RotateLeft(a, s), b);
239
- };
240
-
241
- function ConvertToWordArray(string) {
242
- var lWordCount;
243
- var lMessageLength = string.length;
244
- var lNumberOfWords_temp1=lMessageLength + 8;
245
- var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;
246
- var lNumberOfWords = (lNumberOfWords_temp2+1)*16;
247
- var lWordArray=Array(lNumberOfWords-1);
248
- var lBytePosition = 0;
249
- var lByteCount = 0;
250
- while ( lByteCount < lMessageLength ) {
251
- lWordCount = (lByteCount-(lByteCount % 4))/4;
252
- lBytePosition = (lByteCount % 4)*8;
253
- lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<<lBytePosition));
254
- lByteCount++;
255
- }
256
- lWordCount = (lByteCount-(lByteCount % 4))/4;
257
- lBytePosition = (lByteCount % 4)*8;
258
- lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80<<lBytePosition);
259
- lWordArray[lNumberOfWords-2] = lMessageLength<<3;
260
- lWordArray[lNumberOfWords-1] = lMessageLength>>>29;
261
- return lWordArray;
262
- };
263
-
264
- function WordToHex(lValue) {
265
- var WordToHexValue="",WordToHexValue_temp="",lByte,lCount;
266
- for (lCount = 0;lCount<=3;lCount++) {
267
- lByte = (lValue>>>(lCount*8)) & 255;
268
- WordToHexValue_temp = "0" + lByte.toString(16);
269
- WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);
270
- }
271
- return WordToHexValue;
272
- };
273
-
274
- function Utf8Encode(string) {
275
- string = string.replace(/\r\n/g,"\n");
276
- var utftext = "";
277
-
278
- for (var n = 0; n < string.length; n++) {
279
-
280
- var c = string.charCodeAt(n);
281
-
282
- if (c < 128) {
283
- utftext += String.fromCharCode(c);
284
- }
285
- else if((c > 127) && (c < 2048)) {
286
- utftext += String.fromCharCode((c >> 6) | 192);
287
- utftext += String.fromCharCode((c & 63) | 128);
288
- }
289
- else {
290
- utftext += String.fromCharCode((c >> 12) | 224);
291
- utftext += String.fromCharCode(((c >> 6) & 63) | 128);
292
- utftext += String.fromCharCode((c & 63) | 128);
293
- }
294
-
295
- }
296
-
297
- return utftext;
298
- };
299
-
300
- var x=Array();
301
- var k,AA,BB,CC,DD,a,b,c,d;
302
- var S11=7, S12=12, S13=17, S14=22;
303
- var S21=5, S22=9 , S23=14, S24=20;
304
- var S31=4, S32=11, S33=16, S34=23;
305
- var S41=6, S42=10, S43=15, S44=21;
306
-
307
- string = Utf8Encode(string);
308
-
309
- x = ConvertToWordArray(string);
310
-
311
- a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;
312
-
313
- for (k=0;k<x.length;k+=16) {
314
- AA=a; BB=b; CC=c; DD=d;
315
- a=FF(a,b,c,d,x[k+0], S11,0xD76AA478);
316
- d=FF(d,a,b,c,x[k+1], S12,0xE8C7B756);
317
- c=FF(c,d,a,b,x[k+2], S13,0x242070DB);
318
- b=FF(b,c,d,a,x[k+3], S14,0xC1BDCEEE);
319
- a=FF(a,b,c,d,x[k+4], S11,0xF57C0FAF);
320
- d=FF(d,a,b,c,x[k+5], S12,0x4787C62A);
321
- c=FF(c,d,a,b,x[k+6], S13,0xA8304613);
322
- b=FF(b,c,d,a,x[k+7], S14,0xFD469501);
323
- a=FF(a,b,c,d,x[k+8], S11,0x698098D8);
324
- d=FF(d,a,b,c,x[k+9], S12,0x8B44F7AF);
325
- c=FF(c,d,a,b,x[k+10],S13,0xFFFF5BB1);
326
- b=FF(b,c,d,a,x[k+11],S14,0x895CD7BE);
327
- a=FF(a,b,c,d,x[k+12],S11,0x6B901122);
328
- d=FF(d,a,b,c,x[k+13],S12,0xFD987193);
329
- c=FF(c,d,a,b,x[k+14],S13,0xA679438E);
330
- b=FF(b,c,d,a,x[k+15],S14,0x49B40821);
331
- a=GG(a,b,c,d,x[k+1], S21,0xF61E2562);
332
- d=GG(d,a,b,c,x[k+6], S22,0xC040B340);
333
- c=GG(c,d,a,b,x[k+11],S23,0x265E5A51);
334
- b=GG(b,c,d,a,x[k+0], S24,0xE9B6C7AA);
335
- a=GG(a,b,c,d,x[k+5], S21,0xD62F105D);
336
- d=GG(d,a,b,c,x[k+10],S22,0x2441453);
337
- c=GG(c,d,a,b,x[k+15],S23,0xD8A1E681);
338
- b=GG(b,c,d,a,x[k+4], S24,0xE7D3FBC8);
339
- a=GG(a,b,c,d,x[k+9], S21,0x21E1CDE6);
340
- d=GG(d,a,b,c,x[k+14],S22,0xC33707D6);
341
- c=GG(c,d,a,b,x[k+3], S23,0xF4D50D87);
342
- b=GG(b,c,d,a,x[k+8], S24,0x455A14ED);
343
- a=GG(a,b,c,d,x[k+13],S21,0xA9E3E905);
344
- d=GG(d,a,b,c,x[k+2], S22,0xFCEFA3F8);
345
- c=GG(c,d,a,b,x[k+7], S23,0x676F02D9);
346
- b=GG(b,c,d,a,x[k+12],S24,0x8D2A4C8A);
347
- a=HH(a,b,c,d,x[k+5], S31,0xFFFA3942);
348
- d=HH(d,a,b,c,x[k+8], S32,0x8771F681);
349
- c=HH(c,d,a,b,x[k+11],S33,0x6D9D6122);
350
- b=HH(b,c,d,a,x[k+14],S34,0xFDE5380C);
351
- a=HH(a,b,c,d,x[k+1], S31,0xA4BEEA44);
352
- d=HH(d,a,b,c,x[k+4], S32,0x4BDECFA9);
353
- c=HH(c,d,a,b,x[k+7], S33,0xF6BB4B60);
354
- b=HH(b,c,d,a,x[k+10],S34,0xBEBFBC70);
355
- a=HH(a,b,c,d,x[k+13],S31,0x289B7EC6);
356
- d=HH(d,a,b,c,x[k+0], S32,0xEAA127FA);
357
- c=HH(c,d,a,b,x[k+3], S33,0xD4EF3085);
358
- b=HH(b,c,d,a,x[k+6], S34,0x4881D05);
359
- a=HH(a,b,c,d,x[k+9], S31,0xD9D4D039);
360
- d=HH(d,a,b,c,x[k+12],S32,0xE6DB99E5);
361
- c=HH(c,d,a,b,x[k+15],S33,0x1FA27CF8);
362
- b=HH(b,c,d,a,x[k+2], S34,0xC4AC5665);
363
- a=II(a,b,c,d,x[k+0], S41,0xF4292244);
364
- d=II(d,a,b,c,x[k+7], S42,0x432AFF97);
365
- c=II(c,d,a,b,x[k+14],S43,0xAB9423A7);
366
- b=II(b,c,d,a,x[k+5], S44,0xFC93A039);
367
- a=II(a,b,c,d,x[k+12],S41,0x655B59C3);
368
- d=II(d,a,b,c,x[k+3], S42,0x8F0CCC92);
369
- c=II(c,d,a,b,x[k+10],S43,0xFFEFF47D);
370
- b=II(b,c,d,a,x[k+1], S44,0x85845DD1);
371
- a=II(a,b,c,d,x[k+8], S41,0x6FA87E4F);
372
- d=II(d,a,b,c,x[k+15],S42,0xFE2CE6E0);
373
- c=II(c,d,a,b,x[k+6], S43,0xA3014314);
374
- b=II(b,c,d,a,x[k+13],S44,0x4E0811A1);
375
- a=II(a,b,c,d,x[k+4], S41,0xF7537E82);
376
- d=II(d,a,b,c,x[k+11],S42,0xBD3AF235);
377
- c=II(c,d,a,b,x[k+2], S43,0x2AD7D2BB);
378
- b=II(b,c,d,a,x[k+9], S44,0xEB86D391);
379
- a=AddUnsigned(a,AA);
380
- b=AddUnsigned(b,BB);
381
- c=AddUnsigned(c,CC);
382
- d=AddUnsigned(d,DD);
383
- }
384
-
385
- var temp = WordToHex(a)+WordToHex(b)+WordToHex(c)+WordToHex(d);
386
-
387
- return temp.toLowerCase();
388
- }
389
-
390
- window.onload=function(){ checkUrl(); addBeesocial(); addPromos(); };